forked from wolverdude/GenSON
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·57 lines (50 loc) · 1.91 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
47
48
49
50
51
52
53
54
55
56
57
#!/usr/bin/env python
from setuptools import setup
from re import sub
def get_long_docs(*filenames):
"""Build rst description from a set of files."""
docs = []
for filename in filenames:
with open(filename, 'r') as f:
docs.append(f.read())
return pypi_safe("\n\n".join(docs))
def pypi_safe(rst):
""" PyPI is using an unpatched version of Python that doesn't like
code-block directives: http://bugs.python.org/issue23063 """
return sub('\.\. code-block::.*\n', '::\n', rst)
setup(
name='genson',
version='0.2.0',
description='GenSON is a powerful, user-friendly JSON Schema generator.',
long_description=get_long_docs('README.rst', 'HISTORY.rst', 'AUTHORS.rst'),
keywords=['json', 'schema', 'object', 'generate', 'generator', 'builder',
'draft 4', 'validate', 'validation'],
url='https://github.com/wolverdude/genson/',
download_url='https://github.com/wolverdude/GenSON/tarball/v0.2s.0',
license='MIT',
author='Jon Wolverton',
author_email='wolverton' '.' 'jr' '@' 'gmail' '.' 'com',
# ^^^ Much like Mrs. Bun, I don't like spam.
packages=['genson'],
include_package_data=True,
entry_points={'console_scripts': ['genson = genson.genson:main']},
zip_safe=True,
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Utilities',
],
tests_require=[
'jsonschema>=2.5.1',
],
test_suite='test',
)