Skip to content

Commit 86a8282

Browse files
committed
Prepare for 2.2.0 release
Bump up Python version now we use StrEnum, update actions in workflow and switch to use ruff and ignore violations in slurmdb models
1 parent 1aa09cf commit 86a8282

5 files changed

Lines changed: 23 additions & 18 deletions

File tree

.github/workflows/python-package.yml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,29 +18,29 @@ jobs:
1818
python-version: ["3.11"]
1919

2020
steps:
21-
- uses: actions/checkout@v4
21+
- uses: actions/checkout@v6
2222
- name: Set up Python ${{ matrix.python-version }}
23-
uses: actions/setup-python@v5
23+
uses: actions/setup-python@v6
2424
with:
2525
python-version: ${{ matrix.python-version }}
2626
- name: Install dependencies
2727
run: |
2828
python -m pip install --upgrade pip
29-
python -m pip install flake8 parameterized pytest
29+
python -m pip install ruff parameterized pytest
3030
if [ -f dev_requirements.txt ]; then pip install -r dev_requirements.txt; else pip install -r requirements.txt; fi
31-
- name: Lint with flake8
31+
- name: Lint with ruff
3232
run: |
3333
# stop the build if there are Python syntax errors or undefined names
34-
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
34+
ruff check . --select=E9,F63,F7,F82 --output-format=full
3535
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
36-
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
36+
ruff check . --exit-zero --line-length=127 --statistics
3737
- name: Test with pytest
3838
run: |
3939
pytest -vvv tests/
4040
- name: Build sdist and wheel
4141
run: pipx run build
4242
- name: Upload sdist and wheel as artifacts
43-
uses: actions/upload-artifact@v4
43+
uses: actions/upload-artifact@v7
4444
with:
4545
name: dist
4646
path: dist
@@ -61,7 +61,10 @@ jobs:
6161

6262
steps:
6363
# download sdist and wheel from dist job
64-
- uses: actions/download-artifact@v4
65-
# publish to PyPI using trusted publishing
66-
- name: Publish to PyPI
67-
uses: pypa/gh-action-pypi-publish@release/v1
64+
- uses: actions/download-artifact@v8
65+
with:
66+
path: dist
67+
# Publish to PyPI using trusted publishing
68+
- name: Publish to PyPI (v1.14.0)
69+
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b
70+

ParProcCo/slurm/slurmdb_rest.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22
# filename: slurmdb-rest-44.yaml
33
# timestamp: 2026-06-11T15:22:35+00:00
44

5+
# ruff: noqa: F405
6+
57
from __future__ import annotations
6-
from pydantic import BaseModel, Field, RootModel
8+
from pydantic import BaseModel, Field
79

8-
from slurm_rest import *
10+
from slurm_rest import * # noqa: F403
911

1012
class OpenapiSlurmdbdPingResp(BaseModel):
1113
errors: OpenapiErrors | None = None

conda/meta.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% set name = "ParProcCo" %}
2-
{% set version = "2.1.1" %}
2+
{% set version = "2.2.0" %}
33

44
package:
55
name: {{ name|lower }}
@@ -15,11 +15,11 @@ build:
1515

1616
requirements:
1717
host:
18-
- python >=3.10
18+
- python >=3.11
1919
- pip
2020
- setuptools
2121
run:
22-
- python >=3.10
22+
- python >=3.11
2323
- h5py >=3
2424
- pydantic >=2
2525
- pyyaml

environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: parprocco
22
channels:
33
- conda-forge
44
dependencies:
5-
- python >=3.10
5+
- python >=3.11
66
- h5py >=3
77
- pydantic >=2
88
- pyyaml

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ classifiers = [
1919
"Natural Language :: English",
2020
"Programming Language :: Python :: 3 :: Only",
2121
]
22-
requires-python = ">= 3.10"
22+
requires-python = ">= 3.11"
2323
dependencies = [
2424
"h5py",
2525
"pydantic",

0 commit comments

Comments
 (0)