-
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Trove classifier for Python 3.13 (#134)
Co-authored-by: Alex Waygood <[email protected]>
- Loading branch information
1 parent
a7d8aee
commit 7543a08
Showing
4 changed files
with
80 additions
and
63 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,8 +8,8 @@ requires = [ | |
[project] | ||
name = "cherry-picker" | ||
readme = "README.md" | ||
maintainers = [{ name = "Python Core Developers", email = "[email protected]" }] | ||
authors = [{ name = "Mariatta Wijaya", email = "[email protected]" }] | ||
maintainers = [ { name = "Python Core Developers", email = "[email protected]" } ] | ||
authors = [ { name = "Mariatta Wijaya", email = "[email protected]" } ] | ||
requires-python = ">=3.8" | ||
classifiers = [ | ||
"Intended Audience :: Developers", | ||
|
@@ -20,27 +20,24 @@ classifiers = [ | |
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Programming Language :: Python :: 3.13", | ||
] | ||
dynamic = [ | ||
"description", | ||
"version", | ||
] | ||
dependencies = [ | ||
"cffi>=v1.17.0rc1", # remove once v1.17.0 is out; add 3.13 classifier above (see #127) | ||
"click>=6", | ||
"gidgethub", | ||
"requests", | ||
'tomli>=1.1; python_version < "3.11"', | ||
"tomli>=1.1; python_version<'3.11'", | ||
] | ||
[project.optional-dependencies] | ||
dev = [ | ||
optional-dependencies.dev = [ | ||
"pytest", | ||
"pytest-cov", | ||
] | ||
[project.urls] | ||
"Homepage" = "https://github.com/python/cherry-picker" | ||
[project.scripts] | ||
cherry_picker = "cherry_picker.cherry_picker:cherry_pick_cli" | ||
urls.Homepage = "https://github.com/python/cherry-picker" | ||
scripts.cherry_picker = "cherry_picker.cherry_picker:cherry_pick_cli" | ||
|
||
[tool.hatch.version] | ||
source = "vcs" | ||
|
@@ -50,5 +47,32 @@ tag-pattern = '^cherry-picker-(?P<version>[vV]?\d+(?:\.\d+){0,2}[^\+]*)(?:\+.*)? | |
[tool.hatch.version.raw-options] | ||
local_scheme = "no-local-version" | ||
|
||
[tool.isort] | ||
profile = "black" | ||
[tool.ruff] | ||
fix = true | ||
|
||
lint.select = [ | ||
"C4", # flake8-comprehensions | ||
"E", # pycodestyle errors | ||
"F", # pyflakes errors | ||
"I", # isort | ||
"ICN", # flake8-import-conventions | ||
"ISC", # flake8-implicit-str-concat | ||
"LOG", # flake8-logging | ||
"PGH", # pygrep-hooks | ||
"PYI", # flake8-pyi | ||
"RUF022", # unsorted-dunder-all | ||
"RUF100", # unused noqa (yesqa) | ||
"S", # flake8-bandit | ||
"UP", # pyupgrade | ||
"W", # pycodestyle warnings | ||
"YTT", # flake8-2020 | ||
] | ||
lint.ignore = [ | ||
"S101", # Use of assert detected | ||
"S404", # subprocess module is possibly insecure | ||
"S603", # subprocess call: check for execution of untrusted input | ||
] | ||
lint.isort.required-imports = [ "from __future__ import annotations" ] | ||
|
||
[tool.pyproject-fmt] | ||
max_supported_python = "3.13" |
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 |
---|---|---|
@@ -1,17 +1,18 @@ | ||
[tox] | ||
envlist = | ||
requires = | ||
tox>=4.2 | ||
env_list = | ||
py{313, 312, 311, 310, 39} | ||
isolated_build = true | ||
|
||
[testenv] | ||
passenv = | ||
FORCE_COLOR | ||
extras = | ||
dev | ||
pass_env = | ||
FORCE_COLOR | ||
commands = | ||
{envpython} -m pytest \ | ||
--cov cherry_picker \ | ||
--cov-report html \ | ||
--cov-report term \ | ||
--cov-report xml \ | ||
{posargs} | ||
--cov cherry_picker \ | ||
--cov-report html \ | ||
--cov-report term \ | ||
--cov-report xml \ | ||
{posargs} |