[packages/python3-iniconfig] - python-iniconfig.spec updated to 2.1.0 for python 3.8+
qboosh
qboosh at pld-linux.org
Tue May 27 20:20:55 CEST 2025
commit 8f97d52589b5072c05b8ca0e64a5cb8939b24fb9
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Tue May 27 20:07:42 2025 +0200
- python-iniconfig.spec updated to 2.1.0 for python 3.8+
python-iniconfig.spec | 112 -------------------------------------------------
python3-iniconfig.spec | 60 ++++++++++++++++++++++++++
2 files changed, 60 insertions(+), 112 deletions(-)
---
diff --git a/python-iniconfig.spec b/python-iniconfig.spec
deleted file mode 100644
index 736d4f0..0000000
--- a/python-iniconfig.spec
+++ /dev/null
@@ -1,112 +0,0 @@
-#
-# Conditional build:
-%bcond_without tests # unit tests
-%bcond_without python2 # CPython 2.x module
-%bcond_without python3 # CPython 3.x module
-
-Summary: Brain-dead simple config-ini parsing
-Summary(pl.UTF-8): Bezmyślnie prosta analiza formatu config-ini
-Name: python-iniconfig
-Version: 1.1.1
-Release: 7
-License: MIT
-Group: Libraries/Python
-#Source0Download: https://pypi.org/simple/iniconfig/
-Source0: https://files.pythonhosted.org/packages/source/i/iniconfig/iniconfig-%{version}.tar.gz
-# Source0-md5: 0b7f3be87481211c183eae095bcea6f1
-URL: https://pypi.org/project/iniconfig/
-%if %{with python2}
-BuildRequires: python-modules >= 1:2.5
-BuildRequires: python-setuptools >= 1:41.2.0
-BuildRequires: python-setuptools_scm >= 3
-%if %{with tests}
-BuildRequires: python-pytest
-%endif
-%endif
-%if %{with python3}
-BuildRequires: python3-modules >= 1:3.2
-BuildRequires: python3-setuptools >= 1:41.2.0
-BuildRequires: python3-setuptools_scm >= 3
-%if %{with tests}
-BuildRequires: python3-pytest
-%endif
-%endif
-BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.714
-Requires: python-modules >= 1:2.5
-BuildArch: noarch
-BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-iniconfig is a small and simple INI-file parser module.
-
-%description -l pl.UTF-8
-iniconfig to mały i prosty moduł parsera plików INI.
-
-%package -n python3-iniconfig
-Summary: Brain-dead simple config-ini parsing
-Summary(pl.UTF-8): Bezmyślnie prosta analiza formatu config-ini
-Group: Libraries/Python
-Requires: python3-modules >= 1:3.2
-
-%description -n python3-iniconfig
-iniconfig is a small and simple INI-file parser module.
-
-%description -n python3-iniconfig -l pl.UTF-8
-iniconfig to mały i prosty moduł parsera plików INI.
-
-%prep
-%setup -q -n iniconfig-%{version}
-
-%build
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-PYTHONPATH=$(pwd)/src \
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-%{__python} -m pytest testing
-%endif
-%endif
-
-%if %{with python3}
-%py3_build
-
-%if %{with tests}
-PYTHONPATH=$(pwd)/src \
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-%{__python3} -m pytest testing
-%endif
-%endif
-
-%install
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%py_install
-
-%py_postclean
-%endif
-
-%if %{with python3}
-%py3_install
-%endif
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%files
-%defattr(644,root,root,755)
-%doc CHANGELOG LICENSE README.txt example.ini
-%{py_sitescriptdir}/iniconfig
-%{py_sitescriptdir}/iniconfig-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-iniconfig
-%defattr(644,root,root,755)
-%doc CHANGELOG LICENSE README.txt example.ini
-%{py3_sitescriptdir}/iniconfig
-%{py3_sitescriptdir}/iniconfig-%{version}-py*.egg-info
-%endif
diff --git a/python3-iniconfig.spec b/python3-iniconfig.spec
new file mode 100644
index 0000000..e46f38e
--- /dev/null
+++ b/python3-iniconfig.spec
@@ -0,0 +1,60 @@
+#
+# Conditional build:
+%bcond_with tests # unit tests (not included in sdist)
+
+Summary: Brain-dead simple config-ini parsing
+Summary(pl.UTF-8): Bezmyślnie prosta analiza formatu config-ini
+Name: python3-iniconfig
+Version: 2.1.0
+Release: 1
+License: MIT
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/iniconfig/
+Source0: https://files.pythonhosted.org/packages/source/i/iniconfig/iniconfig-%{version}.tar.gz
+# Source0-md5: 437ede5b20b0ab2e76ca08f02b5c49dd
+URL: https://pypi.org/project/iniconfig/
+BuildRequires: python3-build
+BuildRequires: python3-hatch-vcs
+BuildRequires: python3-hatchling >= 1.26
+BuildRequires: python3-installer
+BuildRequires: python3-modules >= 1:3.8
+%if %{with tests}
+BuildRequires: python3-pytest
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 2.044
+Requires: python3-modules >= 1:3.8
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+iniconfig is a small and simple INI-file parser module.
+
+%description -l pl.UTF-8
+iniconfig to mały i prosty moduł parsera plików INI.
+
+%prep
+%setup -q -n iniconfig-%{version}
+
+%build
+%py3_build_pyproject
+
+%if %{with tests}
+PYTHONPATH=$(pwd)/src \
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+%{__python3} -m pytest testing
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install_pyproject
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README.rst
+%{py3_sitescriptdir}/iniconfig
+%{py3_sitescriptdir}/iniconfig-%{version}.dist-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-iniconfig.git/commitdiff/8f97d52589b5072c05b8ca0e64a5cb8939b24fb9
More information about the pld-cvs-commit
mailing list