From c9991e6a73018ed8dd07dc7f5f0f9f8130d5f0d84e4793e0eea3c6f5d66545ef Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Wed, 8 Aug 2018 12:45:37 +0000 Subject: [PATCH] Accepting request 627536 from devel:languages:python - update to 1.5 - fixed dependencies * switch to setuptools_scm * avoid dict iteration (fixes issue on python3) * preserve __package__ - ths gets us better pep 302 compliance (forwarded request 627535 from mimi_vx) OBS-URL: https://build.opensuse.org/request/show/627536 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-apipkg?expand=0&rev=4 --- apipkg-1.4.tar.gz | 3 --- apipkg-1.5.tar.gz | 3 +++ python-apipkg.changes | 9 +++++++++ python-apipkg.spec | 27 ++++++++++++--------------- 4 files changed, 24 insertions(+), 18 deletions(-) delete mode 100644 apipkg-1.4.tar.gz create mode 100644 apipkg-1.5.tar.gz diff --git a/apipkg-1.4.tar.gz b/apipkg-1.4.tar.gz deleted file mode 100644 index 7448202..0000000 --- a/apipkg-1.4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2e38399dbe842891fe85392601aab8f40a8f4cc5a9053c326de35a1cc0297ac6 -size 11224 diff --git a/apipkg-1.5.tar.gz b/apipkg-1.5.tar.gz new file mode 100644 index 0000000..dba5c53 --- /dev/null +++ b/apipkg-1.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:37228cda29411948b422fae072f57e31d3396d2ee1c9783775980ee9c9990af6 +size 11186 diff --git a/python-apipkg.changes b/python-apipkg.changes index 0455971..3cadb96 100644 --- a/python-apipkg.changes +++ b/python-apipkg.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Sun Aug 5 17:06:32 UTC 2018 - mimi.vx@gmail.com + +- update to 1.5 +- fixed dependencies + * switch to setuptools_scm + * avoid dict iteration (fixes issue on python3) + * preserve __package__ - ths gets us better pep 302 compliance + ------------------------------------------------------------------- Thu Apr 27 10:37:20 UTC 2017 - aloisio@gmx.com diff --git a/python-apipkg.spec b/python-apipkg.spec index 25c8eef..cf7ad69 100644 --- a/python-apipkg.spec +++ b/python-apipkg.spec @@ -1,7 +1,7 @@ # # spec file for package python-apipkg # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 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 @@ -18,23 +18,19 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-apipkg -Version: 1.4 +Version: 1.5 Release: 0 Summary: Namespace control and lazy-import mechanism License: MIT Group: Development/Languages/Python -Url: http://bitbucket.org/hpk42/apipkg +URL: https://github.com/pytest-dev/apipkg/ Source: https://files.pythonhosted.org/packages/source/a/apipkg/apipkg-%{version}.tar.gz -BuildRequires: %{python_module devel} +BuildRequires: %{python_module base} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -BuildRequires: unzip -# Testsuite BuildRequires: -BuildRequires: %{python_module nose} -BuildRequires: %{python_module pytest} -BuildRequires: %{python_module py} -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %python_subpackages @@ -60,13 +56,14 @@ can copy paste the <100 Lines of code into your project. %python_expand %fdupes -s %{buildroot}%{$python_sitelib} %check -%python_expand py.test-%{$python_version} +export PYTHONPATH="${PWD}/src" +%python_exec -mpytest %files %{python_files} -%defattr(-,root,root,-) -%doc README.txt LICENSE CHANGELOG -%pycache_only %{python_sitelib}/__pycache__ -%{python_sitelib}/apipkg.py* +%license LICENSE +%doc README.rst CHANGELOG +%dir %{python_sitelib}/apipkg +%{python_sitelib}/apipkg/* %{python_sitelib}/apipkg-%{version}-py%{python_version}.egg-info %changelog