From 878c288a09cd68ef982baf54ff2f49656731e6ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Tue, 29 Jun 2021 19:02:17 +0200 Subject: [PATCH] Actually run the tests in %check --- .gitignore | 1 + python-jmespath.spec | 17 ++++++++++++----- sources | 2 +- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 9f2cbc4..633add8 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/python-jmespath.spec b/python-jmespath.spec index d9545bf..1de4ff3 100644 --- a/python-jmespath.spec +++ b/python-jmespath.spec @@ -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 - 0.10.0-3 +- Actually run the tests in %%check + * Fri Jun 04 2021 Python Maint - 0.10.0-2 - Rebuilt for Python 3.10 diff --git a/sources b/sources index cd2db37..a5e5970 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (jmespath-0.10.0.tar.gz) = 9e229b5809d2dd74eb7dbf518953f848175743fb0ee91ffc901777be2f4809cc0c4f4ba40890746533e344f64e900ec189d6a8c847c864fa47fbf67e5106a7bc +SHA512 (jmespath.py-0.10.0.tar.gz) = 84d787a9547bf0d33dfb4cf42514d6a7a1e69fb8867ccb9d84aa0555ea52b3064a9c6a49b3c51564090bb1d1d2d067fe1887105d744a0f25a991d9e9595c85c5