Accepting request 1135777 from devel:languages:python

- 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/request/show/1135777
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pycountry?expand=0&rev=11
This commit is contained in:
Dominique Leuenberger 2024-01-05 21:58:29 +00:00 committed by Git OBS Bridge
commit df3a51b45d
4 changed files with 36 additions and 14 deletions

BIN
pycountry-22.3.5.tar.gz (Stored with Git LFS)

Binary file not shown.

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:00569d82eaefbc6a490a311bfa84a9c571cff9ddbf8b0a4f4e7b4f868b4ad925
size 5927399

View File

@ -1,3 +1,25 @@
-------------------------------------------------------------------
Sat Dec 30 17:34:22 UTC 2023 - Dirk Müller <dmueller@suse.com>
- 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 <dmueller@suse.com>
@ -48,7 +70,7 @@ Tue Sep 10 12:35:50 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
Fri Aug 16 06:52:52 UTC 2019 - Matthias Fehring <buschmann23@opensuse.org>
- 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 <tchvatal@suse.com>

View File

@ -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