aboutsummaryrefslogtreecommitdiffstats
path: root/main/py3-pygments/build-with-setuptools.patch
blob: db620c52a86e6d4475e2b3c78af11e2347198874 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
py3-hatchling is currently in community/ while py3-pygments is in main/.
An aport in main/ cannot depend upon one in community/, so build with
py3-setuptools while waiting for py3-hatchling to be moved to main/.


--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,7 @@
 [build-system]
-requires = ["hatchling"]
-build-backend = "hatchling.build"
+# setuptools added pyproject.toml support in v61.0.0
+requires = ["setuptools >= 61"]
+build-backend = "setuptools.build_meta"
 
 [project]
 name = "Pygments"
@@ -54,9 +55,8 @@
 [project.scripts]
 pygmentize = "pygments.cmdline:main"
 
-# Temporary workaround for https://github.com/pypa/hatch/issues/1054
-[tool.hatch.build.targets.wheel]
-packages = ["pygments"]
+[tool.setuptools.dynamic]
+version = {attr = "pygments.__version__" }
 
-[tool.hatch.version]
-path = "pygments/__init__.py"
+[tool.setuptools.packages.find]
+include = ["pygments", "pygments.*"]