Skip to content

Commit 4720aeb

Browse files
committed
Upgrade nox-poetry to use poetry 1.2 / py38+
1 parent 5772b66 commit 4720aeb

File tree

7 files changed

+392
-177
lines changed

7 files changed

+392
-177
lines changed

.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
@@ -18,12 +18,10 @@ jobs:
1818
- { python: "3.10", os: "ubuntu-latest", session: "mypy" }
1919
- { python: "3.9", os: "ubuntu-latest", session: "mypy" }
2020
- { python: "3.8", os: "ubuntu-latest", session: "mypy" }
21-
- { python: "3.7", os: "ubuntu-latest", session: "mypy" }
2221
- { python: "3.11", os: "ubuntu-latest", session: "tests" }
2322
- { python: "3.10", os: "ubuntu-latest", session: "tests" }
2423
- { python: "3.9", os: "ubuntu-latest", session: "tests" }
2524
- { python: "3.8", os: "ubuntu-latest", session: "tests" }
26-
- { python: "3.7", os: "ubuntu-latest", session: "tests" }
2725
- { python: "3.11", os: "windows-latest", session: "tests" }
2826
- { python: "3.11", os: "macos-latest", session: "tests" }
2927
- { python: "3.11", 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: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,11 @@ $ pipx inject nox nox-poetry
5050

5151
## Requirements
5252

53-
- Python 3.7+
53+
- Python 3.8+
5454
- Poetry >= 1.0.0
5555

56+
Note: for Python 3.7, please use nox-poetry 1.0.2.
57+
5658
You need to have a Poetry installation on your system.
5759
`nox-poetry` uses Poetry via its command-line interface.
5860

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.11", "3.10", "3.9", "3.8", "3.7"]
17+
poetry_version = "1.2.2"
18+
python_versions = ["3.11", "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)