Package Details: python-tzdata 2023.3-3

Git Clone URL: https://aur.archlinux.org/python-tzdata.git (read-only, click to copy)
Package Base: python-tzdata
Description: Provider of IANA time zone data
Upstream URL: https://github.com/python/tzdata
Licenses: Apache
Submitter: polyzen
Maintainer: jmcb
Last Packager: polyzen
Votes: 4
Popularity: 0.163936
First Submitted: 2023-05-19 03:23 (UTC)
Last Updated: 2023-05-19 03:23 (UTC)

Latest Comments

joshm commented on 2023-11-07 23:19 (UTC)

I was able to resolve the error below by rm -rf ~/.cache/pacaur/python-tzdata but now I get:

================================================================================================================== ERRORS ==================================================================================================================
____________________________________________________________________________________________________ ERROR at setup of test_load_zones _____________________________________________________________________________________________________
file /home/josh/.cache/pacaur/python-tzdata/src/tzdata-2023.3/tests/test_contents.py, line 84
  def test_load_zones(subtests):
E       fixture 'subtests' not found
>       available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
>       use 'pytest --fixtures [testpath]' for help on them.

/home/josh/.cache/pacaur/python-tzdata/src/tzdata-2023.3/tests/test_contents.py:84
========================================================================================================= short test summary info ==========================================================================================================
ERROR tests/test_contents.py::test_load_zones
======================================================================================================= 29 passed, 1 error in 0.08s ========================================================================================================
==> ERROR: A failure occurred in check().

joshm commented on 2023-11-07 22:59 (UTC)

After manually installing pytest, I get this error:

==> Starting check()...
Traceback (most recent call last):
  File "/home/josh/.pyenv/versions/3.10.2/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/home/josh/.pyenv/versions/3.10.2/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/home/josh/.pyenv/versions/3.10.2/lib/python3.10/site-packages/installer/__main__.py", line 98, in <module>
    _main(sys.argv[1:], "python -m installer")
  File "/home/josh/.pyenv/versions/3.10.2/lib/python3.10/site-packages/installer/__main__.py", line 94, in _main
    installer.install(source, destination, {})
  File "/home/josh/.pyenv/versions/3.10.2/lib/python3.10/site-packages/installer/_core.py", line 109, in install
    record = destination.write_file(
  File "/home/josh/.pyenv/versions/3.10.2/lib/python3.10/site-packages/installer/destinations.py", line 207, in write_file
    return self.write_to_fs(scheme, path_, stream, is_executable)
  File "/home/josh/.pyenv/versions/3.10.2/lib/python3.10/site-packages/installer/destinations.py", line 167, in write_to_fs
    raise FileExistsError(message)
FileExistsError: File already exists: /home/josh/.cache/pacaur/python-tzdata/src/tzdata-2023.3/test-env/lib/python3.10/site-packages/tzdata/__init__.py
==> ERROR: A failure occurred in check().

joshm commented on 2023-11-07 22:58 (UTC)

I had to manually pip install pytest to get this to update. It seems this is common with Python packages ... why, though? Shouldn't pytest be a dependency of python-tzdata?