From f8e7b4e51225151803d657c522aec31f75279b57676462cb91d537f16de4baf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 12 Oct 2020 07:12:31 +0000 Subject: [PATCH] Accepting request 841043 from home:bnavigator:branches:devel:languages:python update to satisfy leap OBS-URL: https://build.opensuse.org/request/show/841043 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-csv23?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++++++ .gitignore | 1 + csv23-0.3.2.zip | 3 +++ python-csv23.changes | 11 ++++++++ python-csv23.spec | 64 ++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 102 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 csv23-0.3.2.zip create mode 100644 python-csv23.changes create mode 100644 python-csv23.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/csv23-0.3.2.zip b/csv23-0.3.2.zip new file mode 100644 index 0000000..056f6dd --- /dev/null +++ b/csv23-0.3.2.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a33cc86b7c871fde3708c272ae1f6d496b0441d5dd0327ada1424e12af8a8bbe +size 42760 diff --git a/python-csv23.changes b/python-csv23.changes new file mode 100644 index 0000000..8894797 --- /dev/null +++ b/python-csv23.changes @@ -0,0 +1,11 @@ +------------------------------------------------------------------- +Sun Oct 11 14:20:51 UTC 2020 - Benjamin Greiner + +- Release (only imposed from testing) minimum version for mock + to satisfy Leap dependency resolution + +------------------------------------------------------------------- +Sun Oct 11 12:05:06 UTC 2020 - Benjamin Greiner + +- Initial specfile for version 0.3.2 +- Is a test requirement of pip 20.2 diff --git a/python-csv23.spec b/python-csv23.spec new file mode 100644 index 0000000..bf8779c --- /dev/null +++ b/python-csv23.spec @@ -0,0 +1,64 @@ +# +# spec file for package python-csv23 +# +# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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 http://bugs.opensuse.org/ + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-csv23 +Version: 0.3.2 +Release: 0 +License: MIT +Summary: Python 2/3 unicode CSV compatibility layer +Url: https://github.com/xflr6/csv23 +Group: Development/Languages/Python +# Only ZIP archive on PyPI +Source: https://files.pythonhosted.org/packages/source/c/csv23/csv23-%{version}.zip +BuildRequires: python-rpm-macros +BuildRequires: unzip +BuildRequires: dos2unix +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module mock} +BuildRequires: %{python_module pytest >= 4.6} +BuildRequires: %{python_module pytest-mock} +BuildRequires: fdupes +BuildArch: noarch + +%python_subpackages + +%description +Python 2/3 unicode CSV compatibility layer + +%prep +%setup -q -n csv23-%{version} +sed -i '/--cov/ d' setup.cfg +dos2unix CHANGES.txt README.rst + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%doc CHANGES.txt README.rst +%license LICENSE.txt +%{python_sitelib}/csv23 +%{python_sitelib}/csv23-%{version}*-info + +%changelog