Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0b84f31

Browse files
committed
standardize optional requirements for CircleCI
- add coverage to optional requirements - pip install optional requirements and no need for nothing else
1 parent 160cadb commit 0b84f31

File tree

4 files changed

+6
-9
lines changed

4 files changed

+6
-9
lines changed

circle.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ dependencies:
1616
- bash circle/setup.sh
1717

1818
# install testing tools for circle's version of things
19-
- pip install nose coverage
19+
- pip install -r ${PLOTLY_OPTIONAL_REQUIREMENTS_FILE}
2020
- pip install -I .
2121

2222
# we need to cd out of the project root to ensure the install worked

circle/setup.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,7 @@ for version in ${PLOTLY_PYTHON_VERSIONS[@]}; do
3535
pip install -r ${PLOTLY_CORE_REQUIREMENTS_FILE} ||
3636
error_exit "${SIG} ${LINENO}: can't install core reqs for Python ${version}."
3737

38+
# install optional (including test) requirements
3839
pip install -r ${PLOTLY_OPTIONAL_REQUIREMENTS_FILE} ||
3940
error_exit "${SIG} ${LINENO}: can't install optional for Python ${version}."
40-
41-
# install some test tools
42-
pip install nose coverage ||
43-
error_exit "${SIG} ${LINENO}: can't install test tools for Python ${version}."
4441
done

circle/test.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ for version in ${PLOTLY_PYTHON_VERSIONS[@]}; do
3131
echo "${SIG} Running: python -c 'import sys; print(sys.version)'. We've got:"
3232
python -c 'import sys; print(sys.version)'
3333

34-
3534
echo "${SIG} Install plotly (ignoring possibly cached versions)."
3635
pip install -I ${PLOTLY_PACKAGE_ROOT} >/dev/null ||
3736
error_exit "${SIG} ${LINENO}: can't install plotly package from project root"

optional-requirements.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@ numpy
1212
# matplotlib==1.3.1
1313

1414
## testing dependencies ##
15-
nose==1.3.3
15+
nose
16+
coverage
1617

17-
## ipython dependencies ##
18-
ipython[all]==3.0.0
18+
## ipython ##
19+
ipython
1920

2021
## pandas deps for some matplotlib functionality ##
2122
pandas

0 commit comments

Comments
 (0)