commit aa38912e11fe54eb9397155ea86df808f80a8864ac7250f55649823c9fa11d43 Author: Tomáš Chvátal Date: Thu Aug 27 06:47:53 2020 +0000 Accepting request 829854 from home:jayvdb:py-submit from :misc OBS-URL: https://build.opensuse.org/request/show/829854 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-iso3166?expand=0&rev=1 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-1.0.1.tar.gz b/iso3166-1.0.1.tar.gz new file mode 100644 index 0000000..f42002a --- /dev/null +++ b/iso3166-1.0.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b1e58dbcf50fbb2c9c418ec7a6057f0cdb30b8f822ac852f72e71ba769dae8c5 +size 10052 diff --git a/python-iso3166.changes b/python-iso3166.changes new file mode 100644 index 0000000..6efbce0 --- /dev/null +++ b/python-iso3166.changes @@ -0,0 +1,26 @@ +------------------------------------------------------------------- +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..3aa834a --- /dev/null +++ b/python-iso3166.spec @@ -0,0 +1,58 @@ +# +# spec file for package python-iso3166 +# +# Copyright (c) 2020 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/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-iso3166 +Version: 1.0.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 pytest} +BuildRequires: %{python_module setuptools} +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 +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%doc CHANGES README.rst +%license LICENSE.txt +%{python_sitelib}/* + +%changelog