Skip to content

Commit 9fd1861

Browse files
committed
2 parents e5c6c3a + 709daa6 commit 9fd1861

File tree

199 files changed

+267589
-26412
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

199 files changed

+267589
-26412
lines changed

.github/workflows/publish.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Publish distributions to PyPI
2+
3+
# if this workflow is modified to be a generic CI workflow then
4+
# add an if statement to the publish step so it only runs on tags.
5+
on:
6+
push:
7+
tags:
8+
- "v*"
9+
10+
jobs:
11+
build-n-publish:
12+
name: Build and publish distributions to PyPI
13+
if: github.repository == 'pvlib/pvlib-python'
14+
runs-on: ubuntu-latest
15+
steps:
16+
# fetch all commits and tags so versioneer works
17+
- uses: actions/checkout@v2
18+
with:
19+
fetch-depth: 0
20+
21+
- name: Set up Python
22+
uses: actions/setup-python@v2
23+
with:
24+
python-version: 3.8
25+
26+
- name: Install build tools
27+
run: |
28+
python -m pip install --upgrade pip
29+
python -m pip install --upgrade setuptools wheel
30+
31+
- name: Build packages
32+
run: python setup.py sdist bdist_wheel
33+
34+
- name: Publish distribution to PyPI
35+
uses: pypa/gh-action-pypi-publish@master
36+
with:
37+
user: __token__
38+
password: ${{ secrets.pypi_password }}

.gitignore

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ pvlib/spa_c_files/spa_tester.c
4141
# generated documentation
4242
docs/sphinx/source/generated
4343
docs/sphinx/source/savefig
44+
docs/sphinx/source/auto_examples
4445

4546
# Installer logs
4647
pip-log.txt
@@ -77,15 +78,22 @@ coverage.xml
7778
*.h5
7879

7980

80-
#Datafiles
81+
# Datafiles
8182
*.csv
83+
# Ignore some csv
84+
!pvlib/data/*.csv
8285

8386
# vi
8487
*.swp
8588

86-
#Ignore some notebooks
89+
# Ignore some notebooks
8790
*.ipynb
8891
!docs/tutorials/*.ipynb
8992

90-
#Ignore Mac DS_store files
93+
# Ignore Mac DS_store files
9194
*.DS_Store
95+
96+
# airspeed velocity
97+
env
98+
results
99+

.stickler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ linters:
22
flake8:
33
python: 3
44
max-line-length: 79
5-
ignore: E201,E241,E226
5+
ignore: E201,E241,E226,W503,W504
66
files:
77
ignore:
88
- 'pvlib/_version.py'

.travis.yml

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

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
BSD 3-Clause License
22

3-
Copyright (c) 2013-2018, Sandia National Laboratories and pvlib python Development Team
3+
Copyright (c) 2013-2021, Sandia National Laboratories and pvlib python Development Team
44
All rights reserved.
55

66
Redistribution and use in source and binary forms, with or without modification,

README.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@
2525
<tr>
2626
<td>Build Status</td>
2727
<td>
28-
<a href="https://travis-ci.org/pvlib/pvlib-python">
29-
<img src="https://travis-ci.org/pvlib/pvlib-python.svg?branch=master" alt="travis build status" />
30-
</a>
3128
<a href="http://pvlib-python.readthedocs.org/en/stable/">
3229
<img src="https://readthedocs.org/projects/pvlib-python/badge/?version=stable" alt="documentation build status" />
3330
</a>
@@ -61,8 +58,8 @@
6158
<tr>
6259
<td>Publications</td>
6360
<td>
64-
<a href="https://doi.org/10.5281/zenodo.2554311">
65-
<img src="https://zenodo.org/badge/DOI/10.5281/zenodo.2554311.svg" alt="zenodo reference" />
61+
<a href="https://doi.org/10.5281/zenodo.3762635">
62+
<img src="https://zenodo.org/badge/DOI/10.5281/zenodo.3762635.svg" alt="zenodo reference">
6663
</a>
6764
<a href="http://joss.theoj.org/papers/41187535cad22dd4b076c89b72f874b1">
6865
<img src="http://joss.theoj.org/papers/41187535cad22dd4b076c89b72f874b1/status.svg" alt="JOSS reference" />
@@ -105,10 +102,6 @@ Installation
105102
pvlib-python releases may be installed using the ``pip`` and ``conda`` tools.
106103
Please see the [Installation page](http://pvlib-python.readthedocs.io/en/stable/installation.html) of the documentation for complete instructions.
107104

108-
pvlib-python is compatible with Python 3.5 and above.
109-
110-
**Python 2.7 support ended on June 1, 2019, with pvlib-python 0.6.3.**
111-
112105

113106
Contributing
114107
============

azure-pipelines.yml

Lines changed: 16 additions & 157 deletions
Original file line numberDiff line numberDiff line change
@@ -6,169 +6,28 @@ trigger:
66

77
jobs:
88

9-
- job: 'Test_bare_linux'
9+
- template: ci/azure/posix.yml
10+
parameters:
11+
name: Test_bare_Linux
12+
vmImage: ubuntu-16.04
1013

11-
pool:
12-
vmImage: 'ubuntu-16.04'
13-
strategy:
14-
matrix:
15-
Python35:
16-
python.version: '3.5'
17-
Python36:
18-
python.version: '3.6'
19-
Python37:
20-
python.version: '3.7'
21-
22-
steps:
23-
- task: UsePythonVersion@0
24-
inputs:
25-
versionSpec: '$(python.version)'
26-
27-
- script: |
28-
pip install pytest pytest-cov pytest-mock pytest-timeout pytest-azurepipelines
29-
pip install -e .
30-
pytest pvlib --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html
31-
displayName: 'Test with pytest'
32-
33-
- task: PublishTestResults@2
34-
condition: succeededOrFailed()
35-
inputs:
36-
testResultsFiles: '**/test-*.xml'
37-
testRunTitle: 'Publish test results for Python $(python.version)'
38-
39-
- task: PublishCodeCoverageResults@1
40-
inputs:
41-
codeCoverageTool: Cobertura
42-
summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/coverage.xml'
43-
reportDirectory: '$(System.DefaultWorkingDirectory)/**/htmlcov'
4414

15+
- template: ci/azure/posix.yml
16+
parameters:
17+
name: Test_bare_macOS
18+
vmImage: macOS-10.14
4519

46-
- job: 'Test_conda_linux'
4720

48-
pool:
49-
vmImage: 'ubuntu-16.04'
21+
- template: ci/azure/conda_linux.yml
22+
parameters:
23+
name: Test_conda_linux
24+
vmImage: ubuntu-16.04
5025

51-
strategy:
52-
matrix:
53-
Python35:
54-
python.version: '35'
55-
Python36:
56-
python.version: '36'
57-
coverage: true
58-
Python37:
59-
python.version: '37'
6026

61-
steps:
62-
- bash: echo "##vso[task.prependpath]/usr/share/miniconda/bin"
63-
displayName: Add conda to PATH
64-
- script: conda env create --quiet --file ci/requirements-py$(python.version).yml
65-
displayName: Create Anaconda environment
66-
- script: |
67-
source activate test_env
68-
pip install pytest-azurepipelines
69-
pip install -e .
70-
displayName: 'pip dependencies'
71-
- script: |
72-
source activate test_env
73-
conda list
74-
displayName: 'List installed dependencies'
75-
- script: |
76-
source activate test_env
77-
pytest pvlib --junitxml=junit/test-results.xml --cov --cov-report=xml --cov-report=html
78-
displayName: 'pytest'
79-
# - script: |
80-
# source activate test_env
81-
# flake8 pvlib
82-
# displayName: 'flake8'
83-
- task: PublishTestResults@2
84-
inputs:
85-
testResultsFiles: '**/test-results.xml'
86-
testRunTitle: 'Linux $(python.version)'
87-
- task: PublishCodeCoverageResults@1
88-
inputs:
89-
codeCoverageTool: Cobertura
90-
summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/coverage.xml'
91-
reportDirectory: '$(System.DefaultWorkingDirectory)/**/htmlcov'
92-
condition: eq(variables['coverage'], true)
93-
- script: |
94-
bash <(curl https://codecov.io/bash) -t bbc2bdbe-5e67-4fef-9cb7-f52fe0b703a8 -f coverage.xml -F adder -F subtractor -F conda
95-
displayName: 'codecov'
96-
condition: eq(variables['coverage'], true)
97-
98-
99-
- job: 'Test_conda_windows'
100-
101-
pool:
102-
vmImage: 'vs2017-win2016'
103-
104-
strategy:
105-
matrix:
106-
Python35-windows:
107-
python.version: '35'
108-
Python36-windows:
109-
python.version: '36'
110-
Python37-windows:
111-
python.version: '37'
112-
113-
steps:
114-
- powershell: Write-Host "##vso[task.prependpath]$env:CONDA\Scripts"
115-
displayName: Add conda to PATH
116-
- script: conda env create --quiet --file ci/requirements-py$(python.version).yml
117-
displayName: Create Anaconda environment
118-
- script: |
119-
call activate test_env
120-
pip install pytest-azurepipelines
121-
pip install -e .
122-
displayName: 'pip dependencies'
123-
- script: |
124-
call activate test_env
125-
conda list
126-
displayName: 'List installed dependencies'
127-
- script: |
128-
call activate test_env
129-
pytest pvlib --junitxml=junit/test-results.xml
130-
displayName: 'pytest'
131-
- task: PublishTestResults@2
132-
inputs:
133-
testResultsFiles: '**/test-results.xml'
134-
testRunTitle: 'Windows $(python.version)'
135-
136-
137-
- job: 'Test_bare_macOS_Mojave'
138-
139-
pool:
140-
vmImage: 'macOS-10.14'
141-
strategy:
142-
matrix:
143-
Python35:
144-
python.version: '3.5'
145-
Python36:
146-
python.version: '3.6'
147-
Python37:
148-
python.version: '3.7'
149-
150-
steps:
151-
- task: UsePythonVersion@0
152-
inputs:
153-
versionSpec: '$(python.version)'
154-
155-
- script: |
156-
pip install pytest pytest-cov pytest-mock pytest-timeout pytest-azurepipelines
157-
pip install -e .
158-
pytest pvlib/test --junitxml=junit/test-results.xml --cov=pvlib --cov-report=xml --cov-report=html
159-
displayName: 'Test with pytest'
160-
161-
- task: PublishTestResults@2
162-
condition: succeededOrFailed()
163-
inputs:
164-
testResultsFiles: '**/test-*.xml'
165-
testRunTitle: 'Publish test results for Python $(python.version)'
166-
167-
- task: PublishCodeCoverageResults@1
168-
inputs:
169-
codeCoverageTool: Cobertura
170-
summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/coverage.xml'
171-
reportDirectory: '$(System.DefaultWorkingDirectory)/**/htmlcov'
27+
- template: ci/azure/conda_windows.yml
28+
parameters:
29+
name: Test_conda_windows
30+
vmImage: vs2017-win2016
17231

17332

17433
- job: 'Publish'

0 commit comments

Comments
 (0)