================ @@ -0,0 +1,34 @@ +[build-system] +requires = ["setuptools>=42", "setuptools_scm"] +build-backend = "setuptools.build_meta" + +[project] +name = "clang" +description = "libclang python bindings" +readme = {file = "README.txt", content-type = "text/plain"} + +license = { text = "Apache-2.0 with LLVM exception" } +authors = [ + { name = "LLVM" } +] +keywords = ["llvm", "clang", "libclang"] +classifiers = [ + "Intended Audience :: Developers", + "License :: OSI Approved :: Apache Software License", + "Development Status :: 5 - Production/Stable", + "Topic :: Software Development :: Compilers", + "Operating System :: OS Independent", + "Programming Language :: Python :: 3", +] +dynamic = ["version"] + +[project.urls] +Homepage = "http://clang.llvm.org/" +Download = "http://llvm.org/releases/download.html" + +[tool.setuptools_scm] +root = "../../.." +version_file = "clang/_version.py" +fallback_version = "0.0.0.dev0" +# Regex version capture group gets x.y.z with optional -rcN, -aN, -bN suffixes; -init is just consumed +tag_regex = "^llvmorg-(?P<version>[vV]?\\d+(?:\\.\\d+)*(?:-(?:rc|a|b)\\d+)?)(?:.*)$" ---------------- LecrisUT wrote:
Not sure if the `[vV]?` part of the regex should be within the version section. Imo it would be better to get rid of the `fallback_version` so that if there os an issue with it it can be caught. Or at least cherry-pick this on your fork with some tags and report back if it works as intended. https://github.com/llvm/llvm-project/pull/125806 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits