Skip to content

Commit 5582357

Browse files
Add static project.urls for GitHub dependency graph compatibility
Remove urls from dynamic list and add static [project.urls] section. This allows GitHub to read the Repository URL directly from pyproject.toml without needing to run build backends, which fixes the dependency graph. Fixes #1035 Co-authored-by: SashankBhamidi <66299104+SashankBhamidi@users.noreply.github.com>
1 parent d056b54 commit 5582357

1 file changed

Lines changed: 10 additions & 11 deletions

File tree

pyproject.toml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ maintainers = [
3636
]
3737
# These attributes are dynamically generated by hatch-vcs
3838
dynamic = [
39-
"urls",
4039
"version"
4140
]
4241
description = "iCalendar parser/generator"
@@ -83,6 +82,16 @@ dependencies = [
8382
"typing-extensions~=4.10; python_version < '3.13'",
8483
]
8584

85+
# Static URLs for GitHub dependency graph compatibility
86+
# See https://github.com/collective/icalendar/issues/1035
87+
[project.urls]
88+
Homepage = "https://icalendar.readthedocs.io/"
89+
Repository = "https://github.com/collective/icalendar/"
90+
Issues = "https://github.com/collective/icalendar/issues"
91+
Documentation = "https://icalendar.readthedocs.io/"
92+
Changelog = "https://icalendar.readthedocs.io/en/latest/changelog.html"
93+
Funding = "https://opencollective.com/python-icalendar"
94+
8695
[project.optional-dependencies]
8796
test = [
8897
"pytest",
@@ -110,16 +119,6 @@ exclude = [
110119
[tool.hatch.build.targets.wheel]
111120
packages = ["src/icalendar"]
112121

113-
[tool.hatch.metadata.hooks.vcs.urls]
114-
# This is a dynamic generation of [project.urls]
115-
Homepage = "https://icalendar.readthedocs.io/"
116-
Repository = "https://github.com/collective/icalendar/"
117-
source_archive = "https://github.com/collective/icalendar/archive/{commit_hash}.zip"
118-
Issues = "https://github.com/collective/icalendar/issues"
119-
Documentation = "https://icalendar.readthedocs.io/"
120-
Changelog = "https://icalendar.readthedocs.io/en/latest/changelog.html"
121-
Funding = "https://opencollective.com/python-icalendar"
122-
123122
[tool.hatch.version]
124123
# This configuration allows us to use the version from the tags and dynamically generate
125124
# version files. This speeds up the release process.

0 commit comments

Comments
 (0)