Skip to content

Commit 333a1b6

Browse files
committed
Fix problems with building
`uv build --all` now works
1 parent 8d91988 commit 333a1b6

2 files changed

Lines changed: 20 additions & 17 deletions

File tree

packages/griffecli/pyproject.toml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ license = "ISC"
1212
license-files = ["LICENSE"]
1313
requires-python = ">=3.10"
1414
keywords = ["api", "signature", "breaking-changes", "static-analysis", "dynamic-analysis"]
15-
dynamic = ["version", "dependencies", "optional-dependencies"]
15+
dynamic = ["version", "dependencies"]
1616
classifiers = [
1717
"Development Status :: 5 - Production/Stable",
1818
"Intended Audience :: Developers",
@@ -44,14 +44,17 @@ source = "code"
4444
path = "../../scripts/get_version.py"
4545
expression = "get_version()"
4646

47+
[tool.hatch.build.targets.sdist.force-include]
48+
"../../CHANGELOG.md" = "CHANGELOG.md"
49+
"../../LICENSE" = "LICENSE"
50+
"../../README.md" = "README.md"
51+
4752
[tool.hatch.metadata.hooks.uv-dynamic-versioning]
4853
# Dependencies are dynamically versioned; {{version}} is substituted at build time.
4954
dependencies = ["griffelib=={{version}}", "colorama>=0.4"]
5055

51-
[tool.hatch.metadata.hooks.uv-dynamic-versioning.optional-dependencies]
52-
# No optional dependencies for the CLI package
53-
54-
[tool.hatch.build.targets.sdist]
55-
5656
[tool.hatch.build.targets.wheel]
57-
sources = ["src/"]
57+
packages = ["src/griffecli"]
58+
59+
[tool.uv.sources]
60+
griffelib = { workspace = true }

packages/griffelib/pyproject.toml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ license = "ISC"
1212
license-files = ["LICENSE"]
1313
requires-python = ">=3.10"
1414
keywords = ["api", "signature", "breaking-changes", "static-analysis", "dynamic-analysis"]
15-
dynamic = ["version", "dependencies", "optional-dependencies"]
15+
dynamic = ["version"]
1616
classifiers = [
1717
"Development Status :: 5 - Production/Stable",
1818
"Intended Audience :: Developers",
@@ -36,20 +36,20 @@ classifiers = [
3636
"Typing :: Typed",
3737
]
3838

39+
[project.optional-dependencies]
40+
# The 'pypi' extra provides dependencies needed for the load_pypi functionality
41+
# to download and inspect packages from PyPI.
42+
pypi = ["pip>=24.0", "platformdirs>=4.2", "wheel>=0.42"]
43+
3944
[tool.hatch.version]
4045
source = "code"
4146
path = "../../scripts/get_version.py"
4247
expression = "get_version()"
4348

44-
[tool.hatch.metadata.hooks.uv-dynamic-versioning]
45-
# No base dependencies needed for griffelib
46-
47-
[tool.hatch.metadata.hooks.uv-dynamic-versioning.optional-dependencies]
48-
# The 'pypi' extra provides dependencies needed for the load_pypi functionality
49-
# to download and inspect packages from PyPI.
50-
pypi = ["pip>=24.0", "platformdirs>=4.2", "wheel>=0.42"]
51-
52-
[tool.hatch.build.targets.sdist]
49+
[tool.hatch.build.targets.sdist.force-include]
50+
"../../CHANGELOG.md" = "CHANGELOG.md"
51+
"../../LICENSE" = "LICENSE"
52+
"../../README.md" = "README.md"
5353

5454
[tool.hatch.build.targets.wheel]
5555
packages = ["src/griffe"]

0 commit comments

Comments
 (0)