backports-httpmethod 0.2.0__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.0 → backports_httpmethod-0.2.1}/.github/workflows/release.yaml +1 -1
- {backports_httpmethod-0.2.0 → backports_httpmethod-0.2.1}/.github/workflows/test.yaml +19 -4
- {backports_httpmethod-0.2.0 → backports_httpmethod-0.2.1}/.pre-commit-config.yaml +3 -3
- {backports_httpmethod-0.2.0 → backports_httpmethod-0.2.1}/PKG-INFO +3 -2
- {backports_httpmethod-0.2.0 → backports_httpmethod-0.2.1}/pyproject.toml +26 -17
- backports_httpmethod-0.2.0/.github/workflows/constraints.txt +0 -1
- {backports_httpmethod-0.2.0 → backports_httpmethod-0.2.1}/.github/dependabot.yaml +0 -0
- {backports_httpmethod-0.2.0 → backports_httpmethod-0.2.1}/.gitignore +0 -0
- {backports_httpmethod-0.2.0 → backports_httpmethod-0.2.1}/LICENSE +0 -0
- {backports_httpmethod-0.2.0 → backports_httpmethod-0.2.1}/README.md +0 -0
- {backports_httpmethod-0.2.0 → backports_httpmethod-0.2.1}/src/backports/httpmethod/__init__.py +0 -0
- {backports_httpmethod-0.2.0 → backports_httpmethod-0.2.1}/src/backports/httpmethod/py.typed +0 -0
- {backports_httpmethod-0.2.0 → backports_httpmethod-0.2.1}/tests/__init__.py +0 -0
- {backports_httpmethod-0.2.0 → 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,6 +1,6 @@
|
|
|
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
|
|
@@ -28,6 +28,7 @@ Classifier: Programming Language :: Python :: 3.10
|
|
|
28
28
|
Classifier: Programming Language :: Python :: 3.11
|
|
29
29
|
Classifier: Programming Language :: Python :: 3.12
|
|
30
30
|
Classifier: Programming Language :: Python :: 3.13
|
|
31
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
31
32
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
32
33
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
33
34
|
Requires-Python: >=3.7
|
|
@@ -34,6 +34,7 @@ classifiers = [
|
|
|
34
34
|
"Programming Language :: Python :: 3.11",
|
|
35
35
|
"Programming Language :: Python :: 3.12",
|
|
36
36
|
"Programming Language :: Python :: 3.13",
|
|
37
|
+
"Programming Language :: Python :: 3.14",
|
|
37
38
|
"Programming Language :: Python :: Implementation :: CPython",
|
|
38
39
|
"Programming Language :: Python :: Implementation :: PyPy",
|
|
39
40
|
]
|
|
@@ -41,29 +42,39 @@ dynamic = [
|
|
|
41
42
|
"version",
|
|
42
43
|
]
|
|
43
44
|
dependencies = [
|
|
44
|
-
|
|
45
|
+
"backports-strenum; python_version<'3.11'",
|
|
45
46
|
]
|
|
46
47
|
urls.Documentation = "https://github.com/edgarrmondragon/backports.httpmethod#readme"
|
|
47
48
|
urls.Issues = "https://github.com/edgarrmondragon/backports.httpmethod/issues"
|
|
48
49
|
urls.Source = "https://github.com/edgarrmondragon/backports.httpmethod"
|
|
49
50
|
|
|
50
51
|
[tool.hatch.build.targets.wheel]
|
|
51
|
-
packages = [
|
|
52
|
+
packages = [
|
|
53
|
+
"src/backports",
|
|
54
|
+
]
|
|
52
55
|
|
|
53
56
|
[tool.hatch.version]
|
|
54
57
|
source = "vcs"
|
|
55
58
|
|
|
56
59
|
[tool.hatch.envs.default]
|
|
57
60
|
[tool.hatch.envs.default.overrides]
|
|
58
|
-
env.GITHUB_ACTIONS.dev-mode = { value = false, if = [
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
]
|
|
61
|
+
env.GITHUB_ACTIONS.dev-mode = { value = false, if = [
|
|
62
|
+
"true",
|
|
63
|
+
] }
|
|
62
64
|
[tool.hatch.envs.default.scripts]
|
|
63
65
|
test = "python -Im unittest {args}"
|
|
64
66
|
|
|
65
67
|
[[tool.hatch.envs.all.matrix]]
|
|
66
|
-
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
|
+
]
|
|
67
78
|
|
|
68
79
|
[tool.hatch.envs.lint]
|
|
69
80
|
dependencies = [
|
|
@@ -89,10 +100,8 @@ all = [
|
|
|
89
100
|
[tool.ruff]
|
|
90
101
|
line-length = 120
|
|
91
102
|
preview = true
|
|
92
|
-
target-version = "py37"
|
|
93
103
|
|
|
94
|
-
[
|
|
95
|
-
select = [
|
|
104
|
+
lint.select = [
|
|
96
105
|
"A",
|
|
97
106
|
"ARG",
|
|
98
107
|
"B",
|
|
@@ -120,22 +129,22 @@ select = [
|
|
|
120
129
|
"W",
|
|
121
130
|
"YTT",
|
|
122
131
|
]
|
|
123
|
-
ignore = [
|
|
132
|
+
lint.ignore = [
|
|
124
133
|
# Conflict with the Ruff formatter
|
|
125
|
-
"COM812",
|
|
134
|
+
"COM812",
|
|
135
|
+
"ISC001",
|
|
126
136
|
]
|
|
127
|
-
|
|
137
|
+
|
|
138
|
+
lint.unfixable = [
|
|
128
139
|
# Don't touch unused imports
|
|
129
140
|
"F401",
|
|
130
141
|
]
|
|
131
|
-
|
|
132
|
-
[tool.ruff.lint.flake8-tidy-imports]
|
|
133
|
-
ban-relative-imports = "all"
|
|
142
|
+
lint.flake8-tidy-imports.ban-relative-imports = "all"
|
|
134
143
|
|
|
135
144
|
[tool.pyproject-fmt]
|
|
136
145
|
indent = 2
|
|
137
146
|
keep_full_version = true
|
|
138
|
-
max_supported_python = "3.
|
|
147
|
+
max_supported_python = "3.14"
|
|
139
148
|
|
|
140
149
|
[tool.coverage.report]
|
|
141
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.0 → backports_httpmethod-0.2.1}/src/backports/httpmethod/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|