backports-httpmethod 0.2.0b1__tar.gz → 0.2.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- backports_httpmethod-0.2.1/.github/CODEOWNERS +2 -0
- backports_httpmethod-0.2.1/.github/workflows/constraints.txt +1 -0
- {backports_httpmethod-0.2.0b1 → backports_httpmethod-0.2.1}/.github/workflows/release.yaml +1 -1
- {backports_httpmethod-0.2.0b1 → backports_httpmethod-0.2.1}/.github/workflows/test.yaml +19 -4
- {backports_httpmethod-0.2.0b1 → backports_httpmethod-0.2.1}/.pre-commit-config.yaml +3 -3
- {backports_httpmethod-0.2.0b1 → backports_httpmethod-0.2.1}/PKG-INFO +4 -2
- {backports_httpmethod-0.2.0b1 → backports_httpmethod-0.2.1}/pyproject.toml +29 -41
- backports_httpmethod-0.2.0b1/.github/workflows/constraints.txt +0 -1
- {backports_httpmethod-0.2.0b1 → backports_httpmethod-0.2.1}/.github/dependabot.yaml +0 -0
- {backports_httpmethod-0.2.0b1 → backports_httpmethod-0.2.1}/.gitignore +0 -0
- {backports_httpmethod-0.2.0b1 → backports_httpmethod-0.2.1}/LICENSE +0 -0
- {backports_httpmethod-0.2.0b1 → backports_httpmethod-0.2.1}/README.md +0 -0
- {backports_httpmethod-0.2.0b1 → backports_httpmethod-0.2.1}/src/backports/httpmethod/__init__.py +0 -0
- {backports_httpmethod-0.2.0b1 → backports_httpmethod-0.2.1}/src/backports/httpmethod/py.typed +0 -0
- {backports_httpmethod-0.2.0b1 → backports_httpmethod-0.2.1}/tests/__init__.py +0 -0
- {backports_httpmethod-0.2.0b1 → backports_httpmethod-0.2.1}/tests/test_httpmethod.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
hatch==1.12.0
|
|
@@ -41,7 +41,7 @@ jobs:
|
|
|
41
41
|
python-version: "3.12"
|
|
42
42
|
- name: Install dependencies
|
|
43
43
|
env:
|
|
44
|
-
PIP_CONSTRAINT: .github/workflows/constraints.txt
|
|
44
|
+
PIP_CONSTRAINT: ${{ github.workspace }}/.github/workflows/constraints.txt
|
|
45
45
|
run: |
|
|
46
46
|
pipx install --python '${{ steps.setup-python.outputs.python-path }}' hatch
|
|
47
47
|
- name: Run lint
|
|
@@ -53,25 +53,40 @@ jobs:
|
|
|
53
53
|
test:
|
|
54
54
|
name: Pytest (Python ${{ matrix.python-version }}, ${{ matrix.os }})
|
|
55
55
|
runs-on: ${{ matrix.os }}
|
|
56
|
-
continue-on-error: ${{ matrix.python-version == '3.13' }}
|
|
56
|
+
continue-on-error: ${{ matrix.python-version == '3.13' || matrix.python-version == '3.14' }}
|
|
57
57
|
strategy:
|
|
58
58
|
fail-fast: false
|
|
59
59
|
matrix:
|
|
60
60
|
os: ["ubuntu-latest"]
|
|
61
|
-
python-version:
|
|
61
|
+
python-version:
|
|
62
|
+
- "3.7"
|
|
63
|
+
- "3.8"
|
|
64
|
+
- "3.9"
|
|
65
|
+
- "3.10"
|
|
66
|
+
- "3.11"
|
|
67
|
+
- "3.12"
|
|
68
|
+
- "3.13"
|
|
69
|
+
- "pypy3.10"
|
|
62
70
|
include:
|
|
63
71
|
- python-version: "3.12"
|
|
64
72
|
os: "windows-latest"
|
|
65
73
|
- python-version: "3.12"
|
|
66
74
|
os: "macos-latest"
|
|
75
|
+
- python-version: "3.14-dev"
|
|
76
|
+
os: "ubuntu-latest"
|
|
77
|
+
nightly: true
|
|
67
78
|
steps:
|
|
68
79
|
- uses: actions/checkout@v4
|
|
69
80
|
- uses: actions/setup-python@v5
|
|
70
81
|
id: setup-python
|
|
82
|
+
if: ${{ !matrix.nightly }}
|
|
71
83
|
with:
|
|
72
84
|
cache: pip
|
|
73
85
|
python-version: ${{ matrix.python-version }}
|
|
74
86
|
allow-prereleases: true
|
|
75
|
-
|
|
87
|
+
- uses: deadsnakes/action@v3.1.0
|
|
88
|
+
if: ${{ matrix.nightly }}
|
|
89
|
+
with:
|
|
90
|
+
python-version: ${{ matrix.python-version}}
|
|
76
91
|
- run: pip install .
|
|
77
92
|
- run: python -Im unittest -v
|
|
@@ -8,7 +8,7 @@ ci:
|
|
|
8
8
|
|
|
9
9
|
repos:
|
|
10
10
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
11
|
-
rev: v4.
|
|
11
|
+
rev: v4.6.0
|
|
12
12
|
hooks:
|
|
13
13
|
- id: check-merge-conflict
|
|
14
14
|
- id: check-toml
|
|
@@ -18,7 +18,7 @@ repos:
|
|
|
18
18
|
- id: trailing-whitespace
|
|
19
19
|
|
|
20
20
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
21
|
-
rev: v0.
|
|
21
|
+
rev: v0.5.1
|
|
22
22
|
hooks:
|
|
23
23
|
- id: ruff
|
|
24
24
|
args: [--fix, --exit-non-zero-on-fix, --show-fixes]
|
|
@@ -26,6 +26,6 @@ repos:
|
|
|
26
26
|
entry: ruff format
|
|
27
27
|
|
|
28
28
|
- repo: https://github.com/tox-dev/pyproject-fmt
|
|
29
|
-
rev: "1.
|
|
29
|
+
rev: "2.1.4"
|
|
30
30
|
hooks:
|
|
31
31
|
- id: pyproject-fmt
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
2
|
Name: backports-httpmethod
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.1
|
|
4
4
|
Summary: A backport of Python 3.11+ `http.HTTPMethod` enum
|
|
5
5
|
Project-URL: Documentation, https://github.com/edgarrmondragon/backports.httpmethod#readme
|
|
6
6
|
Project-URL: Issues, https://github.com/edgarrmondragon/backports.httpmethod/issues
|
|
7
7
|
Project-URL: Source, https://github.com/edgarrmondragon/backports.httpmethod
|
|
8
8
|
Author-email: Edgar Ramírez-Mondragón <edgarrmondragon@hey.com>
|
|
9
|
+
Maintainer-email: Edgar Ramírez-Mondragón <edgarrmondragon@hey.com>
|
|
9
10
|
License: MIT License
|
|
10
11
|
|
|
11
12
|
Copyright (c) 2023-present Edgar Ramírez-Mondragón <edgarrmondragon@hey.com>
|
|
@@ -27,6 +28,7 @@ Classifier: Programming Language :: Python :: 3.10
|
|
|
27
28
|
Classifier: Programming Language :: Python :: 3.11
|
|
28
29
|
Classifier: Programming Language :: Python :: 3.12
|
|
29
30
|
Classifier: Programming Language :: Python :: 3.13
|
|
31
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
30
32
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
31
33
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
32
34
|
Requires-Python: >=3.7
|
|
@@ -16,6 +16,9 @@ keywords = [
|
|
|
16
16
|
"httpmethod",
|
|
17
17
|
]
|
|
18
18
|
license.file = "LICENSE"
|
|
19
|
+
maintainers = [
|
|
20
|
+
{ name = "Edgar Ramírez-Mondragón", email = "edgarrmondragon@hey.com" },
|
|
21
|
+
]
|
|
19
22
|
authors = [
|
|
20
23
|
{ name = "Edgar Ramírez-Mondragón", email = "edgarrmondragon@hey.com" },
|
|
21
24
|
]
|
|
@@ -31,6 +34,7 @@ classifiers = [
|
|
|
31
34
|
"Programming Language :: Python :: 3.11",
|
|
32
35
|
"Programming Language :: Python :: 3.12",
|
|
33
36
|
"Programming Language :: Python :: 3.13",
|
|
37
|
+
"Programming Language :: Python :: 3.14",
|
|
34
38
|
"Programming Language :: Python :: Implementation :: CPython",
|
|
35
39
|
"Programming Language :: Python :: Implementation :: PyPy",
|
|
36
40
|
]
|
|
@@ -38,29 +42,39 @@ dynamic = [
|
|
|
38
42
|
"version",
|
|
39
43
|
]
|
|
40
44
|
dependencies = [
|
|
41
|
-
|
|
45
|
+
"backports-strenum; python_version<'3.11'",
|
|
42
46
|
]
|
|
43
47
|
urls.Documentation = "https://github.com/edgarrmondragon/backports.httpmethod#readme"
|
|
44
48
|
urls.Issues = "https://github.com/edgarrmondragon/backports.httpmethod/issues"
|
|
45
49
|
urls.Source = "https://github.com/edgarrmondragon/backports.httpmethod"
|
|
46
50
|
|
|
47
51
|
[tool.hatch.build.targets.wheel]
|
|
48
|
-
packages = [
|
|
52
|
+
packages = [
|
|
53
|
+
"src/backports",
|
|
54
|
+
]
|
|
49
55
|
|
|
50
56
|
[tool.hatch.version]
|
|
51
57
|
source = "vcs"
|
|
52
58
|
|
|
53
59
|
[tool.hatch.envs.default]
|
|
54
60
|
[tool.hatch.envs.default.overrides]
|
|
55
|
-
env.GITHUB_ACTIONS.dev-mode = { value = false, if = [
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
]
|
|
61
|
+
env.GITHUB_ACTIONS.dev-mode = { value = false, if = [
|
|
62
|
+
"true",
|
|
63
|
+
] }
|
|
59
64
|
[tool.hatch.envs.default.scripts]
|
|
60
65
|
test = "python -Im unittest {args}"
|
|
61
66
|
|
|
62
67
|
[[tool.hatch.envs.all.matrix]]
|
|
63
|
-
python = [
|
|
68
|
+
python = [
|
|
69
|
+
"3.7",
|
|
70
|
+
"3.8",
|
|
71
|
+
"3.9",
|
|
72
|
+
"3.10",
|
|
73
|
+
"3.11",
|
|
74
|
+
"3.12",
|
|
75
|
+
"3.13",
|
|
76
|
+
"pypy",
|
|
77
|
+
]
|
|
64
78
|
|
|
65
79
|
[tool.hatch.envs.lint]
|
|
66
80
|
dependencies = [
|
|
@@ -86,10 +100,8 @@ all = [
|
|
|
86
100
|
[tool.ruff]
|
|
87
101
|
line-length = 120
|
|
88
102
|
preview = true
|
|
89
|
-
target-version = "py37"
|
|
90
103
|
|
|
91
|
-
[
|
|
92
|
-
select = [
|
|
104
|
+
lint.select = [
|
|
93
105
|
"A",
|
|
94
106
|
"ARG",
|
|
95
107
|
"B",
|
|
@@ -117,46 +129,22 @@ select = [
|
|
|
117
129
|
"W",
|
|
118
130
|
"YTT",
|
|
119
131
|
]
|
|
120
|
-
ignore = [
|
|
121
|
-
# Allow non-abstract empty methods in abstract base classes
|
|
122
|
-
"B027",
|
|
123
|
-
# Allow boolean positional values in function calls, like `dict.get(... True)`
|
|
124
|
-
"FBT003",
|
|
125
|
-
# Ignore checks for possible passwords
|
|
126
|
-
"S105", "S106", "S107",
|
|
127
|
-
# Ignore complexity
|
|
128
|
-
"C901", "PLR0911", "PLR0912", "PLR0913", "PLR0915",
|
|
132
|
+
lint.ignore = [
|
|
129
133
|
# Conflict with the Ruff formatter
|
|
130
|
-
"COM812",
|
|
134
|
+
"COM812",
|
|
135
|
+
"ISC001",
|
|
131
136
|
]
|
|
132
|
-
|
|
137
|
+
|
|
138
|
+
lint.unfixable = [
|
|
133
139
|
# Don't touch unused imports
|
|
134
140
|
"F401",
|
|
135
141
|
]
|
|
136
|
-
|
|
137
|
-
[tool.ruff.lint.isort]
|
|
138
|
-
known-first-party = ["backports_httpmethod"]
|
|
139
|
-
|
|
140
|
-
[tool.ruff.lint.flake8-tidy-imports]
|
|
141
|
-
ban-relative-imports = "all"
|
|
142
|
-
|
|
143
|
-
[tool.ruff.lint.per-file-ignores]
|
|
144
|
-
# Tests can use magic values, and relative imports
|
|
145
|
-
"tests/**/*" = ["PLR2004", "TID252"]
|
|
142
|
+
lint.flake8-tidy-imports.ban-relative-imports = "all"
|
|
146
143
|
|
|
147
144
|
[tool.pyproject-fmt]
|
|
148
145
|
indent = 2
|
|
149
146
|
keep_full_version = true
|
|
150
|
-
max_supported_python = "3.
|
|
151
|
-
|
|
152
|
-
[tool.coverage.run]
|
|
153
|
-
source_pkgs = ["backports", "tests"]
|
|
154
|
-
branch = true
|
|
155
|
-
parallel = true
|
|
156
|
-
|
|
157
|
-
[tool.coverage.paths]
|
|
158
|
-
backports_httpmethod = ["src/backports/httpmethod", "*/backports.httpmethod/src/backports/httpmethod"]
|
|
159
|
-
tests = ["tests", "*/backports.httpmethod/tests"]
|
|
147
|
+
max_supported_python = "3.14"
|
|
160
148
|
|
|
161
149
|
[tool.coverage.report]
|
|
162
150
|
exclude_also = [
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
hatch==1.9.3
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{backports_httpmethod-0.2.0b1 → backports_httpmethod-0.2.1}/src/backports/httpmethod/__init__.py
RENAMED
|
File without changes
|
{backports_httpmethod-0.2.0b1 → backports_httpmethod-0.2.1}/src/backports/httpmethod/py.typed
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|