Browse code

remove requirements.txt and define extras_require in setup.py

Bas Nijholt authored on 09/12/2017 02:02:31
Showing 2 changed files
1 1
deleted file mode 100644
... ...
@@ -1,7 +0,0 @@
1
-numpy
2
-scipy
3
-holoviews>=1.9.1
4
-ipython
5
-ipyparallel
6
-sortedcontainers
7
-distributed
... ...
@@ -4,8 +4,8 @@
4 4
 from setuptools import setup
5 5
 
6 6
 
7
-with open('requirements.txt') as f:
8
-    requirements = f.readlines()
7
+install_requires = ['scipy', 'ipython', 'sortedcontainers']
8
+extras_require = {'recommended': ['holoviews>=1.9.1', 'ipyparallel', 'distributed']}
9 9
 
10 10
 setup(
11 11
     name='adaptive',
... ...
@@ -24,5 +24,6 @@ setup(
24 24
     ],
25 25
     packages=['adaptive',
26 26
               'adaptive.learner'],
27
-    install_requires=requirements,
27
+    install_requires=install_requires,
28
+    extras_require=extras_require,
28 29
 )