Skip to content

Commit 1ae0b75

Browse files
packaging: Use PEP 621
1 parent bf91100 commit 1ae0b75

File tree

5 files changed

+429
-343
lines changed

5 files changed

+429
-343
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: 6 additions & 3 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,16 @@ 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
99102
with:
100-
python-version: "3.x"
101103
cache: pip
102104
cache-dependency-path: poetry.lock
103105

@@ -109,6 +111,7 @@ jobs:
109111
- name: Install Poetry
110112
run: |
111113
pipx install poetry
114+
pipx inject poetry poetry-plugin-export
112115
poetry --version
113116
poetry self show plugins
114117
@@ -120,4 +123,4 @@ jobs:
120123
121124
- name: Run typing checks
122125
run: |
123-
nox --verbose -s mypy
126+
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

0 commit comments

Comments
 (0)