From fc381353472870fdda15eea0f7310c5b8293c5d8 Mon Sep 17 00:00:00 2001 From: Terje Rosten Date: Sat, 4 Feb 2023 18:08:36 +0100 Subject: [PATCH] 5.0.8 Execute tests as upstream does --- .gitignore | 1 + python-configobj.spec | 23 +++++++++++++---------- sources | 2 +- 3 files changed, 15 insertions(+), 11 deletions(-) diff --git a/.gitignore b/.gitignore index eb68509..87b860e 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ configobj-4.7.2.zip /configobj-5.0.6.tar.gz /LICENSE /v5.0.6.tar.gz +/v5.0.8.tar.gz diff --git a/python-configobj.spec b/python-configobj.spec index ce7ab58..fe55030 100644 --- a/python-configobj.spec +++ b/python-configobj.spec @@ -1,6 +1,6 @@ Name: python-configobj -Version: 5.0.6 -Release: 30%{?dist} +Version: 5.0.8 +Release: 1%{?dist} Summary: Config file reading, writing, and validation License: BSD URL: http://configobj.readthedocs.org/ @@ -15,6 +15,7 @@ BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-setuptools BuildRequires: python%{python3_pkgversion}-six BuildRequires: python%{python3_pkgversion}-pytest +BuildRequires: python%{python3_pkgversion}-pytest-cov %global _description \ ConfigObj is a simple but powerful configuration file reader and writer: an ini\ file round tripper. Its main feature is that it is very easy to use, with a\ @@ -37,21 +38,23 @@ Requires: python%{python3_pkgversion}-six %py3_install %check -# this needs to be set for tests.test_configobj.test_options_deprecation -export PYTHONWARNINGS=always -%{__python3} test_configobj.py -py.test-%{python3_version} tests +export PYTHONPATH=$(pwd)/build/lib +%{__python3} src/tests/configobj_doctests.py +%{__python3} -m configobj.validate +py.test-%{python3_version} -c setup.cfg --color=yes --cov=configobj --cov-report=term --cov-report=html --cov-report=xml %files -n python%{python3_pkgversion}-configobj %doc README.md %license LICENSE -%{python3_sitelib}/_version.py -%{python3_sitelib}/configobj.py -%{python3_sitelib}/validate.py -%{python3_sitelib}/__pycache__/* +%{python3_sitelib}/configobj +%{python3_sitelib}/validate %{python3_sitelib}/configobj-%{version}-py%{python3_version}.egg-info %changelog +* Sat Feb 04 2023 Terje Rosten - 5.0.8-1 +- 5.0.8 +- Execute tests as upstream does + * Fri Jan 20 2023 Fedora Release Engineering - 5.0.6-30 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild diff --git a/sources b/sources index 892e124..fb94c69 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -3ba0a72b09225a09c80b571ad60c3f54 v5.0.6.tar.gz +SHA512 (v5.0.8.tar.gz) = 26cdfec9f4d7adbab579191b29e6642f4f2a6fc73353f877565b76682d6087748f466f9cbb82fccfb2d409bace29c377c2276848179f5cb396e6ff1375c8edf2