1import json 2import os 3from setuptools import setup, find_packages 4 5package_json = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'package.json') 6with open(package_json) as f: 7 version = json.load(f)['version'] 8 9setup(name='json-e', 10 version=version, 11 description='A data-structure parameterization system written for embedding context in JSON objects', 12 author='Dustin J. Mitchell', 13 url='https://taskcluster.github.io/json-e/', 14 author_email='dustin@mozilla.com', 15 packages=['jsone'], 16 test_suite='nose.collector', 17 license='MPL2', 18 extras_require={ 19 'release': [ 20 'towncrier', 21 ], 22 }, 23 tests_require=[ 24 "freezegun", 25 "hypothesis", 26 "nose", 27 "PyYAML", 28 "python-dateutil", 29 'pep8', 30 ] 31) 32