From bd55a37a2da2eaafb7602e6862ea0e59848ef5da Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Thu, 2 Feb 2023 20:12:37 +0000 Subject: [PATCH] Auto sync2gitlab import of python3.11-iniconfig-1.1.1-2.el8.src.rpm --- .gitignore | 1 + EMPTY | 1 - python3.11-iniconfig.spec | 80 +++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 82 insertions(+), 1 deletion(-) create mode 100644 .gitignore delete mode 100644 EMPTY create mode 100644 python3.11-iniconfig.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0ba0758 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/iniconfig-1.1.1.tar.gz diff --git a/EMPTY b/EMPTY deleted file mode 100644 index 0519ecb..0000000 --- a/EMPTY +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/python3.11-iniconfig.spec b/python3.11-iniconfig.spec new file mode 100644 index 0000000..7366c8f --- /dev/null +++ b/python3.11-iniconfig.spec @@ -0,0 +1,80 @@ +%global __python3 /usr/bin/python3.11 +%global python3_pkgversion 3.11 + +Name: python%{python3_pkgversion}-iniconfig +Version: 1.1.1 +Release: 2%{?dist} +Summary: Brain-dead simple parsing of ini files +License: MIT +URL: http://github.com/RonnyPfannschmidt/iniconfig +BuildArch: noarch +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-rpm-macros +BuildRequires: python%{python3_pkgversion}-setuptools +BuildRequires: python%{python3_pkgversion}-wheel + +Source0: %{pypi_source iniconfig} + +# pytest 6+ needs this and this uses pytest for tests +%bcond_without tests + +%if %{with tests} +BuildRequires: python%{python3_pkgversion}-pytest +%endif + +%global _description %{expand: +iniconfig is a small and simple INI-file parser module +having a unique set of features: + +* tested against Python2.4 across to Python3.2, Jython, PyPy +* maintains order of sections and entries +* supports multi-line values with or without line-continuations +* supports "#" comments everywhere +* raises errors with proper line-numbers +* no bells and whistles like automatic substitutions +* iniconfig raises an Error if two sections have the same name.} +%description %_description + + +%prep +%autosetup -n iniconfig-%{version} +# Remove undeclared dependency on python-py +# Merged upstream https://github.com/pytest-dev/iniconfig/pull/47 +sed -i "s/py\.test/pytest/" testing/test_iniconfig.py + + +# Remove dependency on setuptools-scm +sed -i "s/ *use_scm_version=.*,/version='%{version}',/" setup.py + + +%build +%py3_build + + +%install +%py3_install + + +%if %{with tests} +%check +%pytest +%endif + + +%files -n python%{python3_pkgversion}-iniconfig +%doc README.txt +%license LICENSE +%{python3_sitelib}/iniconfig-%{version}-py%{python3_version}.egg-info/ +%{python3_sitelib}/iniconfig/ + + +%changelog +* Wed Feb 01 2023 Charalampos Stratakis - 1.1.1-2 +- Enable tests + +* Fri Dec 02 2022 Charalampos Stratakis - 1.1.1-1 +- Initial package +- Fedora contributions by: + Lumir Balhar + Miro HronĨok + Tomas Hrnciar diff --git a/sources b/sources new file mode 100644 index 0000000..49a755c --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (iniconfig-1.1.1.tar.gz) = c9341db7e3ec2204b6a674fca7824cbeb492e3576d5ac3f084b234c82842b28f2f6acbfdb812e183f4334a95b990551f942a4caf548f5ce7ef14885f931535ee