Skip to content

Commit

Permalink
Merge pull request #219 from bashtage/optional-mpl
Browse files Browse the repository at this point in the history
Optional mpl
  • Loading branch information
bashtage committed Aug 14, 2018
2 parents bfe7669 + 5f6cbce commit 6181efe
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
5 changes: 4 additions & 1 deletion .travis.yml
Expand Up @@ -34,6 +34,7 @@ matrix:
env:
- PYTHON=3.5
- COVERAGE=true
- MATPLOTLIB=1.5
- python: 2.7
env:
- PYTHON=3.6
Expand All @@ -47,9 +48,11 @@ matrix:
env:
- PYTHON=3.6
- DOCBUILD=true
- MATPLOTLIB=2
- python: 2.7
env:
- PYTHON=3.7
- MATPLOTLIB=2
- COVERAGE=true

before_install:
Expand All @@ -73,7 +76,7 @@ before_install:
- PKGS="${PKGS} patsy"; if [[ ${PATSY} ]]; then PKGS="${PKGS}=${PATSY}"; fi;
- PKGS="${PKGS} pandas"; if [[ ${PANDAS} ]]; then PKGS="${PKGS}=${PANDAS}"; fi;
- PKGS="${PKGS} Cython"; if [[ ${CYTHON} ]]; then PKGS="${PKGS}=${CYTHON}"; fi;
- PKGS="${PKGS} matplotlib"; if [[ ${MATPLOTLIB} ]]; then PKGS="${PKGS}=${MATPLOTLIB}"; fi;
- if [[ ${MATPLOTLIB} ]]; then PKGS="${PKGS} matplotlib=${MATPLOTLIB}"; fi;
- PKGS="${PKGS} statsmodels"; if [[ ${STATSMODELS} ]]; then PKGS="${PKGS}=${STATSMODELS}"; fi;
- if [[ ${USE_NUMBA} = true ]]; then PKGS="${PKGS} numba"; if [[ ${NUMBA} ]]; then PKGS="${PKGS}=${NUMBA}"; fi; fi;
- conda create --yes --quiet -n arch-test ${PKGS} ${OPTIONAL} statsmodels
Expand Down
18 changes: 7 additions & 11 deletions setup.py
Expand Up @@ -63,15 +63,11 @@ def build_extensions(self):
_build_ext.build_extensions(self)


SETUP_REQUIREMENTS = {'numpy': '1.12'}
REQUIREMENTS = {'Cython': '0.24',
'matplotlib': '1.5',
'scipy': '0.19',
'pandas': '0.20',
'statsmodels': '0.8'}

ALL_REQUIREMENTS = SETUP_REQUIREMENTS.copy()
ALL_REQUIREMENTS.update(REQUIREMENTS)
SETUP_REQUIREMENTS = {'numpy': '1.12', 'Cython': '0.24'}
INSTALL_REQUIREMENTS = SETUP_REQUIREMENTS.copy()
INSTALL_REQUIREMENTS.update({'scipy': '0.19',
'pandas': '0.20',
'statsmodels': '0.8'})

cmdclass['build_ext'] = build_ext

Expand Down Expand Up @@ -170,8 +166,8 @@ def run_setup(binary=True):
'Programming Language :: Cython',
'Topic :: Scientific/Engineering',
],
install_requires=[key + '>=' + REQUIREMENTS[key]
for key in REQUIREMENTS],
install_requires=[key + '>=' + INSTALL_REQUIREMENTS[key]
for key in INSTALL_REQUIREMENTS],
setup_requires=[key + '>=' + SETUP_REQUIREMENTS[key]
for key in SETUP_REQUIREMENTS],
)
Expand Down

0 comments on commit 6181efe

Please sign in to comment.