Skip to content

Commit dd9fce6

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

File tree

5 files changed

+103
-106
lines changed

5 files changed

+103
-106
lines changed

.pre-commit-config.yaml

-6
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,6 @@ repos:
2424
- id: ruff
2525
args: ["--fix", "--show-fixes"]
2626

27-
- repo: https://github.com/asottile/setup-cfg-fmt
28-
rev: v2.4.0
29-
hooks:
30-
- id: setup-cfg-fmt
31-
args: [--include-version-classifiers, --min-py-version=3.8, --max-py-version=3.11]
32-
3327
- repo: https://github.com/pre-commit/mirrors-mypy
3428
rev: v1.4.1
3529
hooks:

MANIFEST.in

-6
This file was deleted.

pyproject.toml

+103-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,109 @@
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 :: Implementation :: CPython",
38+
"Topic :: Software Development :: Build Tools",
39+
]
40+
dependencies = [
41+
"bashlex!=0.13",
42+
"bracex",
43+
"certifi",
44+
"filelock",
45+
"packaging>=20.9",
46+
"platformdirs",
47+
"tomli;python_version < '3.11'",
48+
"typing-extensions>=4.1.0;python_version < '3.11'",
449
]
5-
build-backend = "setuptools.build_meta"
650

51+
[project.optional-dependencies]
52+
bin = [
53+
"click",
54+
"packaging>=21.0",
55+
"pip-tools",
56+
"pygithub",
57+
"pyyaml",
58+
"requests",
59+
"rich>=9.6",
60+
]
61+
dev = [
62+
"build",
63+
"click",
64+
"jinja2",
65+
"packaging>=21.0",
66+
"pip-tools",
67+
"pygithub",
68+
"pytest-timeout",
69+
"pytest-xdist",
70+
"pytest>=6",
71+
"pyyaml",
72+
"requests",
73+
"rich>=9.6",
74+
"tomli_w",
75+
]
76+
docs = [
77+
"jinja2>=3.1.2",
78+
"mkdocs-include-markdown-plugin==2.8.0",
79+
"mkdocs-macros-plugin",
80+
"mkdocs==1.3.1",
81+
"pymdown-extensions",
82+
]
83+
test = [
84+
"build",
85+
"jinja2",
86+
"pytest-timeout",
87+
"pytest-xdist",
88+
"pytest>=6",
89+
"tomli_w",
90+
]
91+
92+
[project.scripts]
93+
cibuildwheel = "cibuildwheel.__main__:main"
94+
95+
[project.urls]
96+
Changelog = "https://github.com/pypa/cibuildwheel#changelog"
97+
Documentation = "https://cibuildwheel.readthedocs.io/"
98+
Homepage = "https://github.com/pypa/cibuildwheel"
99+
100+
[tool.hatch.version]
101+
path = "cibuildwheel/__init__.py"
102+
103+
[tool.hatch.build.targets.sdist]
104+
include = [
105+
"/cibuildwheel",
106+
]
7107

8108
[tool.black]
9109
line-length = 100

setup.cfg

-54
This file was deleted.

setup.py

-37
This file was deleted.

0 commit comments

Comments
 (0)