Drop Python 2 and 3.4 (#728) · SanderScheper/pvlib-python@d68617c · GitHub
Skip to content

Commit d68617c

Browse files
markcampanelliwholmgren
authored andcommitted
Drop Python 2 and 3.4 (pvlib#728)
* Drop Python 2 and 3.4 * Fix travis for 3.7 and update azure * Remove six dependency * Add min Travis build with consistent requirements and fixed tests * Pin pvfactors also in setup.py * Fix python version comparison for 3.7 patches * Revert unneeded test change * Remove Python 2 mock usages * Address code review comments * Appease the stickler * Check for Python version range in setup.py * Use more succint range syntax
1 parent f38fe07 commit d68617c

20 files changed

Lines changed: 120 additions & 166 deletions

.travis.yml

Lines changed: 4 additions & 20 deletions

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,9 @@ Installation
3232
pvlib-python releases may be installed using the ``pip`` and ``conda`` tools.
3333
Please see the [Installation page](http://pvlib-python.readthedocs.io/en/latest/installation.html) of the documentation for complete instructions.
3434

35-
pvlib-python is compatible with Python versions 2.7 and 3.4-3.7.
35+
pvlib-python is compatible with Python 3.5 and above.
3636

37-
**Python 2.7 support will end on June 1, 2019**. Releases made after this
38-
date will require Python 3.
37+
**Python 2.7 support ended on June 1, 2019, with pvlib-python 0.6.3.**
3938

4039

4140
Contributing

azure-pipelines.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ jobs:
1313

1414
strategy:
1515
matrix:
16-
Python27:
17-
python.version: '27'
1816
Python35:
1917
python.version: '35'
2018
Python36:
@@ -68,8 +66,6 @@ jobs:
6866

6967
strategy:
7068
matrix:
71-
Python27-windows:
72-
python.version: '27'
7369
Python35-windows:
7470
python.version: '35'
7571
Python36-windows:

ci/requirements-py27-min.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.

ci/requirements-py27.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

ci/requirements-py34.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

ci/requirements-py35-min.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: test_env
2+
channels:
3+
- defaults
4+
dependencies:
5+
- coveralls
6+
- nose
7+
- numpy=1.10.1
8+
- pandas=0.18.0
9+
- pip
10+
- pytest
11+
- pytest-cov
12+
- pytest-mock
13+
- pytest-timeout
14+
- python=3.5
15+
- pytz
16+
- requests

ci/requirements-py35.yml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,25 @@ channels:
33
- defaults
44
- conda-forge
55
dependencies:
6-
- python=3.5
7-
- numpy
8-
- scipy
9-
- pytables
10-
- pandas
11-
- pytz
6+
- coveralls
7+
- cython
128
- ephem
9+
- netcdf4
10+
- nose
1311
- numba
14-
- siphon
12+
- numpy
13+
- pandas
14+
- pip
15+
- pytables # tables when using pip+PyPI
1516
- pytest
1617
- pytest-cov
17-
- nose
18+
- pytest-mock
19+
- pytest-timeout
20+
- python=3.5
21+
- pytz
22+
- requests
23+
- scipy
1824
- shapely # pvfactors dependency
25+
- siphon # conda-forge
1926
- pip:
20-
- coveralls
21-
- pytest-mock
22-
- pytest-timeout
2327
- pvfactors==1.0.1

ci/requirements-py36.yml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,25 @@ channels:
33
- defaults
44
- conda-forge
55
dependencies:
6-
- python=3.6
7-
- numpy
8-
- scipy
9-
- pytables
10-
- pandas
11-
- pytz
6+
- coveralls
7+
- cython
128
- ephem
9+
- netcdf4
10+
- nose
1311
- numba
14-
- siphon
12+
- numpy
13+
- pandas
14+
- pip
15+
- pytables # tables when using pip+PyPI
1516
- pytest
1617
- pytest-cov
17-
- nose
18+
- pytest-mock
19+
- pytest-timeout
20+
- python=3.6
21+
- pytz
22+
- requests
23+
- scipy
1824
- shapely # pvfactors dependency
25+
- siphon # conda-forge
1926
- pip:
20-
- coveralls
21-
- pytest-mock
22-
- pytest-timeout
2327
- pvfactors==1.0.1

ci/requirements-py37.yml

Lines changed: 15 additions & 11 deletions

0 commit comments

Comments
 (0)