-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
46 lines (43 loc) · 1.26 KB
/
setup.py
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import ast
import os
import re
from setuptools import setup
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
_version_re = re.compile(r'__version__\s+=\s+(.*)')
with open('pretty_json/__init__.py', 'rb') as f:
version = str(ast.literal_eval(
_version_re.search(f.read().decode('utf-8')).group(1)
))
setup(
name='pretty-json',
packages=[
'pretty_json'
],
version=version,
include_package_data=True,
description='make pretty json',
long_description=open('README.rst').read(),
url='https://github.com/devstuff-io/pretty-json',
author='meganlkm',
author_email='devstuff.io@gmail.com',
install_requires=[
'Pygments',
'pygments-json'
],
keywords=[
'pretty',
'json'
],
classifiers=[
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Utilities',
]
)