From 6ac5e2caecff59740d01dc111c17c9968337c782d3496e75ffe8c26640c850e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Fri, 30 May 2025 08:33:30 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-iso3166?expand=0&rev=6 --- .gitattributes | 23 ++++++++++++++++ .gitignore | 1 + iso3166-2.1.1.tar.gz | 3 +++ python-iso3166.changes | 50 +++++++++++++++++++++++++++++++++++ python-iso3166.spec | 60 ++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 137 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 iso3166-2.1.1.tar.gz create mode 100644 python-iso3166.changes create mode 100644 python-iso3166.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/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/iso3166-2.1.1.tar.gz b/iso3166-2.1.1.tar.gz new file mode 100644 index 0000000..e15d8d8 --- /dev/null +++ b/iso3166-2.1.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fcd551b8dda66b44e9f9e6d6bbbee3a1145a22447c0a556e5d0fb1ad1e491719 +size 12807 diff --git a/python-iso3166.changes b/python-iso3166.changes new file mode 100644 index 0000000..0dafabe --- /dev/null +++ b/python-iso3166.changes @@ -0,0 +1,50 @@ +------------------------------------------------------------------- +Fri May 30 08:33:12 UTC 2025 - Markéta Machová + +- Convert to pip-based build + +------------------------------------------------------------------- +Thu Sep 29 02:52:48 UTC 2022 - Yogalakshmi Arunachalam + +- 2.1.1 - July 11, 2022 + * Move install metadata from setup.py to setup.cfg + * Add py.typed to source distribution +- 2.1.0 - July 11, 2022 + * Updated entries + * “Turkey” changed to “Türkiye” + +------------------------------------------------------------------- +Mon Jan 24 16:29:11 UTC 2022 - Michael Ströder + +- update to 2.0.2 + * Add the ``py.typed`` marker file in accordance with PEP 561 + * Add ``python_requires`` to ``setup.py`` + * Add type hints throughout codebase + * Drop support for Python versions prior to 3.6 + +------------------------------------------------------------------- +Thu Aug 27 02:12:28 UTC 2020 - John Vandenberg + +- Convert to single spec +- Activate test suite +- Update to v1.0.1 + * Include test files in source distribution + * Added all Python 3 versions to tox.ini and supported list +- from v1.0 + * "Macedonia, the former Yugoslav Republic of" changed to + "North Macedonia" (effective 2019-03-13) + * Added numeric code 983 for Kosovo to mirror usage by the + National Statistical Office of Canada +- from v0.9 + * New entry for Kosovo (XK / XKX) + * Swaziland changed to Eswatini (effective 2018-07-16) +- from v0.8 + * Czechia (changed 2016-09) + * United Kingdom of Great Britain and Northern Ireland + (changed 2014-12) + +------------------------------------------------------------------- +Tue Jun 30 13:06:01 UTC 2015 - prusnak@opensuse.org + +- created package (version 0.7) + diff --git a/python-iso3166.spec b/python-iso3166.spec new file mode 100644 index 0000000..8d1933c --- /dev/null +++ b/python-iso3166.spec @@ -0,0 +1,60 @@ +# +# spec file for package python-iso3166 +# +# Copyright (c) 2025 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/ +# + + +Name: python-iso3166 +Version: 2.1.1 +Release: 0 +Summary: Python ISO 3166-1 country definitions +License: MIT +Group: Development/Languages/Python +URL: https://github.com/deactivated/python-iso3166 +Source: https://files.pythonhosted.org/packages/source/i/iso3166/iso3166-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch +%python_subpackages + +%description +ISO 3166-1 defines two-letter, three-letter, and three-digit country +codes. `python-iso3166` is a self-contained module that converts +between these codes and the corresponding country name. + +%prep +%setup -q -n iso3166-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%doc CHANGES README.rst +%license LICENSE.txt +%{python_sitelib}/iso3166 +%{python_sitelib}/iso3166-%{version}*-info + +%changelog