|
| 1 | +[build-system] |
| 2 | +# pdm-backend is left here as a dependency of the version discovery script currently in use. |
| 3 | +# It may be removed in the future. See mkdocstrings/griffe#430 |
| 4 | +requires = ["hatchling", "pdm-backend", "uv-dynamic-versioning>=0.7.0"] |
| 5 | +build-backend = "hatchling.build" |
| 6 | + |
| 7 | +[tool.hatch.version] |
| 8 | +source = "code" |
| 9 | +path = "../../scripts/get_version.py" |
| 10 | +expression = "get_version()" |
| 11 | + |
| 12 | +[project] |
| 13 | +name = "griffe-cli" |
| 14 | +description = "CLI for the Griffe tool. Install `griffe` instead." |
| 15 | +authors = [{name = "Timothée Mazzucotelli", email = "dev@pawamoy.fr"}] |
| 16 | +license = "ISC" |
| 17 | +license-files = ["LICENSE"] |
| 18 | +requires-python = ">=3.10" |
| 19 | +dynamic = ["version", "dependencies", "optional-dependencies"] |
| 20 | +classifiers = [ |
| 21 | + "Development Status :: 5 - Production/Stable", |
| 22 | + "Intended Audience :: Developers", |
| 23 | + "Programming Language :: Python", |
| 24 | + "Programming Language :: Python :: 3", |
| 25 | + "Programming Language :: Python :: 3 :: Only", |
| 26 | + # YORE: EOL 3.10: Remove line. |
| 27 | + "Programming Language :: Python :: 3.10", |
| 28 | + # YORE: EOL 3.11: Remove line. |
| 29 | + "Programming Language :: Python :: 3.11", |
| 30 | + # YORE: EOL 3.12: Remove line. |
| 31 | + "Programming Language :: Python :: 3.12", |
| 32 | + # YORE: EOL 3.13: Remove line. |
| 33 | + "Programming Language :: Python :: 3.13", |
| 34 | + # YORE: EOL 3.14: Remove line. |
| 35 | + "Programming Language :: Python :: 3.14", |
| 36 | + "Topic :: Documentation", |
| 37 | + "Topic :: Software Development", |
| 38 | + "Topic :: Software Development :: Documentation", |
| 39 | + "Topic :: Utilities", |
| 40 | + "Typing :: Typed", |
| 41 | +] |
| 42 | + |
| 43 | +[tool.hatch.metadata.hooks.uv-dynamic-versioning] |
| 44 | +dependencies = [ |
| 45 | + "colorama>=0.4", |
| 46 | + "griffelib=={{ version }}", |
| 47 | +] |
| 48 | + |
| 49 | +[tool.hatch.metadata.hooks.uv-dynamic-versioning.optional-dependencies] |
| 50 | +pypi = [ |
| 51 | + "pip>=24.0", |
| 52 | + "platformdirs>=4.2", |
| 53 | + "wheel>=0.42", |
| 54 | +] |
| 55 | + |
| 56 | +[tool.hatch.build.targets.sdist] |
| 57 | +include = [ |
| 58 | + "src", |
| 59 | + "share", |
| 60 | + "*.md", |
| 61 | + "LICENSE", |
| 62 | +] |
| 63 | + |
| 64 | +[tool.hatch.build.targets.wheel] |
| 65 | +# Manual pages can be included in the wheel. |
| 66 | +# Depending on the installation tool, they will be accessible to users. |
| 67 | +# pipx supports it, uv does not yet, see https://github.com/astral-sh/uv/issues/4731. |
| 68 | +sources = ["src/"] |
| 69 | +artifacts = ["share/**/*"] |
0 commit comments