Skip to content

Commit 513203c

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

File tree

5 files changed

+37
-10
lines changed

5 files changed

+37
-10
lines changed

.circleci/config.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ jobs:
2727
- attach_workspace:
2828
at: doc/_build/html
2929
- run: ls -ltrh doc/_build/html
30-
- deploy:
31-
command: |
32-
if [[ "${CIRCLE_BRANCH}" =~ ^master$|^[0-9]+\.[0-9]+\.X$ ]]; then
33-
bash ./build_tools/circle/push_doc.sh doc/_build/html
34-
fi
30+
# - deploy:
31+
# command: |
32+
# if [[ "${CIRCLE_BRANCH}" =~ ^master$|^[0-9]+\.[0-9]+\.X$ ]]; then
33+
# bash ./build_tools/circle/push_doc.sh doc/_build/html
34+
# fi
3535
filters:
3636
branches:
3737
ignore: gh-pages

.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

README.rst

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
.. _scikit-learn-contrib: https://github.com/scikit-learn-contrib
66

7-
|Travis|_ |AppVeyor|_ |Codecov|_ |CircleCI|_ |PythonVersion|_ |Pypi|_ |Gitter|_
7+
|Travis|_ |AppVeyor|_ |Codecov|_ |CircleCI|_ |ReadTheDocs|_ |PythonVersion|_ |Pypi|_ |Gitter|_
88

99
.. |Travis| image:: https://travis-ci.org/scikit-learn-contrib/imbalanced-learn.svg?branch=master
1010
.. _Travis: https://travis-ci.org/scikit-learn-contrib/imbalanced-learn
@@ -18,6 +18,9 @@
1818
.. |CircleCI| image:: https://circleci.com/gh/scikit-learn-contrib/imbalanced-learn.svg?style=shield&circle-token=:circle-token
1919
.. _CircleCI: https://circleci.com/gh/scikit-learn-contrib/imbalanced-learn/tree/master
2020

21+
.. |ReadTheDocs| image:: https://readthedocs.org/projects/imbalanced-learn/badge/?version=latest
22+
.. _ReadTheDocs: https://imbalanced-learn.readthedocs.io/en/latest/?badge=latest
23+
2124
.. |PythonVersion| image:: https://img.shields.io/pypi/pyversions/imbalanced-learn.svg
2225
.. _PythonVersion: https://img.shields.io/pypi/pyversions/imbalanced-learn.svg
2326

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.20
2+
scipy>=0.13.3
3+
scikit-learn>=0.20rc1

setup.py

+18-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
LICENSE = 'MIT'
2222
DOWNLOAD_URL = 'https://github.com/scikit-learn-contrib/imbalanced-learn'
2323
VERSION = __version__
24-
INSTALL_REQUIRES = ['numpy', 'scipy', 'scikit-learn']
2524
CLASSIFIERS = ['Intended Audience :: Science/Research',
2625
'Intended Audience :: Developers',
2726
'License :: OSI Approved',
@@ -36,6 +35,22 @@
3635
'Programming Language :: Python :: 2.7',
3736
'Programming Language :: Python :: 3.6',
3837
'Programming Language :: Python :: 3.7']
38+
INSTALL_REQUIRES = ['numpy>=1.8.2', 'scipy>=0.13.3', 'scikit-learn>=0.20rc1']
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)