From 1dd89e0ffc694ec79a5e00254898ff74e371ad0aa3795fe5535cb16868b66e2c Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sat, 30 Dec 2023 17:36:28 +0000 Subject: [PATCH] - update to 23.12.11: * Added fallback to name when common_name or official_name country attributes are missing * Added support for adding and removing country records, as well as casting to dict * Improve performance speed by checking for non-ascii chars before removing accents * Added search_fuzzy method to subdivisions * Added type hinting, created py.typed file, and added mypy checks to CI * Dropped support for end-of-life Python 3.6 and 3.7. * Added support for Python 3.11 and Python 3.12. * Added dependency on importlib-resources for Python 3.8. * Dropped implicit dependency on setuptools for pkg_resources. * Update to iso-codes 4.15.0. (Thanks to alanorth!) * Removes iso3166.mo files and opts for newer iso3166-1.mo and iso3166-3.mo files for Country and Historic Country Translations respectively. encoding when opening description files in setup.py OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycountry?expand=0&rev=20 --- pycountry-22.3.5.tar.gz | 3 --- pycountry-23.12.11.tar.gz | 3 +++ python-pycountry.changes | 24 +++++++++++++++++++++++- python-pycountry.spec | 20 ++++++++++---------- 4 files changed, 36 insertions(+), 14 deletions(-) delete mode 100644 pycountry-22.3.5.tar.gz create mode 100644 pycountry-23.12.11.tar.gz diff --git a/pycountry-22.3.5.tar.gz b/pycountry-22.3.5.tar.gz deleted file mode 100644 index ebad7cd..0000000 --- a/pycountry-22.3.5.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b2163a246c585894d808f18783e19137cb70a0c18fb36748dc01fc6f109c1646 -size 10141551 diff --git a/pycountry-23.12.11.tar.gz b/pycountry-23.12.11.tar.gz new file mode 100644 index 0000000..32b8241 --- /dev/null +++ b/pycountry-23.12.11.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:00569d82eaefbc6a490a311bfa84a9c571cff9ddbf8b0a4f4e7b4f868b4ad925 +size 5927399 diff --git a/python-pycountry.changes b/python-pycountry.changes index 566738f..6243072 100644 --- a/python-pycountry.changes +++ b/python-pycountry.changes @@ -1,3 +1,25 @@ +------------------------------------------------------------------- +Sat Dec 30 17:34:22 UTC 2023 - Dirk Müller + +- update to 23.12.11: + * Added fallback to name when common_name or official_name + country attributes are missing + * Added support for adding and removing country records, as well + as casting to dict + * Improve performance speed by checking for non-ascii chars + before removing accents + * Added search_fuzzy method to subdivisions + * Added type hinting, created py.typed file, and added mypy + checks to CI + * Dropped support for end-of-life Python 3.6 and 3.7. + * Added support for Python 3.11 and Python 3.12. + * Added dependency on importlib-resources for Python 3.8. + * Dropped implicit dependency on setuptools for pkg_resources. + * Update to iso-codes 4.15.0. (Thanks to alanorth!) + * Removes iso3166.mo files and opts for newer iso3166-1.mo and + iso3166-3.mo files for Country and Historic Country Translations + respectively. + ------------------------------------------------------------------- Fri Apr 21 12:30:29 UTC 2023 - Dirk Müller @@ -48,7 +70,7 @@ Tue Sep 10 12:35:50 UTC 2019 - Tomáš Chvátal Fri Aug 16 06:52:52 UTC 2019 - Matthias Fehring - add pycountry-19.7.15-fix-reading-description.patch to fix wrong - encoding when opening description files in setup.py + encoding when opening description files in setup.py ------------------------------------------------------------------- Tue Jul 23 10:31:50 UTC 2019 - Tomáš Chvátal diff --git a/python-pycountry.spec b/python-pycountry.spec index 38dede9..5ed324b 100644 --- a/python-pycountry.spec +++ b/python-pycountry.spec @@ -16,19 +16,18 @@ # -%define real_name pycountry -%{?!python_module:%define python_module() python3-%{**}} -%global skip_python2 1 %{?sle15_python_module_pythons} Name: python-pycountry -Version: 22.3.5 +Version: 23.12.11 Release: 0 Summary: Databases for ISO standards 639 3166 3166-2 4217 15924 License: LGPL-2.1-only Group: Development/Libraries/Python URL: https://pypi.python.org/pypi/pycountry/ -Source: https://pypi.io/packages/source/p/%{real_name}/%{real_name}-%{version}.tar.gz -BuildRequires: %{python_module setuptools} +Source: https://pypi.io/packages/source/p/pycountry/pycountry-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module poetry-core} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-lxml @@ -46,13 +45,13 @@ packaged into pycountry and made accessible through a Python API. Translation files for the various strings are included as well. %prep -%setup -q -n %{real_name}-%{version} +%setup -q -n pycountry-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -61,6 +60,7 @@ Translation files for the various strings are included as well. %files %{python_files} %license LICENSE.txt %doc README.rst -%{python_sitelib}/* +%{python_sitelib}/pycountry +%{python_sitelib}/pycountry-%{version}.dist-info %changelog