Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add python 3.11 and 3.12 versions to testing matrix #428

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
966c241
add python 3.11 and 3.12 to pytest.yaml
martin-springer Aug 21, 2024
0427657
update versioneer
martin-springer Aug 21, 2024
e589d7c
update scikit-learn dependencies
martin-springer Aug 21, 2024
7de6423
update numpy requirement to 1.26.4
martin-springer Aug 21, 2024
9d63522
downgrade scikit-learn to 1.5.1
martin-springer Aug 21, 2024
5e8ce2f
downgrad numpy version
martin-springer Aug 21, 2024
5df4c7f
depricate fail_on_rdtools_version decorator
martin-springer Aug 21, 2024
cac2ccb
remove fail_on_rdtools_version
martin-springer Aug 21, 2024
7b239ba
remove python 3.7 and 3.8 from testing matrix
martin-springer Aug 21, 2024
e096607
update statsmodels min version
martin-springer Aug 21, 2024
0881f46
statsmodels requirment
martin-springer Aug 21, 2024
a2f1b8a
clean up conftest imports
martin-springer Aug 21, 2024
141180f
update requirements to latest
martin-springer Aug 21, 2024
31f5d7c
downgrade scipy requirement
martin-springer Aug 21, 2024
47df017
increase pandas to 2.0.3
martin-springer Aug 21, 2024
08a5363
remove tables from requirements-min
martin-springer Aug 21, 2024
2665e6b
migrate filepath to importlib_resources
martin-springer Aug 21, 2024
cba2d16
upgrade scipy in requirements min
martin-springer Aug 21, 2024
ca8f776
update nbval
martin-springer Aug 21, 2024
213efe7
update setup.py classifiers
martin-springer Aug 21, 2024
54e7fc9
bump scipy in requirements min
martin-springer Aug 21, 2024
b7aea08
bump numpy in requirements min
martin-springer Aug 21, 2024
c21b6df
bump notebook-checks to python 3.12
martin-springer Aug 21, 2024
0151789
bump all requirements min
martin-springer Aug 21, 2024
d98b8bf
add joblib and threadpoolctl to requirements-min for scikit-learn
martin-springer Aug 21, 2024
a5f7b7e
update system availability notebook to work with new pandas
martin-springer Aug 21, 2024
755f18b
Update requirements with numpy 2 and pandas 2.2.2
mdeceglie Sep 6, 2024
c042985
Use pandas bug work around
mdeceglie Sep 6, 2024
5e94cdc
replace depricated fillna() method
mdeceglie Sep 6, 2024
f8c5363
Exclude python 3.9 with base requirements from pytest
mdeceglie Sep 6, 2024
0434744
fix deprecations
mdeceglie Sep 11, 2024
c1cacfc
update the nanoseconds pandas alias
mdeceglie Sep 10, 2024
3f3e93a
Delete legacy notebook
mdeceglie Sep 10, 2024
7d3929d
pd deprecation fixes in filtering.py
martin-springer Sep 11, 2024
8eb38c8
pd deprecation fixes in availability.py
martin-springer Sep 11, 2024
f2b7f9d
fix pd fillna downcasting warning
martin-springer Sep 11, 2024
2d2c7c4
exclude py 3.9 min requirements from tests
martin-springer Sep 11, 2024
2ae914e
pd deprecations in tests
martin-springer Sep 11, 2024
78ac2ba
update actions/upload-artifact to v4
martin-springer Sep 11, 2024
e3d51ea
update actions/upload-artifact to v4
martin-springer Sep 11, 2024
3aac61a
Merge branch 'add-new-python-versions-to-testing-matrix' of https://g…
martin-springer Sep 11, 2024
13d8d1b
revert deploy update
martin-springer Sep 11, 2024
3b1d6ad
remove leftover print statement
martin-springer Sep 11, 2024
4e38389
revert requirements min
martin-springer Sep 25, 2024
cde4aa1
increase min statsmodel version
martin-springer Sep 25, 2024
30200ac
bump min matplotlib version
martin-springer Sep 25, 2024
7ef685b
bump min numpy version
martin-springer Sep 25, 2024
769f493
bump min scipy version
martin-springer Sep 25, 2024
9c0c72b
bump min h5py version
martin-springer Sep 25, 2024
7c06342
bump min scitkit-learn
martin-springer Sep 25, 2024
99077c0
bumping min statsmodels version further up
martin-springer Sep 25, 2024
80e59f2
bump min pandas further
martin-springer Sep 25, 2024
d534011
bump min pandas further
martin-springer Sep 25, 2024
57e5131
fix for pandas new ME alias to allow pandas<2
martin-springer Sep 25, 2024
ab2be45
update file url in notebooks
martin-springer Sep 25, 2024
9fd5163
limit nbval to nbval<=0.9.6
martin-springer Sep 25, 2024
4223d04
bump minimum pvlib requirement
martin-springer Oct 10, 2024
df11d0f
re-run notebooks
martin-springer Oct 10, 2024
88f8541
update versions in readthedocs
martin-springer Oct 10, 2024
7a17492
update documentation requirements
martin-springer Oct 10, 2024
b0a730d
add tz to test_hour_angle_filter (pvlib 0.11.1)
martin-springer Oct 10, 2024
69ef31b
fix hour_angle_filter test
martin-springer Oct 10, 2024
6615004
re-run notebooks on linux
martin-springer Oct 10, 2024
a39bb06
add date and time stamp to nbval sanitization rules
martin-springer Oct 11, 2024
5f9d474
update github actions
martin-springer Oct 11, 2024
e53ab5d
Merge branch 'aggregated_filters_for_trials' into add-new-python-vers…
martin-springer Oct 11, 2024
7636ad3
update changelog
martin-springer Oct 11, 2024
06eff91
bump min pvlib requirement in setup.py
martin-springer Oct 14, 2024
a92032c
update rollup_period docstrings in availability.py
martin-springer Oct 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/flake8.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8]
python-version: [3.12]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0 # fetch all branches, needed so we can diff against the target branch
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install flake8
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/nbval.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ jobs:
]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: "3.10"
python-version: "3.12"
- name: Install notebook environment
run: |
python -m pip install --upgrade pip wheel
Expand All @@ -36,7 +36,7 @@ jobs:
mkdir docs/artifacts
jupyter nbconvert --to html --execute --ExecutePreprocessor.timeout=600 --allow-errors --output artifacts/${{ matrix.notebook-file }}.html docs/${{ matrix.notebook-file }}
- name: Upload artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: executed_notebooks
name: executed_notebook_${{ matrix.notebook-file }}
path: docs/artifacts
17 changes: 8 additions & 9 deletions .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,28 +14,27 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
env: [
'-r requirements.txt .[test]',
'-r requirements-min.txt .[test]',
'--upgrade --upgrade-strategy=eager .[test]'
]
exclude:
- python-version: 3.8
- python-version: "3.9"
env: "-r requirements.txt .[test]"
- python-version: "3.10"
env: '-r requirements-min.txt .[test]'
- python-version: 3.9
- python-version: "3.11"
env: '-r requirements-min.txt .[test]'
- python-version: "3.10"
- python-version: "3.12"
env: '-r requirements-min.txt .[test]'
# required numpy is not available on python 3.7, so exclude:
- python-version: 3.7
env: '-r requirements.txt .[test]'
fail-fast: false

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install ${{ matrix.env }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/requirements.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: "3.10"
python-version: "3.12"
- name: Install notebook environment
run: |
python -m pip install --upgrade pip wheel
Expand Down
4 changes: 2 additions & 2 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
version: 2

build:
os: "ubuntu-22.04"
os: "ubuntu-24.04"
tools:
python: "3.7"
python: "3.12"

python:
install:
Expand Down
5,433 changes: 2,697 additions & 2,736 deletions docs/TrendAnalysis_example_pvdaq4.ipynb

Large diffs are not rendered by default.

890 changes: 0 additions & 890 deletions docs/degradation_and_soiling_example.ipynb

This file was deleted.

4,302 changes: 2,224 additions & 2,078 deletions docs/degradation_and_soiling_example_pvdaq_4.ipynb

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions docs/nbval_sanitization_rules.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,11 @@
[regex1]
regex: .*: UserWarning:
replace: NBVAL-FILEPATH: UserWarning:

[regex2]
regex: \d{1,2}/\d{1,2}/\d{2,4}
replace: DATE-STAMP

[regex3]
regex: \d{2}:\d{2}:\d{2}
replace: TIME-STAMP
86 changes: 43 additions & 43 deletions docs/notebook_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,55 +1,55 @@
appnope==0.1.0
argon2-cffi==21.2.0
appnope==0.1.4
argon2-cffi==23.1.0
argon2-cffi-bindings==21.2.0
backcall==0.1.0
beautifulsoup4==4.11.1
bleach==3.3.0
cffi==1.15.0
colorama==0.4.4
decorator==4.3.0
backcall==0.2.0
beautifulsoup4==4.12.3
bleach==6.1.0
cffi==1.17.0
colorama==0.4.6
decorator==5.1.1
defusedxml==0.7.1
entrypoints==0.2.3
html5lib==1.0.1
ipykernel==6.29.4
ipython==8.23.0
entrypoints==0.4
html5lib==1.1
ipykernel==6.29.5
ipython==8.26.0
ipython-genutils==0.2.0
ipywidgets==7.3.0
jedi==0.16.0
Jinja2==3.1.3
jsonschema==4.18.0
ipywidgets==8.1.3
jedi==0.19.1
Jinja2==3.1.4
jsonschema==4.23.0
jupyter==1.0.0
jupyter-client==8.6.1
jupyter-client==8.6.2
jupyter-console==6.6.3
jupyter-core==5.7.2
jupyterlab-pygments==0.3.0
lxml==4.9.1
MarkupSafe==2.0.0
mistune==2.0.3
nbclient==0.6.3
nbconvert==7.0.0
nbformat==5.3.0
nest-asyncio==1.5.5
notebook==6.4.12
numexpr==2.10.0
lxml==5.3.0
MarkupSafe==2.1.5
mistune==3.0.2
nbclient==0.10.0
nbconvert==7.16.4
nbformat==5.10.4
nest-asyncio==1.6.0
notebook==7.2.1
numexpr==2.10.1
pandocfilters==1.5.1
parso==0.5.2
pexpect==4.6.0
parso==0.8.4
pexpect==4.9.0
pickleshare==0.7.5
prometheus-client==0.9
prompt-toolkit==3.0.43
ptyprocess==0.6.0
pycparser==2.20
Pygments==2.15.0
pyzmq==26.0.2
qtconsole==4.3.1
Send2Trash==1.8.2
prometheus-client==0.20.0
prompt-toolkit==3.0.47
ptyprocess==0.7.0
pycparser==2.22
Pygments==2.18.0
pyzmq==26.1.1
qtconsole==5.5.2
Send2Trash==1.8.3
simplegeneric==0.8.1
soupsieve==2.3.2.post1
terminado==0.8.3
testpath==0.3.1
tinycss2==1.1.1
tornado==6.3.3
soupsieve==2.6
terminado==0.18.1
testpath==0.6.0
tinycss2==1.3.0
tornado==6.4.1
traitlets==5.14.3
wcwidth==0.1.7
wcwidth==0.2.13
webencodings==0.5.1
widgetsnbextension==3.3.0
widgetsnbextension==4.0.11
1 change: 0 additions & 1 deletion docs/sphinx/source/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ Normalization
normalize_with_expected_power
normalize_with_pvwatts
pvwatts_dc_power
sapm_dc_power
delta_index
check_series_frequency

Expand Down
Loading