forked from zacharyvoase/jsonpipe
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
31 lines (25 loc) · 900 Bytes
/
Copy pathsetup.py
File metadata and controls
31 lines (25 loc) · 900 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from distribute_setup import use_setuptools
use_setuptools()
import re
from setuptools import setup
import os.path as p
def get_version():
source = open(p.join(p.dirname(p.abspath(__file__)), 'jsonpipe.py')).read()
match = re.search(r'__version__\s*=\s*[\'"]([^\'"]+)[\'"]', source)
if not match:
raise RuntimeError("Couldn't find the version string in jsonpipe.py")
return match.group(1)
setup(
name='jsonpipe',
version=get_version(),
description="Convert JSON to a UNIX-friendly line-based format.",
author='Zachary Voase',
author_email='z@dvxhouse.com',
url='http://github.com/dvxhouse/jsonpipe',
py_modules=['jsonpipe'],
entry_points={'console_scripts': ['jsonpipe = jsonpipe:main']},
install_requires=['simplejson>=2.1.3', 'argparse>=1.2.1'],
test_suite='jsonpipe._get_tests',
)