Compare commits

...

No commits in common. "c8-stream-3.9" and "c9s" have entirely different histories.

6 changed files with 81 additions and 25 deletions

9
.gitignore vendored
View File

@ -1 +1,8 @@
SOURCES/toml-0.10.1.tar.gz
/toml-0.9.0.tar.gz
/toml-0.9.1.tar.gz
/toml-0.9.2.tar.gz
/toml-0.9.3.0.tar.gz
/toml-0.9.4.tar.gz
/toml-0.10.0.tar.gz
/toml-0.10.1.tar.gz
/toml-0.10.2.tar.gz

View File

@ -1 +1 @@
1e1de9572d86421f71f1c93a67b100031444eca3 SOURCES/toml-0.10.1.tar.gz
00137fc72f31100edd1c03670081b03053b6c836 toml-0.10.2.tar.gz

6
gating.yaml Normal file
View File

@ -0,0 +1,6 @@
--- !Policy
product_versions:
- rhel-9
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

View File

@ -1,3 +1,7 @@
# Disable tests on RHEL9 as to not pull in the test dependencies
# Specify --with tests to run the tests e.g. on EPEL
%bcond_with tests
%global pypi_name toml
%global desc TOML aims to be a minimal configuration file format that's easy to read due to \
obvious semantics. TOML is designed to map unambiguously to a hash table. TOML \
@ -6,8 +10,8 @@ This package loads toml file into python dictionary and dump dictionary into \
toml file.
Name: python-%{pypi_name}
Version: 0.10.1
Release: 5%{?dist}
Version: 0.10.2
Release: 6%{?dist}
Summary: Python Library for Tom's Obvious, Minimal Language
License: MIT
@ -15,70 +19,82 @@ URL: https://pypi.python.org/pypi/%{pypi_name}
Source0: %{pypi_source}
BuildArch: noarch
# Exclude i686 arch. Due to a modularity issue it's being added to the
# x86_64 compose of CRB, but we don't want to ship it at all.
# See: https://projects.engineering.redhat.com/browse/RCM-72605
ExcludeArch: i686
BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: python%{python3_pkgversion}-rpm-macros
BuildRequires: python%{python3_pkgversion}-setuptools
BuildRequires: pyproject-rpm-macros
# RHEL: tests disabled due to missing dependencies
%bcond_with tests
%if %{with tests}
BuildRequires: python%{python3_pkgversion}-numpy
BuildRequires: python%{python3_pkgversion}-pytest
BuildRequires: /usr/bin/toml-test
%endif
%description
%desc
%package -n python%{python3_pkgversion}-%{pypi_name}
Summary: %{summary}
BuildRequires: python%{python3_pkgversion}-devel
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}
%description -n python%{python3_pkgversion}-%{pypi_name}
%desc
%prep
%autosetup -p1 -n %{pypi_name}-%{version}
# https://github.com/uiri/toml/pull/339
sed -i '/pytest-cov/d' tox.ini
%generate_buildrequires
%pyproject_buildrequires %{?with_tests:-t}
%build
%py3_build
%pyproject_wheel
%install
%py3_install
%pyproject_install
%pyproject_save_files %{pypi_name}
%if %{with tests}
%check
ln -s /usr/share/toml-test/ . # python tests require test cases here
%pytest
%tox
# Also using the language independent toml-test suite to launch tests
ln -s /usr/share/toml-test/tests/* tests/ # toml-test requires them here
toml-test $(pwd)/tests/decoding_test3.sh
%endif
%files -n python%{python3_pkgversion}-%{pypi_name}
%files -n python%{python3_pkgversion}-%{pypi_name} -f %{pyproject_files}
%license LICENSE
%doc README.rst
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/
%{python3_sitelib}/%{pypi_name}/
%changelog
* Tue Dec 01 2020 Tomas Orsava <torsava@redhat.com> - 0.10.1-5
- Convert spec for python39 module in RHEL8
- Revert usage of pyproject-rpm-macros
- Resolves: rhbz#1877430
* Tue Feb 08 2022 Tomáš Hrnčiar <thrnciar@redhat.com> - 0.10.2-6
- Add automatically generated Obsoletes tag with the python39- prefix
for smoother upgrade from RHEL8
- Related: rhbz#1990421
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 0.10.2-5
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.10.2-4
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
* Wed Mar 10 2021 Charalampos Stratakis <cstratak@redhat.com> - 0.10.2-3
- Disable tests on RHEL9 to avoid pulling in the test dependencies
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Mon Nov 23 2020 Miro Hrončok <mhroncok@redhat.com> - 0.10.2-1
- Update to 0.10.2
- Fixes: rhbz#1893498
* Fri Nov 13 2020 Miro Hrončok <mhroncok@redhat.com> - 0.10.1-4
- Don't BR pytest-cov

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (toml-0.10.2.tar.gz) = ede2c8fed610a3827dba828f6e7ab7a8dbd5745e8ef7c0cd955219afdc83b9caea714deee09e853627f05ad1c525dc60426a6e9e16f58758aa028cb4d3db4b39

26
tests/tests.yml Normal file
View File

@ -0,0 +1,26 @@
---
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- classic
repositories:
- repo: "https://src.fedoraproject.org/rpms/pyproject-rpm-macros.git"
dest: "pyproject-rpm-macros"
tests:
- pyproject_pytest:
dir: pyproject-rpm-macros/tests
run: ./mocktest.sh python-pytest
- pyproject_entrypoints:
dir: pyproject-rpm-macros/tests
run: ./mocktest.sh python-entrypoints
- pyproject_pluggy:
dir: pyproject-rpm-macros/tests
run: ./mocktest.sh python-pluggy
- pyproject_clikit:
dir: pyproject-rpm-macros/tests
run: ./mocktest.sh python-clikit
required_packages:
- mock
- rpmdevtools
- rpm-build