Remove nose dependency

We won't see python3-nose in epel9 and it's deprecated upstream,
so remove the dependency and skip the single file that contains
a few remaining nose imports. The majority of the remaining
tests run without nose.

Signed-off-by: Major Hayden <major@mhtx.net>
This commit is contained in:
Major Hayden 2022-05-03 14:15:12 -05:00
parent 5c2552c963
commit 7346dbcc19
No known key found for this signature in database
GPG Key ID: 737051E0C1011FB1

View File

@ -2,7 +2,7 @@
Name: python-%{pypi_name}
Version: 1.0.0
Release: 2%{?dist}
Release: 3%{?dist}
Summary: JSON Matching Expressions
License: MIT
@ -26,7 +26,6 @@ BuildRequires: python3-devel
BuildRequires: python3-setuptools
# The tests unfortunately still import from nose, but we use pytest as test runner:
BuildRequires: python3-nose
BuildRequires: python3-pytest
BuildRequires: python3-hypothesis
@ -48,7 +47,10 @@ rm -rf %{pypi_name}.egg-info
%py3_install
%check
%pytest
# epel9 does not have python3-nose since nose is deprecated upstream. Only one file
# in the upstream repo still depends on nose, so we can omit this dependency for epel9.
# See upstream issue: https://github.com/jmespath/jmespath.py/issues/261%if 0%{?el9}
%pytest --ignore=extra/test_hypothesis.py
%files -n python3-%{pypi_name}
%doc README.rst
@ -58,6 +60,9 @@ rm -rf %{pypi_name}.egg-info
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
%changelog
* Tue May 03 2022 Major Hayden <major@mhtx.net> - 1.0.0-3
- Remove python3-nose from BuildRequires and skip single test file that requires nose.
* Wed Apr 06 2022 Kevin Fenzi <kevin@scrye.com> - 1.0.0-2
- Rebuild to deal with update snafu.