From d1963394b0ce44e5d1015c891dde7e5c250aeb7218beaca2407af524407ee441 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 3 May 2024 22:03:28 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main python-pycountry revision 7dc29398653b3746fe3375cadb430e88 --- .gitattributes | 23 +++++++++++ pycountry-22.3.5.tar.gz | 3 ++ python-pycountry.changes | 84 ++++++++++++++++++++++++++++++++++++++++ python-pycountry.spec | 66 +++++++++++++++++++++++++++++++ 4 files changed, 176 insertions(+) create mode 100644 .gitattributes create mode 100644 pycountry-22.3.5.tar.gz create mode 100644 python-pycountry.changes create mode 100644 python-pycountry.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/pycountry-22.3.5.tar.gz b/pycountry-22.3.5.tar.gz new file mode 100644 index 0000000..ebad7cd --- /dev/null +++ b/pycountry-22.3.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b2163a246c585894d808f18783e19137cb70a0c18fb36748dc01fc6f109c1646 +size 10141551 diff --git a/python-pycountry.changes b/python-pycountry.changes new file mode 100644 index 0000000..566738f --- /dev/null +++ b/python-pycountry.changes @@ -0,0 +1,84 @@ +------------------------------------------------------------------- +Fri Apr 21 12:30:29 UTC 2023 - Dirk Müller + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Thu Apr 13 22:43:35 UTC 2023 - Matej Cepl + +- Make calling of %{sle15modernpython} optional. + +------------------------------------------------------------------- +Sat Mar 26 18:54:55 UTC 2022 - Dirk Müller + +- update to 22.3.5: + * Update to iso-codes 4.9.0 + +------------------------------------------------------------------- +Tue Feb 15 08:58:58 UTC 2022 - Dirk Müller + +- update to 22.1.0: + * Update to iso-codes 4.8.0 + +------------------------------------------------------------------- +Mon Sep 28 11:13:18 UTC 2020 - Dirk Mueller + +- update to 20.7.3: + - Fix bug #37: (accidental) unconditional pkg_resources import. + - Add (auto-generated) __version__ attribute to the main module. + - Add fuzzy search to historic countries. (Fixe issue #26) + - Update to iso-codes 4.5.0. + - PR 9: Clean up the normalization (lower casing) of values in indexes and searches. + See PR https://github.com/flyingcircusio/pycountry/pull/9 for detailed + discussion. This also fixed issue #8. + - Smaller cleanups and build environment version bumps. + - PR 35: Python 3-only cleanups and updated Python minor version compatibility + - PR 33: Remove defunct bugtracker link from README (thanks, jwilk) + - P3 32: (Somewhat hilarious) Typo (thanks, jwilk) + - Moved to Git/Github; switched from Bitbucket Pipelines to Travis builds. + +------------------------------------------------------------------- +Tue Sep 10 12:35:50 UTC 2019 - Tomáš Chvátal + +- Update to 19.8.18: + * Various country fixes +- Remove merged patch pycountry-19.7.15-fix-reading-description.patch + +------------------------------------------------------------------- +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 + +------------------------------------------------------------------- +Tue Jul 23 10:31:50 UTC 2019 - Tomáš Chvátal + +- Update to 19.7.15: + * Updates for more countries and various fixes + +------------------------------------------------------------------- +Fri Mar 29 09:32:07 UTC 2019 - pgajdos@suse.com + +- version update to 18.12.8 + - Switch API from "get + KeyError" to " get + default=None". This is + a subtle API-breaking change. Please update carefully. (#13416) + - Update to iso-codes 4.1. + - Fix #13394: incorrect KeyError shadowing in Subdivisions.get() + - Fix #13398: make lazy loading thread-safe. +- run unit tests + +------------------------------------------------------------------- +Sat Sep 16 01:29:15 UTC 2017 - smurf.anon@gmail.com + +- Update to version 17.5.14 +- Convert to singlespec + +------------------------------------------------------------------- +Wed Oct 5 03:25:59 UTC 2016 - mailaender@opensuse.org + +- update to version 1.20 + +------------------------------------------------------------------- +Wed Oct 08 2008 - Ciaran Farrell + +- Initial import and build of version 0.10 diff --git a/python-pycountry.spec b/python-pycountry.spec new file mode 100644 index 0000000..38dede9 --- /dev/null +++ b/python-pycountry.spec @@ -0,0 +1,66 @@ +# +# spec file for package python-pycountry +# +# Copyright (c) 2023 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%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 +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} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-lxml +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module pytest} +# /SECTION +%python_subpackages + +%description +pycountry provides the ISO databases for the standards 639 (Languages), +3166 (Countries), 3166-2 (Subdivisions of countries), 4217 (Currencies), +15924 (Scripts). The databases are imported from Debian's pkg-isocodes, +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} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%license LICENSE.txt +%doc README.rst +%{python_sitelib}/* + +%changelog