Skip to content

Commit 2767da5

Browse files
committed
Pin integration test server to 0.2.0
1 parent f8a0208 commit 2767da5

File tree

16 files changed

+497
-214
lines changed

16 files changed

+497
-214
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
default: major
3+
---
4+
5+
# Raise minimum httpx version to 0.23

.github/workflows/checks.yml

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,9 @@ jobs:
153153
runs-on: ubuntu-latest
154154
strategy:
155155
matrix:
156-
httpx_version:
157-
- "0.20.0"
158-
- ""
156+
lockfile:
157+
- "pdm.lock"
158+
- "pdm.minimal.lock"
159159
services:
160160
openapi-test-server:
161161
image: ghcr.io/openapi-generators/openapi-test-server:0.2.0
@@ -170,34 +170,17 @@ jobs:
170170
- name: Get Python Version
171171
id: get_python_version
172172
run: echo "python_version=$(python --version)" >> $GITHUB_OUTPUT
173-
- name: Cache dependencies
174-
uses: actions/cache@v4
175-
with:
176-
path: .venv
177-
key: ${{ runner.os }}-${{ steps.get_python_version.outputs.python_version }}-dependencies-${{ hashFiles('**/pdm.lock') }}
178-
restore-keys: |
179-
${{ runner.os }}-${{ steps.get_python_version.outputs.python_version }}-dependencies
180-
- name: Install dependencies
181-
run: |
182-
pip install pdm
183-
python -m venv .venv
184-
pdm install
185173
- name: Cache Generated Client Dependencies
186174
uses: actions/cache@v4
187175
with:
188176
path: integration-tests/.venv
189-
key: ${{ runner.os }}-${{ steps.get_python_version.outputs.python_version }}-integration-dependencies-${{ hashFiles('**/pdm.lock') }}
177+
key: ${{ runner.os }}-${{ steps.get_python_version.outputs.python_version }}-integration-dependencies-${{ hashFiles('integration-tests/pdm*.lock') }}
190178
restore-keys: |
191179
${{ runner.os }}-${{ steps.get_python_version.outputs.python_version }}-integration-dependencies
192-
- name: Set httpx version
193-
if: matrix.httpx_version != ''
194-
run: |
195-
cd integration-tests
196-
pdm add httpx==${{ matrix.httpx_version }}
197180
- name: Install Integration Dependencies
198181
run: |
199182
cd integration-tests
200-
pdm install
183+
pdm install -L ${{ matrix.lockfile }}
201184
- name: Run Tests
202185
run: |
203186
cd integration-tests

end_to_end_tests/docstrings-on-attributes-golden-record/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ include = ["CHANGELOG.md", "my_test_api_client/py.typed"]
1212

1313
[tool.poetry.dependencies]
1414
python = "^3.9"
15-
httpx = ">=0.20.0,<0.29.0"
15+
httpx = ">=0.23.0,<0.29.0"
1616
attrs = ">=22.2.0"
1717
python-dateutil = "^2.8.0"
1818

end_to_end_tests/golden-record/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ include = ["CHANGELOG.md", "my_test_api_client/py.typed"]
1212

1313
[tool.poetry.dependencies]
1414
python = "^3.9"
15-
httpx = ">=0.20.0,<0.29.0"
15+
httpx = ">=0.23.0,<0.29.0"
1616
attrs = ">=22.2.0"
1717
python-dateutil = "^2.8.0"
1818

end_to_end_tests/literal-enums-golden-record/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ include = ["CHANGELOG.md", "my_enum_api_client/py.typed"]
1212

1313
[tool.poetry.dependencies]
1414
python = "^3.9"
15-
httpx = ">=0.20.0,<0.29.0"
15+
httpx = ">=0.23.0,<0.29.0"
1616
attrs = ">=22.2.0"
1717
python-dateutil = "^2.8.0"
1818

end_to_end_tests/metadata_snapshots/pdm.pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ authors = []
66
readme = "README.md"
77
requires-python = ">=3.9,<4.0"
88
dependencies = [
9-
"httpx>=0.20.0,<0.29.0",
9+
"httpx>=0.23.0,<0.29.0",
1010
"attrs>=22.2.0",
1111
"python-dateutil>=2.8.0",
1212
]

end_to_end_tests/metadata_snapshots/poetry.pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ include = ["CHANGELOG.md", "test_3_1_features_client/py.typed"]
1212

1313
[tool.poetry.dependencies]
1414
python = "^3.9"
15-
httpx = ">=0.20.0,<0.29.0"
15+
httpx = ">=0.23.0,<0.29.0"
1616
attrs = ">=22.2.0"
1717
python-dateutil = "^2.8.0"
1818

end_to_end_tests/metadata_snapshots/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
long_description_content_type="text/markdown",
1414
packages=find_packages(),
1515
python_requires=">=3.9, <4",
16-
install_requires=["httpx >= 0.20.0, < 0.29.0", "attrs >= 22.2.0", "python-dateutil >= 2.8.0, < 3"],
16+
install_requires=["httpx >= 0.23.0, < 0.29.0", "attrs >= 22.2.0", "python-dateutil >= 2.8.0, < 3"],
1717
package_data={"test_3_1_features_client": ["py.typed"]},
1818
)

end_to_end_tests/test-3-1-golden-record/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ include = ["CHANGELOG.md", "test_3_1_features_client/py.typed"]
1212

1313
[tool.poetry.dependencies]
1414
python = "^3.9"
15-
httpx = ">=0.20.0,<0.29.0"
15+
httpx = ">=0.23.0,<0.29.0"
1616
attrs = ">=22.2.0"
1717
python-dateutil = "^2.8.0"
1818

0 commit comments

Comments
 (0)