The prevailing wisdom seems to be to reserve 'requirements.txt' for
pinning dependency versions for applications, rather than specifying
general dependencies for libraries.
Closes #14
... | ... |
@@ -19,12 +19,23 @@ from setuptools import setup |
19 | 19 |
|
20 | 20 |
import versioneer |
21 | 21 |
|
22 |
-with open('requirements.txt') as r: |
|
23 |
- requirements = [l.strip() for l in r.readlines()] |
|
22 |
+ |
|
23 |
+requirements = [ |
|
24 |
+ 'decorator', |
|
25 |
+ 'structlog', |
|
26 |
+ 'aiohttp', |
|
27 |
+] |
|
28 |
+ |
|
29 |
+dev_requirements = [ |
|
30 |
+ 'pylint', |
|
31 |
+] |
|
24 | 32 |
|
25 | 33 |
setup( |
26 | 34 |
name='nord', |
27 | 35 |
version=versioneer.get_version(), |
28 | 36 |
cmdclass=versioneer.get_cmdclass(), |
29 | 37 |
install_requires=requirements, |
38 |
+ extras_require={ |
|
39 |
+ 'dev': dev_requirements, |
|
40 |
+ }, |
|
30 | 41 |
) |