Skip to content

Commit b59759c

Browse files
committed
2 parents 84bac97 + e3635c2 commit b59759c

28 files changed

+8996
-8941
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,6 @@ coverage.xml
8686
#Ignore some notebooks
8787
*.ipynb
8888
!docs/tutorials/*.ipynb
89+
90+
#Ignore Mac DS_store files
91+
*.DS_Store

.travis.yml

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,8 @@ sudo: false # if false, use TravisCI's container based build
1111
# someday add os: osx to specify osx, but python not yet supported on Travis
1212
matrix:
1313
include:
14-
- python: 2.7
15-
env: CONDA_ENV=py27-min
16-
- python: 2.7
17-
env: CONDA_ENV=py27
18-
- python: 3.4
19-
env: CONDA_ENV=py34
14+
- python: 3.5
15+
env: CONDA_ENV=py35-min
2016
- python: 3.5
2117
env: CONDA_ENV=py35
2218
- python: 3.6
@@ -38,19 +34,15 @@ cache:
3834
# setup miniconda for numpy, scipy, pandas, etc.
3935
before_install:
4036
- echo "before install"
41-
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
42-
export PYVER="2";
43-
else
44-
export PYVER="3";
45-
fi
37+
- export PYVER="3"
4638
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
4739
export OSSTR="MacOSX-x86_64.sh";
4840
else
4941
export OSSTR="Linux-x86_64.sh";
5042
export PATH=/usr/lib/ccache:$PATH;
5143
fi
5244
- export BASE="http://repo.continuum.io/miniconda/Miniconda"
53-
- export CONDAVER="4.5.4"
45+
- export CONDAVER="4.6.14"
5446
- wget $BASE$PYVER-$CONDAVER-$OSSTR -O miniconda.sh;
5547
- bash miniconda.sh -b -p $HOME/miniconda
5648
- export PATH="$HOME/miniconda/bin:$PATH"
@@ -63,14 +55,6 @@ install:
6355
- echo "install"
6456
- conda env create --file ci/requirements-$CONDA_ENV.yml
6557
- source activate test_env # all envs are named test_env in the yml files
66-
# needed to make sure that pandas is compiled against the right
67-
# version of numpy
68-
- if [[ "$CONDA_ENV" == "py27-min" ]]; then
69-
pip uninstall numpy --yes;
70-
pip uninstall pandas --yes;
71-
pip install --no-cache-dir numpy==1.10.1;
72-
pip install --no-cache-dir pandas==0.16.0;
73-
fi
7458
- conda list
7559
- echo $PATH
7660
- ls -l /home/travis/miniconda/envs/test_env/lib

README.md

Lines changed: 9 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
@@ -81,3 +80,10 @@ If you use pvlib-python in a published work, please cite:
8180
Please also cite the DOI corresponding to the specific version of
8281
pvlib-python that you used. pvlib-python DOIs are listed at
8382
[Zenodo.org](https://zenodo.org/search?page=1&size=20&q=conceptrecid:593284&all_versions&sort=-version)
83+
84+
NumFOCUS
85+
========
86+
87+
pvlib python is a [NumFOCUS Affiliated Project](https://numfocus.org/sponsored-projects/affiliated-projects)
88+
89+
[![NumFocus Affliated Projects](https://i0.wp.com/numfocus.org/wp-content/uploads/2019/06/AffiliatedProject.png)](https://numfocus.org/sponsored-projects/affiliated-projects)

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: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: test_env
2+
channels:
3+
- defaults
4+
dependencies:
5+
- coveralls
6+
- nose
7+
- pip
8+
- pytest
9+
- pytest-cov
10+
- pytest-mock
11+
- pytest-timeout
12+
- python=3.5
13+
- pytz
14+
- requests
15+
- pip:
16+
- numpy==1.10.4
17+
- pandas==0.18.1

ci/requirements-py35.yml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,26 @@ 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
- nrel-pysam
2428
- pvfactors==1.0.1

ci/requirements-py36.yml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,26 @@ 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
2227
- nrel-pysam==1.2.1
23-
- pytest-timeout
2428
- pvfactors==1.0.1

ci/requirements-py37.yml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,26 @@ channels:
33
- defaults
44
- conda-forge
55
dependencies:
6-
- python=3.7
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.7
21+
- pytz
22+
- requests
23+
- scipy
1824
- shapely # pvfactors dependency
25+
- siphon # conda-forge
1926
- pip:
20-
- coveralls
21-
- pytest-mock
2227
- nrel-pysam
23-
- pytest-timeout
2428
- pvfactors==1.0.1

docs/environment.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ channels:
44
- defaults
55
dependencies:
66
- python=3.6
7-
- mock # needed for local python 2.7 builds
87
- numpy=1.14.2
98
- scipy
109
- pytables

docs/sphinx/source/conf.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,8 @@
1616
import os
1717

1818
# Mock modules so RTD works
19-
try:
20-
from mock import Mock as MagicMock
21-
except ImportError:
22-
from unittest.mock import MagicMock
19+
from unittest.mock import MagicMock
20+
2321

2422
class Mock(MagicMock):
2523
@classmethod

docs/sphinx/source/contributing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ pvlib python generally follows the `PEP 8 -- Style Guide for Python Code
196196
<https://www.python.org/dev/peps/pep-0008/>`_. Maximum line length for code
197197
is 79 characters.
198198

199-
Code must be compatible with python 2.7 and 3.4+.
199+
Code must be compatible with Python 3.5 and above.
200200

201201
pvlib python uses a mix of full and abbreviated variable names. See
202202
:ref:`variables_style_rules`. We could be better about consistency.

docs/sphinx/source/installation.rst

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,15 @@ non-editable way, use one of the following commands to install pvlib-python::
7777
# another option if you know what you are doing
7878
pip install pvlib[optional]
7979

80+
.. note::
81+
82+
By default, pvlib will not install some infrequently used dependencies.
83+
If you run into an error such as
84+
`ModuleNotFoundError: No module named 'netCDF4'`
85+
you can either install pvlib with all optional dependencies using
86+
`pip install pvlib[optional]`, or you can install pvlib from conda-forge
87+
`conda create -n pvlib -c conda-forge pvlib-python; conda activate pvlib`.
88+
8089
If your system complains that you don't have access privileges or asks
8190
for a password then you're probably trying to install pvlib into your
8291
system's Python distribution. This is usually a bad idea and you should
@@ -201,8 +210,7 @@ Any changes that you make to this pvlib-python will be available inside
201210
your environment. If you run a git checkout, branch, or pull command the
202211
result will be applied to your pvlib-python installation. This
203212
is great for development. Note, however, that you will need to use
204-
Python's ``reload`` function (`python 2
205-
<https://docs.python.org/2/library/functions.html#reload>`_, `python 3
213+
Python's ``reload`` function (`python 3
206214
<https://docs.python.org/3/library/importlib.html#importlib.reload>`_)
207215
if you make changes to pvlib during an interactive Python
208216
session (including a Jupyter notebook). Restarting the Python
@@ -216,7 +224,7 @@ environment) when you start a new shell or terminal.
216224
Compatibility
217225
-------------
218226

219-
pvlib-python is compatible with Python versions 2.7 and 3.4-3.7.
227+
pvlib-python is compatible with Python 3.5 and above.
220228

221229
pvlib-python requires Pandas and Numpy. The minimum version requirements
222230
are specified in
@@ -228,7 +236,7 @@ be installed separately using pip or conda. These packages/features
228236
include:
229237

230238
* scipy: single diode model, clear sky detection
231-
* pytables: Linke turbidity look up for clear sky models
239+
* pytables (tables on PyPI): Linke turbidity look up for clear sky models
232240
* numba: fastest solar position calculations
233241
* pyephem: solar positions calculations using an astronomical library
234242
* siphon: forecasting PV power using the pvlib.forecast module

docs/sphinx/source/whatsnew.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ What's New
66

77
These are new features and improvements of note in each release.
88

9+
.. include:: whatsnew/v0.7.0.rst
910
.. include:: whatsnew/v0.6.3.rst
1011
.. include:: whatsnew/v0.6.2.rst
1112
.. include:: whatsnew/v0.6.1.rst

0 commit comments

Comments
 (0)