Closed jaraco closed 2 months ago
The key that's causing the issue is latex_documents
.
Creating an empty setup.cfg
doesn't help.
Creating a setup.cfg
with this content fixes the issue:
[metadata]
name = tempora
author = Jason R. Coombs
url = https://github.com/jaraco/tempora
Removing one of those keys but leaving others produces different obscure errors, suggesting the issue might actually be in jaraco.packaging.
Indeed, removing jaraco.packaging and the things that rely on it also bypasses the issue, so the issue must be there.
It seems that app.config.package_url
and app.config.author
(and copyright
) are getting set to None
.
Aha. So switching from setup.cfg to pyproject.toml has changed the metadata.
tempora 822773b @ pip-run build -- -c "from build import util; print(util.project_wheel_metadata('.'))" | head
Metadata-Version: 2.1
Name: tempora
Version: 5.5.2.dev11+g822773b
Summary: Objects and routines pertaining to date and time (tempora)
Home-page: https://github.com/jaraco/tempora
Author: Jason R. Coombs
Author-email: jaraco@jaraco.com
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
tempora 822773b @ git checkout main
Previous HEAD position was 822773b Merge https://github.com/jaraco/skeleton
Switched to branch 'main'
Your branch is up to date with 'origin/main'.
tempora main @ pip-run build -- -c "from build import util; print(util.project_wheel_metadata('.'))" | head
Metadata-Version: 2.1
Name: tempora
Version: 5.5.2.dev12+ge2e8ef9
Summary: Objects and routines pertaining to date and time (tempora)
Author-email: "Jason R. Coombs" <jaraco@jaraco.com>
Project-URL: Homepage, https://github.com/jaraco/tempora
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Man, core metadata is a mess. There's no obvious place to find the author's name nor the project URL. If I want to get a URL suitable for setting "package_url", I can't, because every URL is keyed on free-text that any package author could supply (or not).
Half of the problem is described at https://github.com/pypa/packaging-problems/issues/606. It hints that Setuptools might auto-convert some URLs, but that's apparently not the case.
The work in https://github.com/python/cpython/issues/108580 would help here to have some re-usable ways to parse author/maintainer fields.
In https://github.com/jaraco/tempora/actions/runs/8714844379/job/23905742259, the docs build is failing and it implicates rst.linker. Passing -v to the sphinx build provides more context: