From 24a4e39bd02a9d46e1ee94d71f0482d52101cc88 Mon Sep 17 00:00:00 2001 From: zhang-liang-pengkun Date: Thu, 26 Oct 2023 15:29:11 +0800 Subject: [PATCH] We support 3.4 Signed-off-by: zhang-liang-pengkun --- 0001-We-support-3.4.patch | 55 +++++++++++++++++++++++++++++++++++++++ python-pretend.spec | 6 ++++- 2 files changed, 60 insertions(+), 1 deletion(-) create mode 100644 0001-We-support-3.4.patch diff --git a/0001-We-support-3.4.patch b/0001-We-support-3.4.patch new file mode 100644 index 0000000..1140e1d --- /dev/null +++ b/0001-We-support-3.4.patch @@ -0,0 +1,55 @@ +From 62d3f16ffab96d4b8fcec81b2e7e7660711bf613 Mon Sep 17 00:00:00 2001 +From: Alex Gaynor +Date: Mon, 30 Jun 2014 16:06:23 -0700 +Subject: [PATCH] We support 3.4 + +--- + .travis.yml | 1 + + setup.py | 1 + + tox.ini | 5 ++++- + 3 files changed, 6 insertions(+), 1 deletion(-) + +diff --git a/.travis.yml b/.travis.yml +index 888e189..b9036f8 100644 +--- a/.travis.yml ++++ b/.travis.yml +@@ -5,6 +5,7 @@ env: + - TOX_ENV=py27 + - TOX_ENV=py32 + - TOX_ENV=py33 ++ - TOX_ENV=py34 + - TOX_ENV=pypy + - TOX_ENV=pep8 + +diff --git a/setup.py b/setup.py +index 1fc2ee4..b577d25 100644 +--- a/setup.py ++++ b/setup.py +@@ -24,5 +24,6 @@ setup( + "Programming Language :: Python :: 2.7", + "Programming Language :: Python :: 3.2", + "Programming Language :: Python :: 3.3", ++ "Programming Language :: Python :: 3.4", + ] + ) +diff --git a/tox.ini b/tox.ini +index c6d1cd6..5266645 100644 +--- a/tox.ini ++++ b/tox.ini +@@ -1,5 +1,5 @@ + [tox] +-envlist = py26,py27,pypy,py32,py33,pep8 ++envlist = py26,py27,pypy,py32,py33,py34,pep8 + + [testenv] + deps = pytest +@@ -8,3 +8,6 @@ commands = py.test + [testenv:pep8] + deps = flake8 + commands = flake8 pretend.py ++ ++[flake8] ++exclude = .tox/ +-- +2.39.0.windows.2 + diff --git a/python-pretend.spec b/python-pretend.spec index 2ec7087..24f39e2 100644 --- a/python-pretend.spec +++ b/python-pretend.spec @@ -2,11 +2,12 @@ Name: python-pretend Version: 1.0.8 -Release: 15 +Release: 16 Summary: A library to make stubbing with Python easier License: BSD URL: https://github.com/alex/pretend Source0: https://pypi.python.org/packages/source/p/pretend/pretend-%{version}.tar.gz +patch0001: 0001-We-support-3.4.patch BuildArch: noarch BuildRequires: python2-devel python2-setuptools @@ -71,5 +72,8 @@ Pretend is a library to make stubbing with Python easier. %endif %changelog +* Thu Oct 26 2023 zhangliangpengkun - 1.0.8-16 +- We support 3.4 + * Mon Dec 9 2019 openEuler Buildteam - 1.0.8-15 - Package init -- Gitee