Skip to content

Commit 2290b24

Browse files
packaging: Use PEP 621
1 parent bf91100 commit 2290b24

File tree

6 files changed

+433
-345
lines changed

6 files changed

+433
-345
lines changed

.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
nox==2024.10.9
33
nox-poetry==1.0.3
4-
poetry==1.8.5
4+
poetry @ git+https://github.com/python-poetry/poetry.git@main
55
poetry-dynamic-versioning==1.4.1
6+
poetry-plugin-export==1.8.0

.github/workflows/test.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ jobs:
3737
test:
3838
runs-on: ubuntu-latest
3939
env:
40-
FORCE_COLOR: "1"
4140
NOXPYTHON: ${{ matrix.python-version }}
4241
NOXSESSION: tests
4342
PIP_CONSTRAINT: ${{ github.workspace }}/.github/workflows/constraints.txt
@@ -72,6 +71,7 @@ jobs:
7271
- name: Install Poetry
7372
run: |
7473
pipx install poetry
74+
pipx inject poetry poetry-plugin-export
7575
poetry --version
7676
poetry self show plugins
7777
@@ -90,14 +90,17 @@ jobs:
9090
9191
typing:
9292
runs-on: ubuntu-latest
93+
env:
94+
NOXSESSION: mypy
95+
PIP_CONSTRAINT: ${{ github.workspace }}/.github/workflows/constraints.txt
9396
steps:
9497
- name: Checkout code
9598
uses: actions/checkout@v4
9699

97100
- name: Set up Python
98101
uses: actions/setup-python@v5
102+
id: setup-python
99103
with:
100-
python-version: "3.x"
101104
cache: pip
102105
cache-dependency-path: poetry.lock
103106

@@ -108,16 +111,17 @@ jobs:
108111
109112
- name: Install Poetry
110113
run: |
111-
pipx install poetry
114+
pipx install poetry --python ${{ steps.setup-python.outputs.python-path }}
115+
pipx inject poetry poetry-plugin-export
112116
poetry --version
113117
poetry self show plugins
114118
115119
- name: Install Nox
116120
run: |
117-
pipx install nox
121+
pipx install nox --python ${{ steps.setup-python.outputs.python-path }}
118122
pipx inject nox nox-poetry
119123
nox --version
120124
121125
- name: Run typing checks
122126
run: |
123-
nox --verbose -s mypy
127+
nox --verbose

.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)