From efe3b404813364c4b6f99729370a381efbe40050 Mon Sep 17 00:00:00 2001 From: Lukas Zachar Date: Wed, 12 Oct 2022 15:05:50 +0200 Subject: [PATCH] Add to EPEL-9 Resolves: rhbz#2103054 --- .fmf/version | 1 + plans/main.fmf | 11 +++++++++++ python-pint.spec | 8 +++++++- 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 .fmf/version create mode 100644 plans/main.fmf diff --git a/.fmf/version b/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/plans/main.fmf b/plans/main.fmf new file mode 100644 index 0000000..e3554e0 --- /dev/null +++ b/plans/main.fmf @@ -0,0 +1,11 @@ +execute: + how: tmt +discover: + how: shell + dist-git-source: true + tests: + - name: upstream tests + test: cd $TMT_SOURCE_DIR/*/pint && pytest-3 + require: + - python3-pytest + - python3-pint diff --git a/python-pint.spec b/python-pint.spec index 1eb4889..784ada1 100644 --- a/python-pint.spec +++ b/python-pint.spec @@ -3,7 +3,7 @@ Name: python-pint Version: 0.16.1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Physical quantities module License: BSD @@ -64,6 +64,8 @@ Documentation for the pint module # drop numpy version requirement sed -i '/@helpers.requires_numpy_at_least("1.16")/d' pint/testsuite/test_quantity.py +# drop pytest-mpl test requirement (not available in epel) +sed -i 's/pytest-mpl; //' setup.cfg %generate_buildrequires %pyproject_buildrequires -x test @@ -98,6 +100,10 @@ rm -rf html/.{doctrees,buildinfo} %endif %changelog +* Wed Oct 12 2022 Lukáš Zachar - 0.16.1-3 +- Drop test dependency python-mpl +- Resolves rhbz#2103054 + * Sun Jan 24 2021 Matthias Runge - 0.16.1-2 - rebuild without bootstrap - fix FTBFS (rhbz#1914333)