diff --git a/python-pycountry.spec b/python-pycountry.spec index c9cda99..64cca3a 100644 --- a/python-pycountry.spec +++ b/python-pycountry.spec @@ -12,6 +12,7 @@ Source0: %pypi_source Patch0001: 00-use_system_iso-codes.patch # https://github.com/flyingcircusio/pycountry/pull/16 (partially) Patch0002: https://github.com/flyingcircusio/pycountry/pull/16/commits/1979282ee3cc6b1955240dbea46843832e9afc3a.patch +Patch0003: support-iso-codes-450.patch BuildArch: noarch @@ -66,17 +67,20 @@ rm -rf src/%{srcname}/{databases,locales} %check PYTHONPATH=%{buildroot}%{python3_sitelib} PYTHONDONTWRITEBYTECODE=1 \ - %{__python3} -m pytest --pyargs pycountry + %{python3} -m pytest --pyargs pycountry %files -n python3-%{srcname} %doc README.rst HISTORY.txt %license LICENSE.txt %{python3_sitelib}/%{srcname} -%{python3_sitelib}/%{srcname}-%{version}-py?.?.egg-info +%{python3_sitelib}/%{srcname}-%{version}-py*.egg-info %changelog +* Wed May 27 2020 Elliott Sales de Andrade - 19.8.18-5 +- Support iso-codes 4.5 + * Tue May 26 2020 Miro HronĨok - 19.8.18-5 - Rebuilt for Python 3.9 diff --git a/support-iso-codes-450.patch b/support-iso-codes-450.patch new file mode 100644 index 0000000..261645d --- /dev/null +++ b/support-iso-codes-450.patch @@ -0,0 +1,13 @@ +diff --git a/src/pycountry/tests/test_general.py b/src/pycountry/tests/test_general.py +index 7c40601..483c2cf 100644 +--- a/src/pycountry/tests/test_general.py ++++ b/src/pycountry/tests/test_general.py +@@ -60,7 +60,7 @@ def test_germany_has_all_attributes(): + + + def test_subdivisions_directly_accessible(): +- assert len(pycountry.subdivisions) == 4884 ++ assert len(pycountry.subdivisions) == 4883 + assert isinstance(list(pycountry.subdivisions)[0], pycountry.db.Data) + + de_st = pycountry.subdivisions.get(code='DE-ST')