From b8c7cc367d6be5c3a272361e890a53404af1f887 Mon Sep 17 00:00:00 2001 From: Robert-André Mauchin Date: Mar 07 2019 16:37:36 +0000 Subject: Add actual tests Signed-off-by: Robert-André Mauchin --- diff --git a/python-hpack.spec b/python-hpack.spec index 3674e62..d3ef8a9 100644 --- a/python-hpack.spec +++ b/python-hpack.spec @@ -9,19 +9,23 @@ use of nghttp2 if it's available.} Name: python-%{pypi_name} Version: 3.0.0 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Pure-Python HPACK header compression License: MIT URL: http://hyper.rtfd.org -Source0: https://files.pythonhosted.org/packages/source/h/%{pypi_name}/%{pypi_name}-%{version}.tar.gz +Source0: https://github.com/python-hyper/hpack/archive/v%{version}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel BuildRequires: python2dist(setuptools) +BuildRequires: python2dist(pytest) +BuildRequires: python2dist(hypothesis) BuildRequires: python3-devel BuildRequires: python3dist(setuptools) +BuildRequires: python3dist(pytest) +BuildRequires: python3dist(hypothesis) %{?python_enable_dependency_generator} @@ -49,6 +53,7 @@ Summary: %{summary} %autosetup -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info +rm -rf bench %build @@ -62,8 +67,8 @@ rm -rf %{pypi_name}.egg-info %check -%{__python2} setup.py test -%{__python3} setup.py test +%{__python2} -m pytest +%{__python3} -m pytest %files -n python2-%{pypi_name} @@ -81,6 +86,9 @@ rm -rf %{pypi_name}.egg-info %changelog +* Thu Mar 07 2019 Robert-André Mauchin - 3.0.0-5 +- Add actual tests + * Sat Feb 02 2019 Fedora Release Engineering - 3.0.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild diff --git a/sources b/sources index 7ff1846..c8d28b9 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (hpack-3.0.0.tar.gz) = ffac4bdf19f8826027d8f89fe07e1837eacabbf18d1ff18e0cb13505c6714afd62125aa5cc594c75273725be71cc6e17b2315257fabb7779ce51de8c877267a3 +SHA512 (hpack-3.0.0.tar.gz) = 7b9cf5e643dff2a6454bfe419b797c8ed1a0fe6ec3b725d2696da5a820ab96fe87a64e600b1831c7024bd82616b155a0aa058301acb32172155b6538ba0a73c6