Skip to content

Commit af9807e

Browse files
committed
MAINT: switch to readthedocs
1 parent a0a1fb2 commit af9807e

File tree

4 files changed

+34
-10
lines changed

4 files changed

+34
-10
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

circle.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ test:
3232
override:
3333
- cat ~/log.txt && if grep -q "Traceback (most recent call last):" ~/log.txt; then false; else true; fi
3434

35-
deployment:
36-
push:
37-
branch: /^master$|^[0-9]+\.[0-9]+\.X$/
38-
commands:
39-
- bash build_tools/circle/push_doc.sh
35+
# deployment:
36+
# push:
37+
# branch: /^master$|^[0-9]+\.[0-9]+\.X$/
38+
# commands:
39+
# - bash build_tools/circle/push_doc.sh
4040
general:
4141
# Open the doc to the API
4242
artifacts:

requirements.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
scipy>=0.13.3
21
numpy>=1.8.2
3-
scikit-learn>=0.19.0
2+
scipy>=0.13.3
3+
scikit-learn>=0.19

setup.py

+19-3
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,21 @@ def is_installing():
4444
LICENSE = 'MIT'
4545
DOWNLOAD_URL = 'https://github.com/scikit-learn-contrib/imbalanced-learn'
4646
VERSION = _VERSION_GLOBALS['__version__']
47+
EXTRAS_REQUIRE = {
48+
'tests': [
49+
'pytest',
50+
'pytest-cov'],
51+
'docs': [
52+
'sphinx',
53+
'sphinx-gallery',
54+
'sphinx_rtd_theme',
55+
'numpydoc',
56+
'matplotlib',
57+
'pandas',
58+
'keras',
59+
'tensorflow'
60+
]
61+
}
4762

4863

4964
def configuration(parent_package='', top_path=None):
@@ -96,6 +111,7 @@ def configuration(parent_package='', top_path=None):
96111
'Programming Language :: Python :: 3.6'
97112
],
98113
packages=find_packages(),
99-
install_requires=['scipy',
100-
'numpy',
101-
'scikit-learn'])
114+
install_requires=['numpy>=1.8.2',
115+
'scipy>=0.13.3',
116+
'scikit-learn>=0.19'],
117+
extras_require=EXTRAS_REQUIRE)

0 commit comments

Comments
 (0)