Actually run the tests in %check

This commit is contained in:
Miro Hrončok 2021-06-29 19:02:17 +02:00
parent 473191bf19
commit 878c288a09
3 changed files with 14 additions and 6 deletions

1
.gitignore vendored
View File

@ -4,3 +4,4 @@
/jmespath-0.9.3.tar.gz
/jmespath-0.9.4.tar.gz
/jmespath-0.10.0.tar.gz
/jmespath.py-0.10.0.tar.gz

View File

@ -2,12 +2,12 @@
Name: python-%{pypi_name}
Version: 0.10.0
Release: 2%{?dist}
Release: 3%{?dist}
Summary: JSON Matching Expressions
License: MIT
URL: https://github.com/jmespath/jmespath.py
Source0: https://pypi.python.org/packages/source/j/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
Source0: %{url}/archive/%{version}/jmespath.py-%{version}.tar.gz
BuildArch: noarch
%description
@ -20,9 +20,13 @@ Summary: JSON Matching Expressions
%{?python_provide:%python_provide python-%{pypi_name}}
BuildRequires: python3-devel
BuildRequires: python3-nose
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
Obsoletes: python2-jmespath < 0.9.4-2
%description -n python3-%{pypi_name}
@ -30,7 +34,7 @@ JMESPath allows you to declaratively specify how to extract elements from
a JSON document.
%prep
%setup -q -n %{pypi_name}-%{version}
%setup -q -n jmespath.py-%{version}
rm -rf %{pypi_name}.egg-info
%build
@ -40,7 +44,7 @@ rm -rf %{pypi_name}.egg-info
%py3_install
%check
nosetests-%{python3_version}
%pytest
%files -n python3-%{pypi_name}
%doc README.rst
@ -50,6 +54,9 @@ nosetests-%{python3_version}
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
%changelog
* Tue Jun 29 2021 Miro Hrončok <mhroncok@redhat.com> - 0.10.0-3
- Actually run the tests in %%check
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.10.0-2
- Rebuilt for Python 3.10

View File

@ -1 +1 @@
SHA512 (jmespath-0.10.0.tar.gz) = 9e229b5809d2dd74eb7dbf518953f848175743fb0ee91ffc901777be2f4809cc0c4f4ba40890746533e344f64e900ec189d6a8c847c864fa47fbf67e5106a7bc
SHA512 (jmespath.py-0.10.0.tar.gz) = 84d787a9547bf0d33dfb4cf42514d6a7a1e69fb8867ccb9d84aa0555ea52b3064a9c6a49b3c51564090bb1d1d2d067fe1887105d744a0f25a991d9e9595c85c5