Skip to content

Commit bbf2b12

Browse files
committed
MAINT: add readthedocs for transition
1 parent eed8d95 commit bbf2b12

File tree

3 files changed

+26
-2
lines changed

3 files changed

+26
-2
lines changed

.readthedocs.yml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
formats:
2+
- none
3+
requirements_file: requirements.txt
4+
python:
5+
pip_install: true
6+
extra_requirements:
7+
- tests
8+
- docs

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
scipy>=0.13.3
22
numpy>=1.8.2
3-
scikit-learn>=0.20
3+
scikit-learn>=0.20rc1

setup.py

+17-1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,21 @@
3636
'Programming Language :: Python :: 2.7',
3737
'Programming Language :: Python :: 3.6',
3838
'Programming Language :: Python :: 3.7']
39+
EXTRAS_REQUIRE = {
40+
'tests': [
41+
'pytest',
42+
'pytest-cov'],
43+
'docs': [
44+
'sphinx',
45+
'sphinx-gallery',
46+
'sphinx_rtd_theme',
47+
'numpydoc',
48+
'matplotlib',
49+
'pandas',
50+
'keras',
51+
'tensorflow'
52+
]
53+
}
3954

4055

4156
setup(name=DISTNAME,
@@ -50,4 +65,5 @@
5065
zip_safe=False, # the package can run out of an .egg file
5166
classifiers=CLASSIFIERS,
5267
packages=find_packages(),
53-
install_requires=INSTALL_REQUIRES)
68+
install_requires=INSTALL_REQUIRES,
69+
extras_require=EXTRAS_REQUIRE)

0 commit comments

Comments
 (0)