Skip to content

Commit

Permalink
Merge pull request #136 from felixscherz/build/update-build-tooling
Browse files Browse the repository at this point in the history
build: migrate package metadata to `pyproject.toml`
  • Loading branch information
Colin-b committed Feb 21, 2024
2 parents b91bae4 + 3be7d41 commit 313013a
Show file tree
Hide file tree
Showing 4 changed files with 73 additions and 64 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ jobs:
python-version: '3.12'
- name: Create packages
run: |
python -m pip install wheel setuptools
python setup.py sdist bdist_wheel
python -m pip install build
python -m build
- name: Publish packages
run: |
python -m pip install twine
python -m twine upload dist/* --skip-existing --username __token__ --password ${{ secrets.pypi_password }}
python -m twine upload dist/* --skip-existing --username __token__ --password ${{ secrets.pypi_password }}
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ jobs:
pytest --cov=pytest_httpx --cov-fail-under=100 --cov-report=term-missing --runpytest=subprocess
- name: Test packages creation
run: |
python -m pip install wheel setuptools
python setup.py sdist bdist_wheel
python -m pip install build
python -m build
68 changes: 68 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "pytest-httpx"
dynamic = ["version"]
description = "Send responses to httpx."
readme = "README.md"
license = "MIT"
requires-python = ">=3.9"
authors = [
{ name = "Colin Bounouar", email = "[email protected]" },
]
maintainers = [
{ name = "Colin Bounouar", email = "[email protected]" },
]
keywords = [
"httpx",
"mock",
"pytest",
"testing",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Framework :: Pytest",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Software Development :: Build Tools",
"Typing :: Typed",
]
dependencies = [
"httpx==0.26.*",
"pytest>=7,<9",
]

[project.optional-dependencies]
testing = [
"pytest-asyncio==0.23.*",
"pytest-cov==4.*",
]

[project.entry-points.pytest11]
pytest_httpx = "pytest_httpx"

[project.urls]
Changelog = "https://github.com/Colin-b/pytest_httpx/blob/master/CHANGELOG.md"
Download = "https://pypi.org/project/pytest-httpx/"
GitHub = "https://github.com/Colin-b/pytest_httpx"
Homepage = "https://colin-b.github.io/pytest_httpx/"
Issues = "https://github.com/Colin-b/pytest_httpx/issues"

[tool.hatch.version]
path = "pytest_httpx/version.py"

[tool.hatch.build.targets.sdist]
include = [
"/pytest_httpx",
]

59 changes: 0 additions & 59 deletions setup.py

This file was deleted.

0 comments on commit 313013a

Please sign in to comment.