bidict/setup.py

70 lines
2.3 KiB
Python
Raw Normal View History

from io import open
from setuptools import setup
2015-05-30 20:26:26 +00:00
from warnings import warn
2017-03-17 16:16:45 +00:00
def from_file(filename, fallback):
try:
with open(filename, encoding='utf8') as f:
return f.read().strip()
except Exception as e:
warn('Error opening file %r, using fallback %r: %s' % (filename, fallback, e))
return fallback
version = from_file('bidict/VERSION', '0.0.0')
long_description = from_file('README.rst', 'See https://bidict.readthedocs.org').replace(
':doc:', '') # :doc: breaks long_description rendering on PyPI
tests_require = [
'coverage==4.4.1',
'flake8==3.4.1',
'hypothesis==3.32.0',
'hypothesis-pytest==0.19.0',
'py==1.4.34',
'pydocstyle==2.1.1',
'pytest==3.2.3',
'pytest-benchmark==3.1.1',
'pytest-cov==2.5.1',
'Sphinx==1.6.4',
'sortedcollections==0.4.2',
'sortedcontainers==1.5.5',
]
2014-09-23 14:08:21 +00:00
setup(
name='bidict',
version=version,
2014-09-23 14:08:21 +00:00
author='Joshua Bronson',
author_email='jab@math.brown.edu',
description='Efficient, Pythonic bidirectional map implementation and related functionality',
long_description=long_description,
keywords='dict, dictionary, mapping, bidirectional, bijection, bijective, injective, two-way, 2-way, double, inverse, reverse',
2014-09-23 14:08:21 +00:00
url='https://github.com/jab/bidict',
2017-03-15 20:43:05 +00:00
license='Mozilla PL',
2015-05-30 20:26:26 +00:00
packages=['bidict'],
package_data=dict(bidict=['VERSION']),
2014-09-23 14:08:21 +00:00
zip_safe=True,
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
2017-03-15 20:43:05 +00:00
'License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)',
2014-09-30 15:54:30 +00:00
'Natural Language :: English',
2014-09-23 14:08:21 +00:00
'Operating System :: OS Independent',
2014-09-30 15:54:30 +00:00
'Programming Language :: Python :: 2.7',
2015-11-28 14:17:43 +00:00
'Programming Language :: Python :: 3',
2014-09-30 15:54:30 +00:00
'Programming Language :: Python :: 3.4',
2015-09-14 14:11:55 +00:00
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
2014-09-30 15:54:30 +00:00
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Scientific/Engineering :: Mathematics',
2014-09-23 14:08:21 +00:00
'Topic :: Software Development :: Libraries :: Python Modules',
],
tests_require=tests_require,
extras_require=dict(
test=tests_require,
dev=tests_require + ['pre-commit==1.3.0', 'tox==2.9.1'],
),
)