From e39e738cc0abf7691f61bedcd4df413a1da60e09 Mon Sep 17 00:00:00 2001 From: zhang-liang-pengkun Date: Fri, 29 Dec 2023 16:25:03 +0800 Subject: [PATCH] Fix Python 3.7 Travis testing Signed-off-by: zhang-liang-pengkun --- 0005-Fix-Python-3.7-Travis-testing.patch | 36 ++++++++++++++++++++++++ python-imagesize.spec | 6 +++- 2 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 0005-Fix-Python-3.7-Travis-testing.patch diff --git a/0005-Fix-Python-3.7-Travis-testing.patch b/0005-Fix-Python-3.7-Travis-testing.patch new file mode 100644 index 0000000..a1c3184 --- /dev/null +++ b/0005-Fix-Python-3.7-Travis-testing.patch @@ -0,0 +1,36 @@ +From 4b14779126b0a3fccd1f4843067dd472bdc421f4 Mon Sep 17 00:00:00 2001 +From: Jon Dufresne +Date: Sat, 15 Sep 2018 09:49:47 -0700 +Subject: [PATCH] Fix Python 3.7 Travis testing + +Use 'dist: xenial' in Travis to simplify configuration. Allows using +Python version 3.7 without sudo declarations. Travis officially added +support for Xenial on 2018-11-08. + +https://blog.travis-ci.com/2018-11-08-xenial-release +--- + .travis.yml | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/.travis.yml b/.travis.yml +index 63e8545..3da2af8 100644 +--- a/.travis.yml ++++ b/.travis.yml +@@ -1,3 +1,4 @@ ++dist: xenial + language: python + cache: pip + python: +@@ -6,7 +7,8 @@ python: + - "3.5" + - "3.6" + - "3.7" +- - "pypy" ++ - "pypy2.7-6.0" ++ - "pypy3.5-6.0" + install: + - pip install nose + script: nosetests +-- +2.39.0.windows.2 + diff --git a/python-imagesize.spec b/python-imagesize.spec index 915bb30..580ab3d 100644 --- a/python-imagesize.spec +++ b/python-imagesize.spec @@ -1,6 +1,6 @@ Name: python-imagesize Version: 1.1.0 -Release: 5 +Release: 6 Summary: This module analyzes image headers and returns image size. License: MIT URL: https://github.com/shibukawa/imagesize_py @@ -9,6 +9,7 @@ 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 +Patch05: 0005-Fix-Python-3.7-Travis-testing.patch BuildArch: noarch BuildRequires: python2-setuptools python2-devel python2-pytest python3-setuptools BuildRequires: python3-devel python3-pytest @@ -52,6 +53,9 @@ py.test-3 %{python3_sitelib}/* %changelog +* Fri Dec 29 2023 zhangliangpengkun - 1.1.0-6 +- Fix Python 3.7 Travis testing + * Thu Dec 28 2023 zhangliangpengkun - 1.1.0-5 - Make sure *.pyc files are not included in the tarball