|
1 | 1 | [build-system] |
2 | | -requires = ["setuptools>=45", "wheel", "setuptools_scm>=6.2,<8"] |
3 | | -build-backend = "setuptools.build_meta" |
| 2 | +requires = ["hatchling", "hatch-vcs"] |
| 3 | +build-backend = "hatchling.build" |
| 4 | + |
| 5 | +[project] |
| 6 | +name = "robotpy-build" |
| 7 | +dynamic = ["version"] |
| 8 | +description = "Build tool for RobotPy projects" |
| 9 | +readme = "README.md" |
| 10 | +requires-python = ">=3.8" |
| 11 | +license = "BSD-3-Clause" |
| 12 | +authors = [ |
| 13 | + { name = "Dustin Spicuzza", email = "[email protected]"}, |
| 14 | +] |
| 15 | +classifiers = [ |
| 16 | + "Development Status :: 5 - Production/Stable", |
| 17 | + "Intended Audience :: Developers", |
| 18 | + "License :: OSI Approved :: BSD License", |
| 19 | + "Programming Language :: Python :: 3 :: Only", |
| 20 | + "Programming Language :: Python :: 3.8", |
| 21 | + "Programming Language :: Python :: 3.9", |
| 22 | + "Programming Language :: Python :: 3.10", |
| 23 | + "Programming Language :: Python :: 3.11", |
| 24 | + "Topic :: Software Development", |
| 25 | +] |
| 26 | +dependencies = [ |
| 27 | + "setuptools >= 45", |
| 28 | + "setuptools_scm >= 6.2, < 8", |
| 29 | + "sphinxify >= 0.7.3", |
| 30 | + "pydantic >= 1.7.0, < 2", |
| 31 | + "cxxheaderparser[pcpp] ~= 1.4.1", |
| 32 | + "tomli", |
| 33 | + "tomli_w", |
| 34 | + "toposort", |
| 35 | + "typing-extensions", |
| 36 | + "pyyaml >= 5.1", |
| 37 | + "patch == 1.*", |
| 38 | + "pybind11-stubgen ~= 2.5.1", |
| 39 | + "delocate; platform_system == 'Darwin'", |
| 40 | + "distro; platform_system == 'Linux'", |
| 41 | +] |
| 42 | + |
| 43 | +[project.entry-points.robotpybuild] |
| 44 | +robotpy-build = "robotpy_build.pkgcfg" |
| 45 | + |
| 46 | +[project.scripts] |
| 47 | +robotpy-build = "robotpy_build.tool:main" |
| 48 | + |
| 49 | +[project.urls] |
| 50 | +"Source code" = "https://github.com/robotpy/robotpy-build" |
| 51 | + |
| 52 | +[tool.hatch.version] |
| 53 | +source = "vcs" |
| 54 | + |
| 55 | +[tool.hatch.build.hooks.vcs] |
| 56 | +version-file = "robotpy_build/version.py" |
| 57 | + |
| 58 | +[tool.hatch.build.targets.sdist] |
| 59 | +packages = ["robotpy_build"] |
| 60 | +exclude = [ |
| 61 | + "/robotpy_build/pybind11" |
| 62 | +] |
| 63 | +[tool.hatch.build.targets.sdist.force-include] |
| 64 | +"./robotpy_build/pybind11/include" = "./robotpy_build/pybind11/include" |
| 65 | + |
| 66 | +[tool.hatch.build.targets.wheel] |
| 67 | +packages = ["robotpy_build"] |
| 68 | +include = [ |
| 69 | + "/robotpy_build/pybind11/include", |
| 70 | + "/robotpy_build/include", |
| 71 | +] |
4 | 72 |
|
5 | | -[tool.setuptools_scm] |
6 | | -write_to = "robotpy_build/version.py" |
7 | 73 |
|
8 | 74 | [tool.black] |
9 | | -target-version = ['py38'] |
| 75 | +target-version = ["py38"] |
10 | 76 | extend-exclude = ''' |
11 | 77 | ^/robotpy_build/pybind11 |
12 | 78 | ''' |
0 commit comments