-
-
Notifications
You must be signed in to change notification settings - Fork 384
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Drop Py3.8 support to add potential Py3.13 support (#863)
* Drop Py3.8 support Officially EOL by Python project Run `poetry update` Drop "backports.zoneinfo", importlib-resources Bump time-machine, pytest-codspeed to last version which support Py3.13 https://github.com/adamchainz/time-machine/blob/main/CHANGELOG.rst https://github.com/CodSpeedHQ/pytest-codspeed/releases * Switch Ruff to ≥ Py3.9, apply changes Directly import `zoneinfo` and `importlib.resources` in the files where used * CI: Drop 3.7, 3.8 builds/tests * CI: Add 3.13 builds/tests * bumps to newest pyO3, converts Py into Bound --------- Co-authored-by: Marcin Rudolf <[email protected]>
- Loading branch information
Showing
23 changed files
with
819 additions
and
933 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,15 +3,14 @@ name = "pendulum" | |
version = "3.0.0" | ||
description = "Python datetimes made easy" | ||
readme = "README.rst" | ||
requires-python = ">=3.8" | ||
requires-python = ">=3.9" | ||
license = { text = "MIT License" } | ||
authors = [{ name = "Sébastien Eustace", email = "[email protected]" }] | ||
keywords = ['datetime', 'date', 'time'] | ||
|
||
classifiers = [ | ||
"License :: OSI Approved :: MIT License", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
|
@@ -21,9 +20,7 @@ classifiers = [ | |
dependencies = [ | ||
"python-dateutil>=2.6", | ||
"tzdata>=2020.1", | ||
'backports.zoneinfo>=0.2.1; python_version < "3.9"', | ||
'time-machine>=2.6.0; implementation_name != "pypy"', | ||
'importlib-resources>=5.9.0; python_version < "3.9"' | ||
] | ||
|
||
[project.urls] | ||
|
@@ -46,17 +43,15 @@ keywords = ['datetime', 'date', 'time'] | |
|
||
|
||
[tool.poetry.dependencies] | ||
python = ">=3.8" | ||
python = ">=3.9" | ||
python-dateutil = ">=2.6" | ||
"backports.zoneinfo" = { version = ">=0.2.1", python = "<3.9" } | ||
time-machine = { version = ">=2.6.0", markers = "implementation_name != 'pypy'", optional = true } | ||
time-machine = { version = ">=2.16.0", markers = "implementation_name != 'pypy'", optional = true } | ||
tzdata = ">=2020.1" | ||
importlib-resources = { version = ">=5.9.0", python = "<3.9" } | ||
|
||
[tool.poetry.group.test.dependencies] | ||
pytest = "^7.1.2" | ||
pytz = ">=2022.1" | ||
time-machine = ">=2.6.0" | ||
time-machine = ">=2.16.0" | ||
pytest-benchmark = "^4.0.0" | ||
|
||
[tool.poetry.group.doc.dependencies] | ||
|
@@ -79,7 +74,7 @@ cleo = { version = "^2.0.1", python = ">=3.8,<4.0" } | |
tox = "^4.0.0" | ||
|
||
[tool.poetry.group.benchmark.dependencies] | ||
pytest-codspeed = "^1.2.2" | ||
pytest-codspeed = "^3.0.0" | ||
|
||
[tool.poetry.group.build.dependencies] | ||
maturin = ">=1.0,<2.0" | ||
|
@@ -96,7 +91,7 @@ fix = true | |
unfixable = [ | ||
"ERA", # do not autoremove commented out code | ||
] | ||
target-version = "py38" | ||
target-version = "py39" | ||
line-length = 88 | ||
extend-select = [ | ||
"B", # flake8-bugbear | ||
|
Oops, something went wrong.