From 8dee1d64d0316d87ca6cde9da549a4d91b48a74225a7e157d7b86e1bdd798719 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 27 Feb 2019 08:27:01 +0000 Subject: [PATCH] Accepting request 679685 from home:jayvdb:noflake8 - Remove bcond_with test, allowing tests suite to run - Remove undesirable build dependencies pytest-flake8, pytest-sugar & collective.checkdocs - Add missing runtime dependency on python-jaraco.base - Add explicit build dependency on python-six - Compile manually due to switch to pkgutil namespace technique - Add LICENSE - Update to v2.0 * Switch to pkgutil namespace technique for the ``jaraco`` namespace. OBS-URL: https://build.opensuse.org/request/show/679685 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jaraco.classes?expand=0&rev=3 --- jaraco.classes-2.0.tar.gz | 3 +++ python-jaraco.classes.changes | 15 ++++++++++++- python-jaraco.classes.spec | 42 +++++++++++++++++------------------ 3 files changed, 37 insertions(+), 23 deletions(-) create mode 100644 jaraco.classes-2.0.tar.gz diff --git a/jaraco.classes-2.0.tar.gz b/jaraco.classes-2.0.tar.gz new file mode 100644 index 0000000..bcae0bd --- /dev/null +++ b/jaraco.classes-2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dcc2c4a8ca4b344cdbf2e1be7124a5c4f192574cdbb453b62350ae8240a2caf5 +size 9911 diff --git a/python-jaraco.classes.changes b/python-jaraco.classes.changes index 4169e8b..6391e0c 100644 --- a/python-jaraco.classes.changes +++ b/python-jaraco.classes.changes @@ -1,4 +1,17 @@ +------------------------------------------------------------------- +Wed Feb 27 01:05:26 UTC 2019 - John Vandenberg + +- Remove bcond_with test, allowing tests suite to run +- Remove undesirable build dependencies pytest-flake8, pytest-sugar & + collective.checkdocs +- Add missing runtime dependency on python-jaraco.base +- Add explicit build dependency on python-six +- Compile manually due to switch to pkgutil namespace technique +- Add LICENSE +- Update to v2.0 + * Switch to pkgutil namespace technique for the ``jaraco`` namespace. + ------------------------------------------------------------------- Thu Aug 23 11:19:26 UTC 2018 - dheidler@suse.de -- Initial Package +- Initial Package for v1.5 diff --git a/python-jaraco.classes.spec b/python-jaraco.classes.spec index 8474761..45dc7be 100644 --- a/python-jaraco.classes.spec +++ b/python-jaraco.classes.spec @@ -1,7 +1,7 @@ # # spec file for package python-jaraco.classes # -# 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,31 +12,27 @@ # 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-%{**}} -%bcond_with test Name: python-jaraco.classes -Version: 1.5 +Version: 2.0 Release: 0 Summary: Tools to work with classes License: MIT Group: Development/Languages/Python Url: https://github.com/jaraco/jaraco.classes Source0: https://files.pythonhosted.org/packages/source/j/jaraco.classes/jaraco.classes-%{version}.tar.gz -BuildRequires: %{python_module base} -BuildRequires: %{python_module jaraco.base} -BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module setuptools_scm} -BuildRequires: python-rpm-macros -%if %{with test} -BuildRequires: %{python_module pytest-sugar} -BuildRequires: %{python_module collective.checkdocs} -BuildRequires: %{python_module pytest-flake8} +BuildRequires: %{python_module jaraco.base >= 6.1} BuildRequires: %{python_module pytest} -%endif +BuildRequires: %{python_module setuptools_scm} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module six} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-jaraco.base >= 6.1 Requires: python-six BuildArch: noarch @@ -47,26 +43,28 @@ jaraco.classes Tools for working with classes. %prep %setup -q -n jaraco.classes-%{version} -sed -i -e "s/'pytest_runner'/'pytest-runner'/" setup.py -rm -rf jaraco.classes.egg-info +sed -i 's/--flake8//' pytest.ini %build %python_build %install %python_install -%{python_expand rm -r %{buildroot}%{$python_sitelib}/jaraco.classes-%{version}-py*-nspkg.pth} +# We will package the namespace __init__.py separately +%{python_expand rm %{buildroot}%{$python_sitelib}/jaraco/__init__.py* +rm -rf %{buildroot}%{$python_sitelib}/jaraco/__pycache__/ +%fdupes -s %{buildroot}%{$python_sitelib} +} -%if %{with test} %check -%python_expand py.test-%{$python_bin_suffix} -%endif +%{python_expand py.test-%{$python_bin_suffix} \ + --ignore=_build.python3 --ignore _build.python2 +} %files %{python_files} -%defattr(-,root,root) +%license LICENSE %doc docs/*.rst README.rst CHANGES.rst %{python_sitelib}/jaraco.classes-%{version}-py*.egg-info %{python_sitelib}/jaraco/classes -%doc LICENSE %changelog