From 4eb684249763bfd878ea4c7047e984fbee6ac454b23a04d4e68ee0658d41e2be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 3 May 2024 20:26:43 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main python-csv23 revision 8a538d1f0aae9cf1f25b34b2b70fe2a9 --- .gitattributes | 23 ++++++++++++++ csv23-0.3.4.zip | 3 ++ python-csv23.changes | 28 +++++++++++++++++ python-csv23.spec | 71 ++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 125 insertions(+) create mode 100644 .gitattributes create mode 100644 csv23-0.3.4.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/csv23-0.3.4.zip b/csv23-0.3.4.zip new file mode 100644 index 0000000..1c1e1c7 --- /dev/null +++ b/csv23-0.3.4.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:12faa4b222808fc8963d4b6490a5b42fe3814a0b2c370ffb994944ac62c55a54 +size 42614 diff --git a/python-csv23.changes b/python-csv23.changes new file mode 100644 index 0000000..8e96a6e --- /dev/null +++ b/python-csv23.changes @@ -0,0 +1,28 @@ +------------------------------------------------------------------- +Fri Apr 21 12:24:02 UTC 2023 - Dirk Müller + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Tue Sep 27 15:24:11 UTC 2022 - Yogalakshmi Arunachalam + +- Update to 0.3.4 + * Drop Python 3.6 support. + +------------------------------------------------------------------- +Sun Dec 19 14:41:41 UTC 2021 - Ben Greiner + +- Update to 0.3.3 + * Drop Python 3.5 support and tag Python 3.9 and 3.10 support + +------------------------------------------------------------------- +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..ca5253f --- /dev/null +++ b/python-csv23.spec @@ -0,0 +1,71 @@ +# +# spec file for package python-csv23 +# +# 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/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without python2 +%{?sle15_python_module_pythons} +Name: python-csv23 +Version: 0.3.4 +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_module pytest >= 4.6} +BuildRequires: %{python_module pytest-mock} +BuildRequires: %{python_module setuptools} +BuildRequires: dos2unix +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: unzip +BuildArch: noarch +%if %{with python2} +BuildRequires: python2-mock +%endif +%ifpython2 +Requires: python-mock +%endif +%python_subpackages + +%description +Python 2/3 unicode CSV compatibility layer + +%prep +%setup -q -n csv23-%{version} +sed -i -e '/--cov/ d' -e '/mock_use_standalone_module/ d' setup.cfg +dos2unix CHANGES.rst README.rst + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%doc CHANGES.rst README.rst +%license LICENSE.txt +%{python_sitelib}/csv23 +%{python_sitelib}/csv23-%{version}*-info + +%changelog