[clang] [llvm] [libclang/python] Enable packaging clang python bindings (PR #125806)
Ryan Mast via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 20 09:35:00 PST 2025
================
@@ -0,0 +1,43 @@
+[build-system]
+requires = ["hatchling>=1.27", "hatch-vcs>=0.4"]
+build-backend = "hatchling.build"
+
+[project]
+name = "clang"
+description = "clang python bindings"
+readme = {file = "README.txt", content-type = "text/plain"}
+
+license = "Apache-2.0 WITH LLVM-exception"
+authors = [
+ { name = "LLVM" }
+]
+keywords = ["llvm", "clang", "libclang"]
+classifiers = [
+ "Intended Audience :: Developers",
+ "Development Status :: 5 - Production/Stable",
+ "Topic :: Software Development :: Compilers",
+ "Operating System :: OS Independent",
+ "Programming Language :: Python :: 3",
+]
+requires-python = ">=3.10"
----------------
nightlark wrote:
I'll check this again. I saw the type hints using the type hint union operator (eg `str | None`), which was introduced in Python 3.10, but I noticed we also import `from __future__ import annotations` so that could avoid syntax errors in the type annotations when using older Python versions.
https://github.com/llvm/llvm-project/pull/125806
More information about the llvm-commits
mailing list