Skip to content

Commit 72c4f8d

Browse files
authored
Merge pull request #156 from robotpy/hatchling
Migrate to hatchling
2 parents 2a5cb58 + 6c4f87a commit 72c4f8d

File tree

4 files changed

+17
-21
lines changed

4 files changed

+17
-21
lines changed

MANIFEST.in

Lines changed: 0 additions & 1 deletion
This file was deleted.

crossenv/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def __init__(
129129
host_sysconfigdata_file=None,
130130
manylinux_tags=(),
131131
platform_tags=(),
132-
host_machine=None
132+
host_machine=None,
133133
):
134134
self.host_sysroot = host_sysroot
135135
self.host_cc = None

pyproject.toml

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,16 @@
11
[build-system]
2-
requires = ["setuptools==74.1.2"]
3-
build-backend = "setuptools.build_meta"
2+
requires = ["hatchling"]
3+
build-backend = "hatchling.build"
44

55
[project]
66
dynamic = ["version"]
77
name = "crossenv"
88
description = "A cross-compiling tool for Python extension modules"
99
readme = { file = "README.rst", content-type = "text/x-rst"}
10-
requires-python = ">=3.5"
10+
requires-python = ">=3.6"
1111
license = { file = "LICENSE.txt" }
12-
authors = [
13-
{ name = "Benjamin Fogle", email = "[email protected]" }
14-
]
15-
maintainers = [
16-
{ name = "Benjamin Fogle", email = "[email protected]" }
17-
]
1812
classifiers = [
19-
"Development Status :: 3 - Alpha",
13+
"Development Status :: 4 - Beta",
2014
"Intended Audience :: Developers",
2115
"Topic :: Software Development :: Build Tools",
2216
"License :: OSI Approved :: MIT License",
@@ -26,17 +20,20 @@ dependencies = [
2620
"wheel"
2721
]
2822

29-
[project.urls]
30-
Homepage = "https://github.com/benfogle/crossenv"
23+
[[project.authors]]
24+
name = "Benjamin Fogle"
25+
3126

32-
[tool.setuptools]
33-
packages = ["crossenv"]
27+
[[project.maintainers]]
28+
name = "Dustin Spicuzza"
29+
30+
31+
[project.urls]
32+
Homepage = "https://github.com/robotpy/crossenv"
3433

35-
[tool.setuptools.dynamic]
36-
version = { attr = "crossenv.__version__" }
34+
[tool.hatch.version]
35+
path = "crossenv/__init__.py"
3736

38-
[tool.setuptools.package-data]
39-
crossenv = ["scripts/*"]
4037

4138
[tool.black]
4239
include = '''

tests/testutils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def make_crossenv(
132132
host_python: Resource,
133133
build_python: Resource,
134134
*args,
135-
**kwargs
135+
**kwargs,
136136
):
137137
cmdline = [build_python.binary, "-m", "crossenv", host_python.binary, crossenv_dir]
138138
cmdline.extend(args)

0 commit comments

Comments
 (0)