2015-03-22 18:21:15 +00:00
|
|
|
from io import open
|
2016-01-13 16:54:29 +00:00
|
|
|
from setuptools import setup
|
2015-05-30 20:26:26 +00:00
|
|
|
from warnings import warn
|
2015-03-22 18:21:15 +00:00
|
|
|
|
|
|
|
try:
|
2015-05-30 20:26:26 +00:00
|
|
|
with open('bidict/VERSION', encoding='utf8') as f:
|
|
|
|
version = f.read().strip()
|
|
|
|
except Exception as e:
|
2015-06-06 15:59:13 +00:00
|
|
|
version = '0.0.0'
|
2015-05-30 20:26:26 +00:00
|
|
|
warn('Could not open bidict/VERSION, using bogus version (%s): %r' %
|
|
|
|
(version, e))
|
2015-03-22 18:21:15 +00:00
|
|
|
try:
|
|
|
|
with open('README.rst', encoding='utf8') as f:
|
|
|
|
long_description = f.read()
|
2015-05-30 20:26:26 +00:00
|
|
|
except Exception as e:
|
2015-03-22 18:21:15 +00:00
|
|
|
long_description = 'See https://bidict.readthedocs.org'
|
2015-05-30 20:26:26 +00:00
|
|
|
warn('Could not open README.rst, using provisional long_description '
|
|
|
|
'(%r): %r' % (long_description, e))
|
2015-03-22 18:21:15 +00:00
|
|
|
|
|
|
|
tests_require = [
|
2017-01-19 05:08:38 +00:00
|
|
|
'coverage==4.3.4',
|
2016-12-06 23:09:45 +00:00
|
|
|
'flake8==3.2.1',
|
squashed changes for 0.13.0
- support Python 3.6, refactor CI/test setup, increase test coverage
- refactor BidirectionalMapping, BidictBase, OrderedBidictBase,
FrozenBidictBase, and subclasses
- move frozenorderedbidict into _frozen and looseorderedbidict into _loose
- register bidict as a virtual subclass of MutableMapping rather than
inheriting from it directly. This makes it clearer that it does not use any
of the concrete generic methods that MutableMapping provides.
- improve performance and flexibility of frozenbidict and
frozenorderedbidict hashing
- docs, including new type-hierarchy.png diagram
- rm unused imap, ifilter, izip_longest from compat, add PYPY
- update to latest versions of dependencies
- restore benchmarking on travis
2017-01-09 15:37:31 +00:00
|
|
|
'hypothesis==3.6.1',
|
2016-01-13 16:54:29 +00:00
|
|
|
'hypothesis-pytest==0.19.0',
|
|
|
|
'py==1.4.31',
|
2016-11-21 05:48:44 +00:00
|
|
|
'pydocstyle==1.1.1',
|
2017-03-15 19:10:41 +00:00
|
|
|
'pytest==3.0.7',
|
2016-12-06 23:09:45 +00:00
|
|
|
'pytest-benchmark==3.1.0a1',
|
2016-11-21 05:48:44 +00:00
|
|
|
'pytest-cov==2.4.0',
|
2017-02-27 17:27:08 +00:00
|
|
|
'Sphinx==1.5.3',
|
squashed changes for 0.13.0
- support Python 3.6, refactor CI/test setup, increase test coverage
- refactor BidirectionalMapping, BidictBase, OrderedBidictBase,
FrozenBidictBase, and subclasses
- move frozenorderedbidict into _frozen and looseorderedbidict into _loose
- register bidict as a virtual subclass of MutableMapping rather than
inheriting from it directly. This makes it clearer that it does not use any
of the concrete generic methods that MutableMapping provides.
- improve performance and flexibility of frozenbidict and
frozenorderedbidict hashing
- docs, including new type-hierarchy.png diagram
- rm unused imap, ifilter, izip_longest from compat, add PYPY
- update to latest versions of dependencies
- restore benchmarking on travis
2017-01-09 15:37:31 +00:00
|
|
|
'sortedcollections==0.4.2',
|
|
|
|
'sortedcontainers==1.5.5',
|
2015-03-22 18:21:15 +00:00
|
|
|
]
|
|
|
|
|
2014-09-23 14:08:21 +00:00
|
|
|
setup(
|
|
|
|
name='bidict',
|
2015-03-22 18:21:15 +00:00
|
|
|
version=version,
|
2014-09-23 14:08:21 +00:00
|
|
|
author='Joshua Bronson',
|
|
|
|
author_email='jab@math.brown.edu',
|
2015-05-26 05:37:42 +00:00
|
|
|
description='Efficient, Pythonic bidirectional map implementation and related functionality',
|
2015-03-22 18:21:15 +00:00
|
|
|
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',
|
2016-07-31 11:49:16 +00:00
|
|
|
license='ISC',
|
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-01-19 05:08:38 +00:00
|
|
|
'License :: OSI Approved :: ISC License (ISCL)', # https://github.com/jab/bidict/pull/38#issuecomment-273007773
|
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',
|
squashed changes for 0.13.0
- support Python 3.6, refactor CI/test setup, increase test coverage
- refactor BidirectionalMapping, BidictBase, OrderedBidictBase,
FrozenBidictBase, and subclasses
- move frozenorderedbidict into _frozen and looseorderedbidict into _loose
- register bidict as a virtual subclass of MutableMapping rather than
inheriting from it directly. This makes it clearer that it does not use any
of the concrete generic methods that MutableMapping provides.
- improve performance and flexibility of frozenbidict and
frozenorderedbidict hashing
- docs, including new type-hierarchy.png diagram
- rm unused imap, ifilter, izip_longest from compat, add PYPY
- update to latest versions of dependencies
- restore benchmarking on travis
2017-01-09 15:37:31 +00:00
|
|
|
'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',
|
|
|
|
],
|
2015-03-22 18:21:15 +00:00
|
|
|
tests_require=tests_require,
|
|
|
|
extras_require=dict(
|
|
|
|
test=tests_require,
|
2017-02-27 17:27:08 +00:00
|
|
|
dev=tests_require + ['pre-commit==0.13.3', 'tox==2.6.0'],
|
2015-03-22 18:21:15 +00:00
|
|
|
),
|
|
|
|
)
|