diff --git a/python-augeas-test-package-installation.patch b/python-augeas-test-package-installation.patch new file mode 100644 index 0000000..5bfb5cf --- /dev/null +++ b/python-augeas-test-package-installation.patch @@ -0,0 +1,22 @@ +From f74c4a8206c5a7f28836cbe3cd043bc481c5e518 Mon Sep 17 00:00:00 2001 +From: Nehal J Wani +Date: Sun, 23 May 2021 09:54:53 -0400 +Subject: [PATCH] Ensure exclude is a tuple (#53) + +--- + setup.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/setup.py b/setup.py +index 6c4265e..13b1a38 100755 +--- a/setup.py ++++ b/setup.py +@@ -18,7 +18,7 @@ + author="Harald Hoyer", + author_email="augeas-devel@redhat.com", + description="""Python bindings for Augeas""", +- packages=find_packages(exclude=('test')), ++ packages=find_packages(exclude=('test',)), + setup_requires=["cffi>=1.0.0"], + cffi_modules=["augeas/ffi.py:ffi"], + install_requires=["cffi>=1.0.0"], diff --git a/python-augeas.spec b/python-augeas.spec index 2c2bbdc..6a604ad 100644 --- a/python-augeas.spec +++ b/python-augeas.spec @@ -1,10 +1,11 @@ Name: python-augeas Version: 1.1.0 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Python bindings to augeas License: LGPLv2+ URL: http://augeas.net/ Source0: https://github.com/hercules-team/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz +Patch0: %{name}-test-package-installation.patch BuildArch: noarch BuildRequires: python3-setuptools @@ -28,7 +29,7 @@ python3-augeas is a set of Python bindings around augeas. %prep -%autosetup +%autosetup -p1 %build %{py3_build} @@ -46,10 +47,12 @@ pytest-3 %{python3_sitelib}/augeas/* %{python3_sitelib}/python_augeas-*.egg-info %{python3_sitelib}/__pycache__/* -%{python3_sitelib}/test/* %changelog +* Mon Oct 11 2021 Felix Schwarz - 1.1.0-3 +- do not install "test" package + * Fri Jul 23 2021 Fedora Release Engineering - 1.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild