Skip to content

Commit cb85d22

Browse files
committed
chore: use hatchling instead of setuptools setup.py
Signed-off-by: Henry Schreiner <[email protected]>
1 parent 9cf99e7 commit cb85d22

File tree

6 files changed

+110
-111
lines changed

6 files changed

+110
-111
lines changed

.circleci/prepare.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -o xtrace
44

55
$PYTHON --version
66
$PYTHON -m pip --version
7-
$PYTHON -m virtualenv -p "$PYTHON" venv
7+
$PYTHON -m virtualenv --download -p "$PYTHON" venv
88
venv/bin/python -m pip install -e ".[dev]"
99
venv/bin/python -m pip freeze
1010
venv/bin/python --version

.pre-commit-config.yaml

-6
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,6 @@ repos:
2020
args: ["--fix", "--show-fixes"]
2121
- id: ruff-format
2222

23-
- repo: https://github.com/asottile/setup-cfg-fmt
24-
rev: v2.5.0
25-
hooks:
26-
- id: setup-cfg-fmt
27-
args: [--include-version-classifiers, --min-py-version=3.8, --max-py-version=3.12]
28-
2923
- repo: https://github.com/pre-commit/mirrors-mypy
3024
rev: v1.9.0
3125
hooks:

MANIFEST.in

-6
This file was deleted.

pyproject.toml

+109-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,115 @@
11
[build-system]
2-
requires = [
3-
"setuptools>=42",
2+
requires = ["hatchling"]
3+
build-backend = "hatchling.build"
4+
5+
[project]
6+
name = "cibuildwheel"
7+
dynamic = ["version"]
8+
description = "Build Python wheels on CI with minimal configuration."
9+
readme = "README.md"
10+
license = "BSD-2-Clause"
11+
requires-python = ">=3.8"
12+
authors = [
13+
{ name = "Joe Rickerby", email = "[email protected]" },
14+
]
15+
keywords = [
16+
"appveyor",
17+
"ci",
18+
"linux",
19+
"macos",
20+
"packaging",
21+
"pypi",
22+
"travis",
23+
"wheel",
24+
"windows",
25+
]
26+
classifiers = [
27+
"Development Status :: 5 - Production/Stable",
28+
"Intended Audience :: Developers",
29+
"License :: OSI Approved :: BSD License",
30+
"Natural Language :: English",
31+
"Programming Language :: Python :: 3",
32+
"Programming Language :: Python :: 3 :: Only",
33+
"Programming Language :: Python :: 3.8",
34+
"Programming Language :: Python :: 3.9",
35+
"Programming Language :: Python :: 3.10",
36+
"Programming Language :: Python :: 3.11",
37+
"Programming Language :: Python :: 3.12",
38+
"Programming Language :: Python :: Implementation :: CPython",
39+
"Topic :: Software Development :: Build Tools",
40+
]
41+
dependencies = [
42+
"bashlex!=0.13",
43+
"bracex",
44+
"certifi",
45+
"filelock",
46+
"packaging>=20.9",
47+
"platformdirs",
48+
"tomli;python_version < '3.11'",
49+
"typing-extensions>=4.1.0;python_version < '3.11'",
50+
]
51+
52+
[project.optional-dependencies]
53+
bin = [
54+
"click",
55+
"packaging>=21.0",
56+
"pip-tools",
57+
"pygithub",
58+
"pyyaml",
59+
"requests",
60+
"rich>=9.6",
61+
]
62+
dev = [
63+
"build",
64+
"click",
65+
"jinja2",
66+
"packaging>=21.0",
67+
"pip-tools",
68+
"pygithub",
69+
"pytest-timeout",
70+
"pytest-xdist",
71+
"pytest>=6",
72+
"pyyaml",
73+
"requests",
74+
"rich>=9.6",
75+
"tomli_w",
76+
"validate-pyproject",
477
]
5-
build-backend = "setuptools.build_meta"
78+
docs = [
79+
"jinja2>=3.1.2",
80+
"mkdocs-include-markdown-plugin==2.8.0",
81+
"mkdocs-macros-plugin",
82+
"mkdocs==1.3.1",
83+
"pymdown-extensions",
84+
]
85+
test = [
86+
"build",
87+
"jinja2",
88+
"pytest-timeout",
89+
"pytest-xdist",
90+
"pytest>=6",
91+
"tomli_w",
92+
"validate-pyproject",
93+
]
94+
95+
[project.scripts]
96+
cibuildwheel = "cibuildwheel.__main__:main"
97+
98+
[project.entry-points."validate_pyproject.tool_schema"]
99+
cibuildwheel = "cibuildwheel.schema:get_schema"
6100

101+
[project.urls]
102+
Changelog = "https://github.com/pypa/cibuildwheel#changelog"
103+
Documentation = "https://cibuildwheel.pypa.io"
104+
Homepage = "https://github.com/pypa/cibuildwheel"
105+
106+
[tool.hatch.version]
107+
path = "cibuildwheel/__init__.py"
108+
109+
[tool.hatch.build.targets.sdist]
110+
include = [
111+
"/cibuildwheel",
112+
]
7113

8114
[tool.pytest.ini_options]
9115
minversion = "6.0"

setup.cfg

-57
This file was deleted.

setup.py

-38
This file was deleted.

0 commit comments

Comments
 (0)