From f54f41c001d1e8fc78990d53c25873117774c445 Mon Sep 17 00:00:00 2001 From: zhang-liang-pengkun Date: Thu, 28 Dec 2023 15:07:00 +0800 Subject: [PATCH] Make sure *.pyc files are not included in the tarball Signed-off-by: zhang-liang-pengkun --- ...iles-are-not-included-in-the-tarball.patch | 21 +++++++++++++++++++ python-imagesize.spec | 6 +++++- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 0004-Make-sure-.pyc-files-are-not-included-in-the-tarball.patch diff --git a/0004-Make-sure-.pyc-files-are-not-included-in-the-tarball.patch b/0004-Make-sure-.pyc-files-are-not-included-in-the-tarball.patch new file mode 100644 index 0000000..17678a0 --- /dev/null +++ b/0004-Make-sure-.pyc-files-are-not-included-in-the-tarball.patch @@ -0,0 +1,21 @@ +From a47f231502a5522578e8399f068c05a99399f4b1 Mon Sep 17 00:00:00 2001 +From: Dmitry Shachnev +Date: Tue, 4 Sep 2018 13:10:53 +0300 +Subject: [PATCH] Make sure *.pyc files are not included in the tarball + +--- + MANIFEST.in | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/MANIFEST.in b/MANIFEST.in +index afe1754..3b6b34c 100644 +--- a/MANIFEST.in ++++ b/MANIFEST.in +@@ -1,2 +1,3 @@ + include LICENSE.rst +-graft test ++include test/*.py ++include test/images/* +-- +2.39.0.windows.2 + diff --git a/python-imagesize.spec b/python-imagesize.spec index d38e7d2..915bb30 100644 --- a/python-imagesize.spec +++ b/python-imagesize.spec @@ -1,6 +1,6 @@ Name: python-imagesize Version: 1.1.0 -Release: 4 +Release: 5 Summary: This module analyzes image headers and returns image size. License: MIT URL: https://github.com/shibukawa/imagesize_py @@ -8,6 +8,7 @@ Source0: https://files.pythonhosted.org/packages/source/i/imagesize/image Patch01: 0001-Added-return-types-to-docstrings-and-fixed-descripti.patch Patch02: 0002-Support-SVG-Image.patch Patch03: 0003-Pass-python_requires-argument-to-setuptools.patch +Patch04: 0004-Make-sure-.pyc-files-are-not-included-in-the-tarball.patch BuildArch: noarch BuildRequires: python2-setuptools python2-devel python2-pytest python3-setuptools BuildRequires: python3-devel python3-pytest @@ -51,6 +52,9 @@ py.test-3 %{python3_sitelib}/* %changelog +* Thu Dec 28 2023 zhangliangpengkun - 1.1.0-5 +- Make sure *.pyc files are not included in the tarball + * Thu Oct 23 2023 zhangliangpengkun - 1.1.0-4 - Pass python_requires argument to setuptools