Skip to content

Commit

Permalink
refactor: support python3.12, various updates (#145)
Browse files Browse the repository at this point in the history
* fix awvwgk/setup-fortran -> fortran-lang/setup-fortran
* remove pytest-virtualenv testing dependency
* add python 3.12 classifier in pyproject.toml
* update CI workflows to use python 3.12
* add IDE/venv folders to .gitignore
  • Loading branch information
wpbonelli authored Nov 13, 2023
1 parent 5cd0858 commit 58858b7
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 23 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ on:
schedule:
- cron: '0 7 * * *' # run at 7 AM UTC every day
push:
branches:
- master
pull_request:
branches:
- master
Expand All @@ -27,7 +25,7 @@ jobs:
uses: actions/checkout@v4

- name: Setup Intel Fortran Classic
uses: awvwgk/setup-fortran@v1
uses: fortran-lang/setup-fortran@v1
with:
compiler: intel-classic
version: "2021.7"
Expand All @@ -39,7 +37,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
python-version: "3.12"

- name: Install python packages
run: |
Expand Down
14 changes: 6 additions & 8 deletions .github/workflows/pymake-gcc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ on:
schedule:
- cron: '0 7 * * *' # run at 7 AM UTC every day
push:
branches:
- master
pull_request:
branches:
- master
Expand All @@ -19,17 +17,17 @@ jobs:
matrix:
include:
# test latest gcc and python
- {os: ubuntu-latest, gcc: 13, python: "3.11"}
- {os: windows-latest, gcc: 12, python: "3.11"}
- {os: macos-latest, gcc: 13, python: "3.11"}
- {os: ubuntu-latest, gcc: 13, python: "3.12"}
- {os: windows-latest, gcc: 13, python: "3.12"}
- {os: macos-latest, gcc: 13, python: "3.12"}
# test latest gcc and previous python
- {os: ubuntu-latest, gcc: 13, python: "3.11"}
- {os: ubuntu-latest, gcc: 13, python: "3.10"}
- {os: ubuntu-latest, gcc: 13, python: 3.9}
- {os: ubuntu-latest, gcc: 13, python: 3.8}
# test latest python and previous gcc
- {os: ubuntu-latest, gcc: 12, python: "3.11"}
- {os: ubuntu-latest, gcc: 11, python: "3.11"}
- {os: ubuntu-latest, gcc: 12, python: "3.12"}
- {os: ubuntu-latest, gcc: 11, python: "3.12"}
defaults:
run:
shell: bash
Expand All @@ -53,7 +51,7 @@ jobs:
pip install ".[test]"
- name: Setup GNU Fortran
uses: awvwgk/setup-fortran@v1
uses: fortran-lang/setup-fortran@v1
with:
compiler: gcc
version: ${{ matrix.gcc }}
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/pymake-linting-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ on:
schedule:
- cron: '0 3 * * 3' # run at 3 AM UTC every Wednesday
push:
branches:
- master
pull_request:
branches:
- master
Expand All @@ -24,7 +22,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
python-version: "3.12"

- name: Setup Graphviz
uses: ts-graphviz/setup-graphviz@v1
Expand Down Expand Up @@ -76,7 +74,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
python-version: "3.12"

- name: Upgrade pip and install build and twine
run: |
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/pymake-requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ on:
schedule:
- cron: '0 7 * * *' # run at 7 AM UTC every day
push:
branches:
- master
pull_request:
branches:
- master
Expand All @@ -25,7 +23,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
python-version: "3.12"

- name: Install python packages
run: |
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/pymake-rtd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ on:
schedule:
- cron: '0 3 * * 3' # run at 3 AM UTC every Wednesday
push:
branches:
- master
pull_request:
branches:
- master
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@ docs/_build/
# PyBuilder
target/

# PyCharm
# IDEs
.idea/
.vscode/

# files in the autotest directory
autotest/temp*/
Expand All @@ -73,3 +74,5 @@ Dependencies
# files in the doc directory
docs/source/

# local python environments
venv/
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Hydrology",
]
requires-python = ">=3.8"
Expand Down Expand Up @@ -57,7 +58,6 @@ test = [
"pytest-cov",
"pytest-dependency",
"pytest-dotenv",
"pytest-virtualenv",
"pytest-xdist",
"appdirs",
"matplotlib",
Expand Down

0 comments on commit 58858b7

Please sign in to comment.