Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop support for Python 3.7 and test with 3.12 #1213

Merged
merged 5 commits into from
Oct 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ jobs:
include:
- { python: "3.11", os: "ubuntu-latest", session: "pre-commit" }
- { python: "3.11", os: "ubuntu-latest", session: "safety" }
- { python: "3.12", os: "ubuntu-latest", session: "mypy" }
- { python: "3.11", os: "ubuntu-latest", session: "mypy" }
- { python: "3.10", os: "ubuntu-latest", session: "mypy" }
- { python: "3.9", os: "ubuntu-latest", session: "mypy" }
- { python: "3.8", os: "ubuntu-latest", session: "mypy" }
- { python: "3.7", os: "ubuntu-latest", session: "mypy" }
- { python: "3.12", os: "ubuntu-latest", session: "tests" }
- { python: "3.11", os: "ubuntu-latest", session: "tests" }
- { python: "3.10", os: "ubuntu-latest", session: "tests" }
- { python: "3.9", os: "ubuntu-latest", session: "tests" }
- { python: "3.8", os: "ubuntu-latest", session: "tests" }
- { python: "3.7", os: "ubuntu-latest", session: "tests" }
- { python: "3.11", os: "windows-latest", session: "tests" }
- { python: "3.11", os: "macos-latest", session: "tests" }
- { python: "3.11", os: "ubuntu-latest", session: "xdoctest" }
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Request features on the [Issue Tracker].

## How to set up your development environment

You need Python 3.7+ and [Poetry].
You need Python 3.8+ and [Poetry].

Install the package with development requirements:

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ $ pipx inject nox nox-poetry

## Requirements

- Python 3.7+
- Python 3.8+
- Poetry >= 1.0.0

You need to have a Poetry installation on your system.
Expand Down
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@


package = "nox_poetry"
python_versions = ["3.11", "3.10", "3.9", "3.8", "3.7"]
python_versions = ["3.11", "3.10", "3.9", "3.8", "3.12"]
nox.needs_version = ">= 2021.6.6"
nox.options.sessions = (
"pre-commit",
Expand Down
1,648 changes: 758 additions & 890 deletions poetry.lock

Large diffs are not rendered by default.

25 changes: 13 additions & 12 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ classifiers = [
Changelog = "https://github.com/cjolowicz/nox-poetry/releases"

[tool.poetry.dependencies]
python = "^3.7"
python = ">=3.8"
nox = ">=2020.8.22"
tomlkit = ">=0.7"
packaging = ">=20.9"
Expand All @@ -31,27 +31,28 @@ xdoctest = {extras = ["colors"], version = ">=0.15.10"}
sphinx = ">=4.3.2"
sphinx-autobuild = ">=2021.3.14"
pre-commit = ">=2.17.0"
flake8 = {version = ">=4.0.1", python = ">= 3.8"}
flake8 = ">=4.0.1"
black = ">=22.3"
flake8-bandit = {version = ">=2.1.2", python = ">= 3.8"}
flake8-bugbear = {version = ">=22.1.11", python = ">= 3.8"}
flake8-docstrings = {version = ">=1.6.0", python = ">= 3.8"}
flake8-rst-docstrings = {version = ">=0.2.5", python = ">= 3.8"}
pep8-naming = {version = ">=0.12.1", python = ">= 3.8"}
darglint = ">=1.8.1"
flake8-bandit = ">=2.1.2"
flake8-bugbear = ">=22.1.11"
flake8-docstrings = ">=1.6.0"
flake8-rst-docstrings = ">=0.2.5"
pep8-naming = ">=0.12.1"
# TODO: The 'python < 4' constraint is a workaround to allow poetry to
# generate a lock file. Hopefully there's an alternative to darglint
# before Python 4 is released.
darglint = {version = ">=1.8.1", python = "< 4"}
pre-commit-hooks = ">=4.1.0"
furo = ">=2022.1.2"
Pygments = ">=2.11.2"
poetry = ">=1.1.12"
# TODO: Remove the 'python' constraint once poetry drops its own constraint
poetry = {version=">=1.1.12", python="<4"}
pytest-datadir = ">=1.3.1"
typing-extensions = ">=4.0.1"
pyupgrade = ">=2.31.0"
isort = ">=5.10.1"
myst-parser = ">=0.16.1"

[tool.poetry.group.dev.dependencies]
importlib-metadata = {version = "<6.8", python = "<3.8"}

[tool.coverage.paths]
source = ["src", "*/site-packages"]

Expand Down
2 changes: 1 addition & 1 deletion tests/functional/data/dependency-group/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description = ""
authors = ["Your Name <you@example.com>"]

[tool.poetry.dependencies]
python = "^3.7"
python = "^3.8"

[tool.poetry.group.lint.dependencies]
pyflakes = "^2.1.1"
Expand Down
Loading