Skip to content

Commit 36c5062

Browse files
authored
Merge pull request #139 from Colin-b/develop
Release 0.30.0
2 parents fcb442a + 9e1661f commit 36c5062

File tree

6 files changed

+83
-68
lines changed

6 files changed

+83
-68
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ jobs:
1818
python-version: '3.12'
1919
- name: Create packages
2020
run: |
21-
python -m pip install wheel setuptools
22-
python setup.py sdist bdist_wheel
21+
python -m pip install build
22+
python -m build .
2323
- name: Publish packages
2424
run: |
2525
python -m pip install twine
26-
python -m twine upload dist/* --skip-existing --username __token__ --password ${{ secrets.pypi_password }}
26+
python -m twine upload dist/* --skip-existing --username __token__ --password ${{ secrets.pypi_password }}

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ jobs:
2727
pytest --cov=pytest_httpx --cov-fail-under=100 --cov-report=term-missing --runpytest=subprocess
2828
- name: Test packages creation
2929
run: |
30-
python -m pip install wheel setuptools
31-
python setup.py sdist bdist_wheel
30+
python -m pip install build
31+
python -m build .

CHANGELOG.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [0.30.0] - 2024-02-21
10+
### Changed
11+
- Requires [`httpx`](https://www.python-httpx.org)==0.27.\*
12+
13+
### Fixed
14+
- Switch from `setup.py` to `pyproject.toml` (many thanks to [`Felix Scherz`](https://github.com/felixscherz)).
15+
916
## [0.29.0] - 2024-01-29
1017
### Added
11-
- Add support for [`pytest`](https://docs.pytest.org)==8.\* ([`pytest`](https://docs.pytest.org)==7.\* is still supported for now). (many thanks to [`Yossi Rozantsev`](https://github.com/Apakottur))
18+
- Add support for [`pytest`](https://docs.pytest.org)==8.\* ([`pytest`](https://docs.pytest.org)==7.\* is still supported for now) (many thanks to [`Yossi Rozantsev`](https://github.com/Apakottur)).
1219

1320
## [0.28.0] - 2023-12-21
1421
### Changed
@@ -97,7 +104,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
97104

98105
## [0.20.0] - 2022-02-05
99106
### Added
100-
- Add support for [`pytest`](https://docs.pytest.org)==7.\* ([`pytest`](https://docs.pytest.org)==6.\* is still supported for now). (many thanks to [`Craig Blaszczyk`](https://github.com/jakul))
107+
- Add support for [`pytest`](https://docs.pytest.org)==7.\* ([`pytest`](https://docs.pytest.org)==6.\* is still supported for now) (many thanks to [`Craig Blaszczyk`](https://github.com/jakul)).
101108

102109
## [0.19.0] - 2022-01-26
103110
### Changed
@@ -305,7 +312,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
305312
### Added
306313
- First release, should be considered as unstable for now as design might change.
307314

308-
[Unreleased]: https://github.com/Colin-b/pytest_httpx/compare/v0.29.0...HEAD
315+
[Unreleased]: https://github.com/Colin-b/pytest_httpx/compare/v0.30.0...HEAD
316+
[0.30.0]: https://github.com/Colin-b/pytest_httpx/compare/v0.29.0...v0.30.0
309317
[0.29.0]: https://github.com/Colin-b/pytest_httpx/compare/v0.28.0...v0.29.0
310318
[0.28.0]: https://github.com/Colin-b/pytest_httpx/compare/v0.27.0...v0.28.0
311319
[0.27.0]: https://github.com/Colin-b/pytest_httpx/compare/v0.26.0...v0.27.0

pyproject.toml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
[build-system]
2+
requires = ["setuptools", "setuptools_scm"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "pytest-httpx"
7+
description = "Send responses to httpx."
8+
readme = "README.md"
9+
requires-python = ">=3.9"
10+
license = {file = "LICENSE"}
11+
authors = [
12+
{ name = "Colin Bounouar", email = "[email protected]" },
13+
]
14+
maintainers = [
15+
{ name = "Colin Bounouar", email = "[email protected]" },
16+
]
17+
keywords = [
18+
"httpx",
19+
"mock",
20+
"pytest",
21+
"testing",
22+
]
23+
classifiers = [
24+
"Development Status :: 5 - Production/Stable",
25+
"Framework :: Pytest",
26+
"Intended Audience :: Developers",
27+
"License :: OSI Approved :: MIT License",
28+
"Natural Language :: English",
29+
"Programming Language :: Python",
30+
"Programming Language :: Python :: 3",
31+
"Programming Language :: Python :: 3.9",
32+
"Programming Language :: Python :: 3.10",
33+
"Programming Language :: Python :: 3.11",
34+
"Programming Language :: Python :: 3.12",
35+
"Topic :: Internet :: WWW/HTTP",
36+
"Topic :: Software Development :: Build Tools",
37+
"Typing :: Typed",
38+
]
39+
dependencies = [
40+
"httpx==0.27.*",
41+
"pytest>=7,<9",
42+
]
43+
dynamic = ["version"]
44+
45+
[project.urls]
46+
documentation = "https://colin-b.github.io/pytest_httpx/"
47+
repository = "https://github.com/Colin-b/pytest_httpx"
48+
changelog = "https://github.com/Colin-b/pytest_httpx/blob/master/CHANGELOG.md"
49+
issues = "https://github.com/Colin-b/pytest_httpx/issues"
50+
51+
[project.optional-dependencies]
52+
testing = [
53+
# Used to check coverage
54+
"pytest-cov==4.*",
55+
# Used to run async tests
56+
"pytest-asyncio==0.23.*",
57+
]
58+
59+
[project.entry-points.pytest11]
60+
pytest_httpx = "pytest_httpx"
61+
62+
[tool.setuptools.packages.find]
63+
exclude = ["tests*"]
64+
65+
[tool.setuptools.dynamic]
66+
version = {attr = "pytest_httpx.version.__version__"}

pytest_httpx/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
# Major should be incremented in case there is a breaking change. (eg: 2.5.8 -> 3.0.0)
44
# Minor should be incremented in case there is an enhancement. (eg: 2.5.8 -> 2.6.0)
55
# Patch should be incremented in case there is a bug fix. (eg: 2.5.8 -> 2.5.9)
6-
__version__ = "0.29.0"
6+
__version__ = "0.30.0"

setup.py

Lines changed: 0 additions & 59 deletions
This file was deleted.

0 commit comments

Comments
 (0)