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.
@@ -0,0 +1,2 @@
1
+ # Global owner
2
+ * @edgarrmondragon
@@ -0,0 +1 @@
1
+ hatch==1.12.0
@@ -34,4 +34,4 @@ jobs:
34
34
  file_glob: true
35
35
 
36
36
  - name: Publish
37
- uses: pypa/gh-action-pypi-publish@v1.8.11
37
+ uses: pypa/gh-action-pypi-publish@v1.9.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: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
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
- architecture: x64
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.5.0
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.2.0
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.7.0"
29
+ rev: "2.1.4"
30
30
  hooks:
31
31
  - id: pyproject-fmt
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.3
2
2
  Name: backports-httpmethod
3
- Version: 0.2.0
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
- 'backports.strenum; python_version < "3.11"',
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 = ["src/backports"]
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 = ["true"] }
59
- matrix.python.env-vars = [
60
- { key = "COVERAGE_CORE", value = "sysmon", if = ["3.12", "3.13"] }
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 = ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
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
- [tool.ruff.lint]
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", "ISC001",
134
+ "COM812",
135
+ "ISC001",
126
136
  ]
127
- unfixable = [
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.13"
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