You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to package your module as an rpm package. So I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.
python3 -sBm build -w
install .whl file in </install/prefix>
run pytest with PYTHONPATH pointing to sitearch and sitelib inside </install/prefix>
Here is pytest output:
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-pytz-2021.3-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-pytz-2021.3-2.fc35.x86_64/usr/lib/python3.8/site-packages+ /usr/bin/pytest -ra=========================================================================== test session starts ============================================================================platform linux -- Python 3.8.12, pytest-6.2.5, py-1.11.0, pluggy-1.0.0rootdir: /home/tkloczko/rpmbuild/BUILD/pytz-release_2021.3/srccollected 41 items / 1 error / 40 selected================================================================================== ERRORS ==================================================================================________________________________________________________________ ERROR collecting pytz/tests/test_tzinfo.py ________________________________________________________________pytz/tests/test_tzinfo.py:40: in <module> GMT = pytz.timezone('GMT')../../../BUILDROOT/python-pytz-2021.3-2.fc35.x86_64/usr/lib/python3.8/site-packages/pytz/__init__.py:179: in timezone zone = _case_insensitive_zone_lookup(_unmunge_zone(zone))../../../BUILDROOT/python-pytz-2021.3-2.fc35.x86_64/usr/lib/python3.8/site-packages/pytz/__init__.py:205: in _case_insensitive_zone_lookup _all_timezones_lower_to_standard = dict((tz.lower(), tz) for tz in all_timezones) # noqaE NameError: name 'all_timezones' is not defined========================================================================= short test summary info ==========================================================================ERROR pytz/tests/test_tzinfo.py - NameError: name 'all_timezones' is not defined!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!============================================================================= 1 error in 1.64s =============================================================================
The text was updated successfully, but these errors were encountered:
The code in this repository is used to generate the pytz distribution, which includes adding the all_timezones data structure. You either need to run the tests using the the release tarballs, or run the code generation steps using the repo and test the generated code in the build/ subdirectory.
I'm trying to package your module as an rpm package. So I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.
python3 -sBm build -w
Here is pytest output:
The text was updated successfully, but these errors were encountered: