diff options
Diffstat (limited to 'setup.py')
-rwxr-xr-x | setup.py | 39 |
1 files changed, 14 insertions, 25 deletions
@@ -37,29 +37,6 @@ class TestsWithCoverage(test, object): | |||
37 | cov.html_report() | 37 | cov.html_report() |
38 | 38 | ||
39 | 39 | ||
40 | requires = { | ||
41 | "setup_requires": [ | ||
42 | "wheel", | ||
43 | "flake8>=3.3", | ||
44 | ], | ||
45 | "tests_require": [ | ||
46 | "mock>=2,<3", | ||
47 | "coverage>=4.1,<5", | ||
48 | "cryptography>=2,<3", | ||
49 | ], | ||
50 | "install_requires": [ | ||
51 | "requests>=2,<3", | ||
52 | ], | ||
53 | } | ||
54 | |||
55 | |||
56 | if sys.version_info.major == 3 and sys.version_info.minor >= 4: | ||
57 | requires["install_requires"].append("blowfish>=0.6.1,<1.0") | ||
58 | else: | ||
59 | requires["install_requires"].append("cryptography>=2,<3") | ||
60 | requires["install_requires"].append("enum34") | ||
61 | |||
62 | |||
63 | setup( | 40 | setup( |
64 | name="pydora", | 41 | name="pydora", |
65 | version="2.0.0", | 42 | version="2.0.0", |
@@ -79,6 +56,19 @@ setup( | |||
79 | "pydora-configure = pydora.configure:main", | 56 | "pydora-configure = pydora.configure:main", |
80 | ], | 57 | ], |
81 | }, | 58 | }, |
59 | setup_requires=[ | ||
60 | "wheel", | ||
61 | "flake8>=3.3", | ||
62 | ], | ||
63 | tests_require=[ | ||
64 | "mock>=2,<3", | ||
65 | "coverage>=4.1,<5", | ||
66 | "cryptography>=2,<3", | ||
67 | ], | ||
68 | install_requires=[ | ||
69 | "requests>=2,<3", | ||
70 | "blowfish>=0.6.1,<1.0", | ||
71 | ], | ||
82 | classifiers=[ | 72 | classifiers=[ |
83 | "Development Status :: 5 - Production/Stable", | 73 | "Development Status :: 5 - Production/Stable", |
84 | "Environment :: Console", | 74 | "Environment :: Console", |
@@ -91,6 +81,5 @@ setup( | |||
91 | "Programming Language :: Python :: 3.7", | 81 | "Programming Language :: Python :: 3.7", |
92 | "Topic :: Internet :: WWW/HTTP", | 82 | "Topic :: Internet :: WWW/HTTP", |
93 | "Topic :: Multimedia :: Sound/Audio :: Players", | 83 | "Topic :: Multimedia :: Sound/Audio :: Players", |
94 | ], | 84 | ] |
95 | **requires | ||
96 | ) | 85 | ) |