Skip to content

Commit a35d1e6

Browse files
packaging: Use PEP 621
1 parent 29681b8 commit a35d1e6

File tree

6 files changed

+402
-313
lines changed

6 files changed

+402
-313
lines changed

.github/workflows/constraints.txt

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

.github/workflows/test.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,10 @@ jobs:
3737
test:
3838
runs-on: ubuntu-latest
3939
env:
40-
NOXPYTHON: ${{ matrix.python-version }}
40+
NOXFORCEPYTHON: ${{ matrix.python-version }}
4141
NOXSESSION: tests
4242
PIP_CONSTRAINT: ${{ github.workspace }}/.github/workflows/constraints.txt
43+
PYO3_USE_ABI3_FORWARD_COMPATIBILITY: "1"
4344
strategy:
4445
fail-fast: false
4546
max-parallel: 2
@@ -50,6 +51,7 @@ jobs:
5051
- "3.11"
5152
- "3.12"
5253
- "3.13"
54+
- "3.14"
5355

5456
steps:
5557
- name: Checkout code
@@ -71,6 +73,7 @@ jobs:
7173
- name: Install Poetry
7274
run: |
7375
pipx install poetry
76+
pipx inject poetry poetry-plugin-export
7477
poetry --version
7578
poetry self show plugins
7679
@@ -98,8 +101,8 @@ jobs:
98101

99102
- name: Set up Python
100103
uses: actions/setup-python@v5
104+
id: setup-python
101105
with:
102-
python-version: "3.x"
103106
cache: pip
104107
cache-dependency-path: poetry.lock
105108

@@ -110,13 +113,14 @@ jobs:
110113
111114
- name: Install Poetry
112115
run: |
113-
pipx install poetry
116+
pipx install poetry --python ${{ steps.setup-python.outputs.python-path }}
117+
pipx inject poetry poetry-plugin-export
114118
poetry --version
115119
poetry self show plugins
116120
117121
- name: Install Nox
118122
run: |
119-
pipx install nox
123+
pipx install nox --python ${{ steps.setup-python.outputs.python-path }}
120124
pipx inject nox nox-poetry
121125
nox --version
122126

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,6 @@ target/
8585
profile_default/
8686
ipython_config.py
8787

88-
# pyenv
89-
.python-version
90-
9188
# pipenv
9289
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
9390
# However, in case of collaboration, if having platform-specific dependencies or dependencies

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.13

0 commit comments

Comments
 (0)