-
Notifications
You must be signed in to change notification settings - Fork 39
/
setup.py
62 lines (47 loc) · 1.43 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
58
59
60
61
62
import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
super().finalize_options()
self.test_args = []
self.test_suite = True
def run_tests(self):
import pytest
errno = pytest.main(self.test_args)
sys.exit(errno)
requires = [
'PyYAML >= 3.11, < 5.0',
'click >= 8.0, < 9.0',
'flask >= 2.0, < 3.0',
'markdown >= 3.0, < 4.0',
'plotly >= 5.0, < 6.0',
'blessings >= 1.7, < 2.0',
'elsa >= 0.1.5, < 1.0',
'networkx >= 2.2, < 3.0',
'python-bugzilla >= 3.0, < 4.0',
]
tests_require = ['pytest']
setup_args = dict(
name='portingdb',
version='0.1',
packages=['portingdb'],
url='https://github.com/fedora-python/portingdb',
description="""Database of packages that need Python 3 porting""",
author='Petr Viktorin',
author_email='pviktori@redhat.com',
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
install_requires=requires,
tests_require=tests_require,
cmdclass={'test': PyTest},
)
if __name__ == '__main__':
setup(**setup_args)