Skip to content

Commit 6ddec28

Browse files
chore: Prepare for Poetry 2.0 (#120)
1 parent 5f477d9 commit 6ddec28

3 files changed

Lines changed: 16 additions & 7 deletions

File tree

.github/workflows/constraints.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
pip==24.3.1
22
poetry==1.8.5
3-
poetry-dynamic-versioning==1.4.1
3+
poetry-dynamic-versioning==1.5.0
4+
poetry-plugin-export==1.8.0
45
nox==2024.10.9
56
nox-poetry==1.0.3

.github/workflows/test.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,13 @@ jobs:
3434
test:
3535
runs-on: ubuntu-latest
3636
env:
37-
FORCE_COLOR: "1"
38-
NOXPYTHON: ${{ matrix.python-version }}
37+
NOXFORCEPYTHON: ${{ matrix.python-version }}
3938
NOXSESSION: tests
4039
PIP_CONSTRAINT: ${{ github.workspace }}/.github/workflows/constraints.txt
40+
PYO3_USE_ABI3_FORWARD_COMPATIBILITY: "1"
4141
strategy:
42+
fail-fast: false
43+
max-parallel: 2
4244
matrix:
4345
python-version:
4446
- "3.9"
@@ -64,6 +66,7 @@ jobs:
6466
- name: Install Poetry
6567
run: |
6668
pipx install poetry
69+
pipx inject poetry poetry-plugin-export
6770
poetry --version
6871
poetry self show plugins
6972
@@ -82,12 +85,16 @@ jobs:
8285
8386
typing:
8487
runs-on: ubuntu-latest
88+
env:
89+
NOXSESSION: mypy
90+
PIP_CONSTRAINT: ${{ github.workspace }}/.github/workflows/constraints.txt
8591
steps:
8692
- name: Checkout code
8793
uses: actions/checkout@v4
8894

8995
- name: Set up Python
9096
uses: actions/setup-python@v5
97+
id: setup-python
9198
with:
9299
python-version: "3.x"
93100
cache: pip
@@ -100,16 +107,17 @@ jobs:
100107
101108
- name: Install Poetry
102109
run: |
103-
pipx install poetry
110+
pipx install poetry --python ${{ steps.setup-python.outputs.python-path }}
111+
pipx inject poetry poetry-plugin-export
104112
poetry --version
105113
poetry self show plugins
106114
107115
- name: Install Nox
108116
run: |
109-
pipx install nox
117+
pipx install nox --python ${{ steps.setup-python.outputs.python-path }}
110118
pipx inject nox nox-poetry
111119
nox --version
112120
113121
- name: Run typing checks
114122
run: |
115-
nox --verbose -s mypy
123+
nox --verbose

noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
@session(python=python_versions)
3131
def tests(session: Session) -> None:
3232
"""Execute pytest tests."""
33-
deps = ["pytest", "pytest-durations"]
33+
deps = ["pytest"]
3434
if "GITHUB_ACTIONS" in os.environ:
3535
deps.append("pytest-github-actions-annotate-failures")
3636

0 commit comments

Comments
 (0)