Browse code

move installation requirements to 'setup.py'

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

Joseph Weston authored on 07/09/2017 23:12:33
Showing 2 changed files
1 1
deleted file mode 100644
... ...
@@ -1,3 +0,0 @@
1
-decorator
2
-structlog
3
-aiohttp
... ...
@@ -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
 )