pganssle / zoneinfo

Reference implementation for the proposed standard library module zoneinfo
Other
52 stars 20 forks source link

Fix some GitHub Actions things #128

Closed hugovk closed 1 year ago

hugovk commented 1 year ago

This PR updates PR https://github.com/pganssle/zoneinfo/pull/127, and gets the CI running again for Python 3.6.

The "Build and release" workflow now passes, and the "Python package" workflow has failing tests, but it's progress! At least they're running! πŸš€

Things done here:


A quick look at some failures:

File "/home/runner/work/zoneinfo/zoneinfo/.tox/py/lib/python3.7/site-packages/_pytest/assertion/rewrite.py", line 168, in exec_module
    exec(co, module.__dict__)
  File "/home/runner/work/zoneinfo/zoneinfo/.tox/py/lib/python3.7/site-packages/hypothesis/__init__.py", line 53, in <module>
    run()
  File "/home/runner/work/zoneinfo/zoneinfo/.tox/py/lib/python3.7/site-packages/hypothesis/entry_points.py", line 61, in run
    for entry in get_entry_points():  # pragma: no cover
  File "/home/runner/work/zoneinfo/zoneinfo/.tox/py/lib/python3.7/site-packages/hypothesis/entry_points.py", line 32, in get_entry_points
    yield from importlib_metadata.entry_points().get("hypothesis", [])
AttributeError: 'EntryPoints' object has no attribute 'get'
py: exit 1 (0.67 seconds) /home/runner/work/zoneinfo/zoneinfo> pytest /home/runner/work/zoneinfo/zoneinfo --cov=backports.zoneinfo --cov=tests pid=1[81](https://github.com/hugovk/zoneinfo/actions/runs/4336606519/jobs/7572017561#step:5:82)2

Looks like https://github.com/HypothesisWorks/hypothesis/issues/3473, already fixed in a newer version, so would need the pin bumped in tox.ini and another solution found for the reason it was originally pinned: https://github.com/pganssle/zoneinfo/commit/4845961fba397deacaf47a38689a6298af9c63bb