Compare commits

...

No commits in common. "a8" and "c8s" have entirely different histories.
a8 ... c8s

8 changed files with 43 additions and 5 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

5
.gitignore vendored
View File

@ -1 +1,4 @@
SOURCES/iso8601-0.1.11.tar.gz
iso8601-0.1.4.tar.gz
/iso8601-0.1.8.tar.gz
/iso8601-0.1.10.tar.gz
/iso8601-0.1.11.tar.gz

View File

@ -1 +0,0 @@
d7af90c7f01c8b62a9d8c0bf26badf2a903ccf70 SOURCES/iso8601-0.1.11.tar.gz

7
gating.yaml Normal file
View File

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

4
plan.fmf Normal file
View File

@ -0,0 +1,4 @@
discover:
how: fmf
execute:
how: tmt

View File

@ -6,9 +6,11 @@
This module parses the most common forms of ISO 8601 date strings \
(e.g. 2007-01-14T20:34:22+00:00) into datetime objects.
%bcond_without tests
Name: python-%{srcname}
Version: 0.1.11
Release: 9%{?dist}.alma
Release: 12%{?dist}
Summary: %{sum}
License: MIT
@ -17,6 +19,7 @@ Source0: http://pypi.python.org/packages/source/i/%{srcname}/%{srcname}-%
BuildArch: noarch
BuildRequires: python-srpm-macros
BuildRequires: python3-pytest
%description %{pkgdesc}
@ -69,6 +72,11 @@ export RHEL_ALLOW_PYTHON2_FOR_BUILD=1
%py3_other_install
%endif
%if %{with tests}
%check
%pytest
%endif
%files -n python2-%{srcname}
%doc LICENSE README.rst
%{python2_sitelib}/*
@ -84,8 +92,17 @@ export RHEL_ALLOW_PYTHON2_FOR_BUILD=1
%endif
%changelog
* Tue Dec 07 2021 Eduard Abdullin <eabdullin@almalinux.org> - 0.1.11-9.alma
- Fix BuildRequires
* Fri Aug 19 2022 Tomas Orsava <torsava@redhat.com> - 0.1.11-12
- Modify test for RHEL 8
- Related: rhbz#2108089
* Thu Aug 18 2022 Tomáš Hrnčiar <thrnciar@redhat.com> - 0.1.11-11
- Enable tests
- Related: rhbz#2108089
* Wed Aug 10 2022 Tomáš Hrnčiar <thrnciar@redhat.com> - 0.1.11-10
- Fix BuildRequire in spec file
- Resolves: rhbz#2108089
* Mon Jun 25 2018 Petr Viktorin <pviktori@redhat.com> - 0.1.11-9
- Allow Python 2 for build

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (iso8601-0.1.11.tar.gz) = 19f5443aae4e3f93b0521a7215318c2833bcca5740ea05f9a6d5771bff2aaeb5626ba26e5ba64efae135bf9420a1810854969dad845aaf67089d5e6898a254a0

6
test_testsuite.fmf Normal file
View File

@ -0,0 +1,6 @@
framework: shell
require:
- python3
- python3-pytest
- python3-iso8601
test: pytest-3 --pyargs iso8601.test_iso8601