Skip to content

Commit

Permalink
build: migrate package metadata to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
felixscherz committed Feb 20, 2024
1 parent b91bae4 commit 940bfeb
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 62 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 }}
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 = "colin.bounouar.dev@gmail.com" },
]
maintainers = [
{ name = "Colin Bounouar", email = "colin.bounouar.dev@gmail.com" },
]
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 940bfeb

Please sign in to comment.