Debian Codegraph @

setup.py

raw
1 from setuptools import setup
2 from setuptools.command.test import test as TestCommand
3
4 import sortedcontainers
5
6
7 class Tox(TestCommand):
8 def finalize_options(self):
9 TestCommand.finalize_options(self)
10 self.test_args = []
11 self.test_suite = True
12 def run_tests(self):
13 import tox
14 errno = tox.cmdline(self.test_args)
15 exit(errno)
16
17
18 with open('README.rst') as reader:
19 readme = reader.read()
20
21 setup(
22 name=sortedcontainers.__title__,
23 version=sortedcontainers.__version__,
24 description='Sorted Containers -- Sorted List, Sorted Dict, Sorted Set',
25 long_description=readme,
26 author='Grant Jenks',
27 author_email='[email protected]',
28 url='http://www.grantjenks.com/docs/sortedcontainers/',
29 license='Apache 2.0',
30 packages=['sortedcontainers'],
31 tests_require=['tox'],
32 cmdclass={'test': Tox},
33 install_requires=[],
34 classifiers=[
35 'Development Status :: 5 - Production/Stable',
36 'Intended Audience :: Developers',
37 'License :: OSI Approved :: Apache Software License',
38 'Natural Language :: English',
39 'Programming Language :: Python',
40 'Programming Language :: Python :: 2',
41 'Programming Language :: Python :: 2.7',
42 'Programming Language :: Python :: 3',
43 'Programming Language :: Python :: 3.2',
44 'Programming Language :: Python :: 3.3',
45 'Programming Language :: Python :: 3.4',
46 'Programming Language :: Python :: 3.5',
47 'Programming Language :: Python :: 3.6',
48 'Programming Language :: Python :: 3.7',
49 'Programming Language :: Python :: Implementation :: CPython',
50 'Programming Language :: Python :: Implementation :: PyPy',
51 ],
52 )