From 2c13486350b245db2881988f165280bb9b773a4e Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Dec 01 2020 09:50:54 +0000 Subject: Update python-copr-common to 0.11-1 --- diff --git a/.gitignore b/.gitignore index 7bdf4da..b133273 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /python-copr-common-0.6.tar.gz /python-copr-common-0.8.tar.gz /python-copr-common-0.9.tar.gz +/python-copr-common-0.11.tar.gz diff --git a/python-copr-common.spec b/python-copr-common.spec index d69c78c..994cfec 100644 --- a/python-copr-common.spec +++ b/python-copr-common.spec @@ -7,14 +7,16 @@ %if 0%{?fedora} || 0%{?rhel} > 7 %global with_python3 1 +%global __python %_bindir/python3 %endif %if 0%{?fedora} < 28 || 0%{?rhel} && 0%{?rhel} <= 7 %global with_python2 1 +%global __python %_bindir/python2 %endif Name: python-copr-common -Version: 0.9 +Version: 0.11 Release: 1%{?dist} Summary: Python code used by Copr @@ -31,11 +33,16 @@ BuildArch: noarch %if %{with python2} BuildRequires: python2-devel BuildRequires: python-setuptools +BuildRequires: python-pytest +BuildRequires: python-mock +BuildRequires: python-requests %endif %if %{with python3} BuildRequires: python3-devel BuildRequires: python3-setuptools +BuildRequires: python3-pytest +BuildRequires: python3-requests %endif %global _description\ @@ -89,6 +96,10 @@ version=%version %py2_install %endif +%check +%{__python} -m pytest -vv tests + + %if %{with python3} %files -n python3-%{srcname} %license LICENSE @@ -104,6 +115,13 @@ version=%version %py2_install %changelog +* Mon Nov 30 2020 Pavel Raiskup 0.11-1 +- add first tests for copr-common package +- repeatedly send requests to frontend until they succeed + +* Mon Nov 30 2020 Pavel Raiskup 0.10-1 +- ship LICENSE file in PyPI tarball + * Wed Nov 11 2020 Pavel Raiskup 0.9-1 - bump to non-devel version diff --git a/sources b/sources index dd95aa0..553300e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (python-copr-common-0.9.tar.gz) = 6cd9c00dc85ed5df4e0c71f69d8ecd72dbe8c824f03ae07e4338b911979075c261f52d88919c817bee30606af5ecf08c273069ce485a86771d1b97ea077d250f +SHA512 (python-copr-common-0.11.tar.gz) = a76d491b9d0b508f9828ba6e3893f9e544160e967ff2dbc49ca0498b7c518c2c8d4c4963646b1ffb2a007f4889b79377b59b08abcf5b28ee12b1bff7240e482e