From b30fa2dbc9d2fa663f4b5a95ad70bc0813933ed434617b704ee40fdc9ffe9f44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Sun, 13 Sep 2020 17:39:02 +0000 Subject: [PATCH] Accepting request 834040 from home:jayvdb:branches:devel:languages:python - Remove test module from runtime package with pr_106.patch OBS-URL: https://build.opensuse.org/request/show/834040 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pypng?expand=0&rev=11 --- pr_106.patch | 19 +++++++++++++++++++ python-pypng.changes | 5 +++++ python-pypng.spec | 2 ++ 3 files changed, 26 insertions(+) create mode 100644 pr_106.patch diff --git a/pr_106.patch b/pr_106.patch new file mode 100644 index 0000000..af3d94d --- /dev/null +++ b/pr_106.patch @@ -0,0 +1,19 @@ +commit 66a8d1bc88f99a05349099e1121ef1f57856cded +Author: John Vandenberg +Date: Sun Sep 13 10:45:51 2020 +0700 + + Remove test modules from runtime distribution + +Index: pypng-0.0.20/setup.py +=================================================================== +--- pypng-0.0.20.orig/setup.py ++++ pypng-0.0.20/setup.py +@@ -40,7 +40,7 @@ https://pypng.readthedocs.io/en/latest/ + author_email='drj@pobox.com', + url='https://github.com/drj11/pypng', + package_dir={'': 'code'}, +- py_modules=['png', 'test_png', 'pngsuite'], ++ py_modules=['png'], + scripts=[ + "code/prichunkpng", + "code/priforgepng", diff --git a/python-pypng.changes b/python-pypng.changes index e5cf2d9..2037d04 100644 --- a/python-pypng.changes +++ b/python-pypng.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Sep 11 11:22:36 UTC 2020 - John Vandenberg + +- Remove test module from runtime package with pr_106.patch + ------------------------------------------------------------------- Wed May 20 07:26:40 UTC 2020 - Petr Gajdos diff --git a/python-pypng.spec b/python-pypng.spec index 0de3a5d..870a41e 100644 --- a/python-pypng.spec +++ b/python-pypng.spec @@ -26,6 +26,7 @@ License: MIT Group: Development/Languages/Python URL: https://github.com/drj11/pypng Source: https://files.pythonhosted.org/packages/source/p/pypng/pypng-%{version}.tar.gz +Patch0: pr_106.patch BuildRequires: %{python_module Cython} BuildRequires: %{python_module numpy} BuildRequires: %{python_module setuptools} @@ -41,6 +42,7 @@ PyPNG allows PNG image files to be read and written using pure Python. %prep %setup -q -n pypng-%{version} +%patch0 -p1 sed -i -e '/^#!\//, 1d' code/png.py %build