Skip to content

Commit

Permalink
MAINT: Bump dependencies
Browse files Browse the repository at this point in the history
Bump dependencies and update travis, appveyor and azure
  • Loading branch information
bashtage committed Jul 4, 2019
1 parent 0bdfbc4 commit b726626
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 80 deletions.
54 changes: 14 additions & 40 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,55 +33,38 @@ env:
matrix:
fast_finish: true
include:
# Python 2.7 + partially updated numpy, mpl; cutting edge scipy, pandas
# Python 2.7 until 0.10.1 has been released, then change to Python 3.7
- python: 2.7
env:
- PYTHON=2.7
- NUMPY=1.13
- MATPLOTLIB=2.0
- PANDAS=0.24
- COVERAGE=true
# Python 2.7 + baseline packages
- python: 2.7
env:
- PYTHON=2.7
- NUMPY=1.12
- BLAS= # Do not specify blas in this config due to conflict
- SCIPY=0.19
- PANDAS=0.20
- USEMPL=false
- LINT=true
# Python 3.4 + baseline packages
- python: 3.4
env:
- PYTHON=3.4
- NUMPY=1.11
- SCIPY=0.18
- PANDAS=0.19
- MATPLOTLIB=1.5
# Python 3.7 + cutting edge packages
- python: 3.7
env:
- PYTHON=3.7
- COVERAGE=true
# Documentation build (on Python 3.6 + cutting edge packages)
- python: 3.6
# Documentation build (on Python 3.7 + cutting edge packages)
- python: 3.7
env:
- PYTHON=3.7
- DOCBUILD=true
# Python 3.6 + legacy blas
# Python 3.6 + legacy blas + older pandas
- python: 3.6
env:
- PYTHON=3.6
- NUMPY=1.14
- NUMPY=1.15
- PANDAS=0.22
- SCIPY=1.1
- BLAS="nomkl blas=*=openblas"
# Python 3.5 + partially updated packages
# Python 3.5 + oldest packages
- python: 3.5
env:
- PYTHON=3.5
- NUMPY=1.13
- NUMPY=1.14
- SCIPY=1.0
- PANDAS=0.22
- MATPLOTLIB=2.0
- PANDAS=0.21
- MATPLOTLIB=2
- LINT=true
# Latest pre-release packages
- python: 3.7
Expand All @@ -92,7 +75,8 @@ matrix:
language: generic
env:
- PYTHON=3.6.6
- NUMPY=1.14
- NUMPY=1.15
- SCIPY=1.2
- BUILD_INIT=tools/ci/travis_pip.sh
- os: osx
language: generic
Expand All @@ -105,16 +89,6 @@ matrix:
env:
- PIP_PRE=true
- BUILD_INIT=tools/ci/travis_pip.sh
- os: osx
language: generic
env:
- PYTHON=3.6.6
- NUMPY=1.14
- BUILD_INIT=tools/ci/travis_pip.sh
- os: osx
language: generic
env:
- PYTHON=3.7

notifications:
email:
Expand Down
9 changes: 4 additions & 5 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,16 @@ environment:
PYTEST_DIRECTIVES: --skip-slow
matrix:
# Pip builds
- PYTHON: C:\Python27
PYTEST_DIRECTIVES:
- PYTHON: C:\Python36
PYTEST_DIRECTIVES:
# Conda builds
# Conda builds, TODO: Remove after 0.10.1
- PY_MAJOR_VER: 2
PYTHON_ARCH: "x86"
# Conda builds, TODO: Move to Python 3 after 0.10.1
- PY_MAJOR_VER: 2
PYTHON_ARCH: "x86_64"
SCIPY: "0.18"
NUMPY: "1.11"
SCIPY: "1"
NUMPY: "1.14"
- PY_MAJOR_VER: 3
PYTHON_ARCH: "x86_64"
TEST_INSTALL: "true"
Expand Down
25 changes: 13 additions & 12 deletions docs/source/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -103,32 +103,33 @@ Dependencies

The current minimum dependencies are:

* `Python <https://www.python.org>`__ >= 2.7, including Python 3.4+
* `NumPy <http://www.scipy.org/>`__ >= 1.11
* `SciPy <http://www.scipy.org/>`__ >= 0.18
* `Pandas <http://pandas.pydata.org/>`__ >= 0.19
* `Patsy <https://patsy.readthedocs.io/en/latest/>`__ >= 0.4.0
* `Cython <http://cython.org/>`__ >= 0.24 is required to build the code from
* `Python <https://www.python.org>`__ >= 3.5
* `NumPy <http://www.scipy.org/>`__ >= 1.14
* `SciPy <http://www.scipy.org/>`__ >= 1.0
* `Pandas <http://pandas.pydata.org/>`__ >= 0.21
* `Patsy <https://patsy.readthedocs.io/en/latest/>`__ >= 0.5.0

Cython is required to build from a git checkout but not to run or install from PyPI:

* `Cython <http://cython.org/>`__ >= 0.29 is required to build the code from
github but not from a source distribution.

Given the long release cycle, Statsmodels follows a loose time-based policy for
dependencies: minimal dependencies are lagged about one and a half to two
years. Our next planned update of minimum versions in `setup.py` is expected in
September 2018, when we will update to reflect Numpy >= 1.12 (released January
2017), Scipy >= 0.19 (released March 2017) and Pandas >= 0.20 (released May
2017).
years. Our next planned update of minimum versions is expected in the first
half of 2020.

Optional Dependencies
---------------------

* `Matplotlib <http://matplotlib.org/>`__ >= 1.5 is needed for plotting
* `Matplotlib <http://matplotlib.org/>`__ >= 2.2 is needed for plotting
functions and running many of the examples.
* If installed, `X-12-ARIMA <http://www.census.gov/srd/www/x13as/>`__ or
`X-13ARIMA-SEATS <http://www.census.gov/srd/www/x13as/>`__ can be used
for time-series analysis.
* `pytest <https://docs.pytest.org/en/latest/>`__ is required to run
the test suite.
* `IPython <http://ipython.org>`__ >= 3.0 is required to build the
* `IPython <http://ipython.org>`__ >= 5.0 is required to build the
docs locally or to use the notebooks.
* `joblib <http://pythonhosted.org/joblib/>`__ >= 0.9 can be used to accelerate distributed
estimation for certain models.
Expand Down
5 changes: 3 additions & 2 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# build
cython
cython>=0.29

# run
matplotlib
matplotlib>=2.2
cvxopt

# test
pytest
pytest-randomly
pytest-xdist
flake8
9 changes: 5 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
numpy>=1.11
scipy>=0.18
pandas>=0.19
patsy>=0.4
numpy>=1.14
scipy>=1.0
pandas>=0.21
patsy>=0.5

12 changes: 5 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
###############################################################################
# Key Values that Change Each Release
###############################################################################
SETUP_REQUIREMENTS = {'numpy': '1.11', # released March 2016
'scipy': '0.18', # released July 2016
SETUP_REQUIREMENTS = {'numpy': '1.14', # released January 2018
'scipy': '1.0', # released October 2017
}

REQ_NOT_MET_MSG = """
Expand All @@ -59,11 +59,11 @@
raise RuntimeError(REQ_NOT_MET_MSG.format(key, ver, req_ver))

INSTALL_REQUIREMENTS = SETUP_REQUIREMENTS.copy()
INSTALL_REQUIREMENTS.update({'pandas': '0.19', # released October 2016
'patsy': '0.4.0', # released July 2015
INSTALL_REQUIREMENTS.update({'pandas': '0.21', # released October 2017
'patsy': '0.5', # released January 2018
})

CYTHON_MIN_VER = '0.24' # released Apr 2016
CYTHON_MIN_VER = '0.29' # released November 2018

SETUP_REQUIRES = [k + '>=' + v for k, v in SETUP_REQUIREMENTS.items()]
INSTALL_REQUIRES = [k + '>=' + v for k, v in INSTALL_REQUIREMENTS.items()]
Expand Down Expand Up @@ -97,8 +97,6 @@
CLASSIFIERS = ['Development Status :: 4 - Beta',
'Environment :: Console',
'Programming Language :: Cython',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
Expand Down
10 changes: 0 additions & 10 deletions tools/ci/azure_template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ jobs:
vmImage: ${{ parameters.vmImage }}
strategy:
matrix:
Python27:
python.version: '2.7'
Python35:
python.version: '3.5'
Python36:
Expand All @@ -32,14 +30,6 @@ jobs:
versionSpec: '$(python.version)'
architecture: 'x64'

- ${{ if eq(parameters.name, 'Windows') }}:
# We need to install a C compiler, see
# https://github.com/Microsoft/azure-pipelines-tasks/issues/9674
# TODO: This is only necessary for the py27 build, can be removed
# once py27 is dropped
- script: choco install vcpython27
displayName: 'Install compiler'

- script: |
python -m pip install --upgrade pip
pip install -r requirements.txt
Expand Down

0 comments on commit b726626

Please sign in to comment.