I am in the process of migrating the PEP 615 reference implementation over to CPython. One issue is that because zoneinfo
has an optional PyPI dependency on the tzdata
package, in order to get full test coverage, we need to pull in tzdata
for at least some of the tests. The tzdata
-specific tests are skipped automatically if the package is missing, so local development shouldn’t require tzdata
(unless you’re working on something that requires it and want to run those tests), but we should definitely test against tzdata
in CI.
Where is the best place for me to declare this dependency so that it will get pulled in wherever possible? I am not seeing any centralized mechanism for this – it seems like it’s mostly done ad-hoc in the various CI providers. If there’s no place for it already, should I add a requirements-test.txt
or something somewhere?