From 9269923b2dd949b2ee0b42b5933d574c38d2d9c04f89f1a176ccac013e40f402 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Thu, 20 Jun 2019 15:48:14 +0000 Subject: [PATCH] Accepting request 711136 from home:mcalabkova:branches:devel:languages:python - update to 1.4.1 * Fixed __mod__ for the slots backend. * Dropped support for Python 2.6 and 3.3. * Fixed wheels being built with -coverage cflags. No more issues about bogus cext.gcda files. * Removed useless C file from wheels. * Changed setup.py to use setuptools-scm. - launch tests using multibuild OBS-URL: https://build.opensuse.org/request/show/711136 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lazy-object-proxy?expand=0&rev=7 --- _multibuild | 3 +++ lazy-object-proxy-1.3.1.tar.gz | 3 --- lazy-object-proxy-1.4.1.tar.gz | 3 +++ python-lazy-object-proxy.changes | 12 +++++++++ python-lazy-object-proxy.spec | 44 ++++++++++++++++++++++++-------- 5 files changed, 51 insertions(+), 14 deletions(-) create mode 100644 _multibuild delete mode 100644 lazy-object-proxy-1.3.1.tar.gz create mode 100644 lazy-object-proxy-1.4.1.tar.gz diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..fcc7b97 --- /dev/null +++ b/_multibuild @@ -0,0 +1,3 @@ + + test + diff --git a/lazy-object-proxy-1.3.1.tar.gz b/lazy-object-proxy-1.3.1.tar.gz deleted file mode 100644 index 7a94f1e..0000000 --- a/lazy-object-proxy-1.3.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:eb91be369f945f10d3a49f5f9be8b3d0b93a4c2be8f8a5b83b0571b8123e0a7a -size 32237 diff --git a/lazy-object-proxy-1.4.1.tar.gz b/lazy-object-proxy-1.4.1.tar.gz new file mode 100644 index 0000000..89c3c80 --- /dev/null +++ b/lazy-object-proxy-1.4.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4ba73f6089cd9b9478bc0a4fa807b47dbdb8fad1d8f31a0f0a5dbf26a4527a71 +size 34785 diff --git a/python-lazy-object-proxy.changes b/python-lazy-object-proxy.changes index 4b4b0db..3c3298c 100644 --- a/python-lazy-object-proxy.changes +++ b/python-lazy-object-proxy.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +Thu Jun 20 12:53:22 UTC 2019 - Marketa Calabkova + +- update to 1.4.1 + * Fixed __mod__ for the slots backend. + * Dropped support for Python 2.6 and 3.3. + * Fixed wheels being built with -coverage cflags. No more issues + about bogus cext.gcda files. + * Removed useless C file from wheels. + * Changed setup.py to use setuptools-scm. +- launch tests using multibuild + ------------------------------------------------------------------- Mon Jul 30 15:55:47 UTC 2018 - sean.marlow@suse.com diff --git a/python-lazy-object-proxy.spec b/python-lazy-object-proxy.spec index defc9ac..2fd411c 100644 --- a/python-lazy-object-proxy.spec +++ b/python-lazy-object-proxy.spec @@ -1,7 +1,7 @@ # # spec file for package python-lazy-object-proxy # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,25 +12,38 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define oldpython python -Name: python-lazy-object-proxy -Version: 1.3.1 +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "test" +%define psuffix -test +%bcond_without test +%else +%define psuffix %{nil} +%bcond_with test +%endif +Name: python-lazy-object-proxy%{psuffix} +Version: 1.4.1 Release: 0 Summary: Rebuild a new abstract syntax tree from Python's ast License: BSD-2-Clause Group: Development/Libraries/Python -Url: https://github.com/ionelmc/python-lazy-object-proxy +URL: https://github.com/ionelmc/python-lazy-object-proxy Source: https://files.pythonhosted.org/packages/source/l/lazy-object-proxy/lazy-object-proxy-%{version}.tar.gz -BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module six} +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools_scm >= 3.3.1} BuildRequires: python-rpm-macros -Requires: python-six -BuildRoot: %{_tmppath}/%{name}-%{version}-build +%if %{with test} +BuildRequires: %{python_module lazy-object-proxy = %{version}} +BuildRequires: %{python_module pytest-benchmark} +BuildRequires: %{python_module pytest-cov} +BuildRequires: %{python_module pytest-travis-fold} +BuildRequires: %{python_module pytest} +%endif %ifpython2 Obsoletes: %{oldpython}-lazy_object_proxy < %{version} Provides: %{oldpython}-lazy_object_proxy = %{version} @@ -39,7 +52,6 @@ Provides: %{oldpython}-lazy_object_proxy = %{version} Obsoletes: python3-lazy_object_proxy < %{version}-%{release} Provides: python3-lazy_object_proxy = %{version}-%{release} %endif - %python_subpackages %description @@ -50,16 +62,26 @@ from Python's ast %setup -q -n lazy-object-proxy-%{version} %build +%if !%{with test} export CFLAGS="%{optflags} -fno-strict-aliasing" %python_build +%endif %install +%if !%{with test} %python_install +%endif +%if %{with test} +%check +%pytest tests +%endif + +%if !%{with test} %files %{python_files} -%defattr(-,root,root,-) %doc AUTHORS.rst CHANGELOG.rst CONTRIBUTING.rst README.rst docs %license LICENSE %{python_sitearch}/* +%endif %changelog