Skip to content

Commit 02dcd71

Browse files
committed
Upgrade nox-poetry to use poetry 1.2 / py38+
1 parent c796175 commit 02dcd71

8 files changed

Lines changed: 827 additions & 639 deletions

File tree

.github/workflows/constraints.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
pip==22.1.2
22
nox==2022.1.7
3-
poetry==1.1.13
3+
poetry==1.2.2
44
virtualenv==20.14.1

.github/workflows/tests.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,9 @@ jobs:
1717
- { python: "3.10", os: "ubuntu-latest", session: "mypy" }
1818
- { python: "3.9", os: "ubuntu-latest", session: "mypy" }
1919
- { python: "3.8", os: "ubuntu-latest", session: "mypy" }
20-
- { python: "3.7", os: "ubuntu-latest", session: "mypy" }
2120
- { python: "3.10", os: "ubuntu-latest", session: "tests" }
2221
- { python: "3.9", os: "ubuntu-latest", session: "tests" }
2322
- { python: "3.8", os: "ubuntu-latest", session: "tests" }
24-
- { python: "3.7", os: "ubuntu-latest", session: "tests" }
2523
- { python: "3.10", os: "windows-latest", session: "tests" }
2624
- { python: "3.10", os: "macos-latest", session: "tests" }
2725
- { python: "3.10", os: "ubuntu-latest", session: "xdoctest" }

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Request features on the [Issue Tracker].
3737

3838
## How to set up your development environment
3939

40-
You need Python 3.7+ and [Poetry].
40+
You need Python 3.8+ and [Poetry].
4141

4242
Install the package with development requirements:
4343

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,10 @@ $ pipx inject nox nox-poetry
5050

5151
## Requirements
5252

53-
- Python 3.7+
54-
- Poetry >= 1.0.0
53+
- Python 3.8+
54+
- Poetry >= 1.2.0
55+
56+
Note: for poetry versions <1.2.0 or Python 3.7, use nox-poetry 1.0.1.
5557

5658
You need to have a Poetry installation on your system.
5759
`nox-poetry` uses Poetry via its command-line interface.

noxfile.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414

1515

1616
package = "nox_poetry"
17-
python_versions = ["3.10", "3.9", "3.8", "3.7"]
17+
poetry_version = "1.2.2"
18+
python_versions = ["3.10", "3.9", "3.8"]
1819
nox.needs_version = ">= 2021.6.6"
1920
nox.options.sessions = (
2021
"pre-commit",
@@ -152,7 +153,10 @@ def mypy(session: Session) -> None:
152153
@session
153154
@nox.parametrize(
154155
"python,poetry",
155-
[(python_versions[0], "1.0.10"), *((python, None) for python in python_versions)],
156+
[
157+
(python_versions[0], poetry_version),
158+
*((python, None) for python in python_versions),
159+
],
156160
)
157161
def tests(session: Session, poetry: Optional[str]) -> None:
158162
"""Run the test suite."""

0 commit comments

Comments
 (0)