commit
3f9aeacfc0
@ -0,0 +1 @@
|
|||||||
|
SOURCES/iniconfig-1.1.1.tar.gz
|
@ -0,0 +1 @@
|
|||||||
|
f0d3a75f00752f75876468d04bf0cfbc05643b7e SOURCES/iniconfig-1.1.1.tar.gz
|
@ -0,0 +1,7 @@
|
|||||||
|
--- !Policy
|
||||||
|
|
||||||
|
product_versions:
|
||||||
|
- rhel-9
|
||||||
|
decision_context: osci_compose_gate
|
||||||
|
rules:
|
||||||
|
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
@ -0,0 +1,13 @@
|
|||||||
|
execute:
|
||||||
|
how: tmt
|
||||||
|
discover:
|
||||||
|
how: shell
|
||||||
|
dist-git-source: true
|
||||||
|
tests:
|
||||||
|
- name: bundled tests
|
||||||
|
require:
|
||||||
|
- python3.12-pytest
|
||||||
|
test: |
|
||||||
|
cd $(dirname $TMT_SOURCE_DIR/iniconfig-*/testing) &&
|
||||||
|
sed -i "s/py\.test/pytest/" testing/test_iniconfig.py &&
|
||||||
|
pytest-3.12 testing
|
@ -0,0 +1,89 @@
|
|||||||
|
%global __python3 /usr/bin/python3.12
|
||||||
|
%global python3_pkgversion 3.12
|
||||||
|
|
||||||
|
Name: python%{python3_pkgversion}-iniconfig
|
||||||
|
Version: 1.1.1
|
||||||
|
Release: 3%{?dist}
|
||||||
|
Summary: Brain-dead simple parsing of ini files
|
||||||
|
# SPDX
|
||||||
|
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
|
||||||
|
|
||||||
|
# pytest 6+ needs this and this uses pytest for tests
|
||||||
|
%bcond_without tests
|
||||||
|
|
||||||
|
%if %{with tests}
|
||||||
|
# We BR pytest manually to avoid a dependency on tox in ELN/RHEL
|
||||||
|
#BuildRequires: python%{python3_pkgversion}-pytest
|
||||||
|
%endif
|
||||||
|
|
||||||
|
Source0: %{pypi_source iniconfig}
|
||||||
|
|
||||||
|
%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 -v
|
||||||
|
%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
|
||||||
|
* Tue Apr 02 2024 Sergey Cherevko <s.cherevko@msvsphere-os.ru> - 1.1.1-3
|
||||||
|
- Rebuilt for MSVSphere 9.4-beta
|
||||||
|
|
||||||
|
* Tue Jan 23 2024 Miro Hrončok <mhroncok@redhat.com> - 1.1.1-3
|
||||||
|
- Rebuilt for timestamp .pyc invalidation mode
|
||||||
|
|
||||||
|
* Tue Nov 14 2023 Charalampos Stratakis <cstratak@redhat.com> - 1.1.1-2
|
||||||
|
- Enable tests
|
||||||
|
|
||||||
|
* Tue Oct 17 2023 Tomáš Hrnčiar <thrnciar@redhat.com> - 1.1.1-1
|
||||||
|
- Initial package
|
||||||
|
- Fedora contributions by:
|
||||||
|
Lumir Balhar <lbalhar@redhat.com>
|
||||||
|
Miro Hrončok <miro@hroncok.cz>
|
||||||
|
Tomas Hrnciar <thrnciar@redhat.com>
|
||||||
|
|
Loading…
Reference in new issue