From c32cc8fa8292d20782d2b11a363cfcf76d2687a35eb3d865b41734e839bc8c14 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:25:40 +0000 Subject: [PATCH] Accepting request 679680 from home:jayvdb:noflake8 - Add LICENSE - Compile manually due to switch to pkgutil namespace technique - Add fdupes - Remove bcond_with test, allowing tests suite to run - Add missing build dependency jaraco.collections - Remove undesirable build dependencies pytest-flake8, pytest-sugar and collective.checkdocs - Add missing runtime dependencies six, jaraco.base, jaraco.collections and jaraco.functools - Update to v2.0 * Switch to pkgutil namespace technique for the ``jaraco`` namespace. OBS-URL: https://build.opensuse.org/request/show/679680 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jaraco.text?expand=0&rev=3 --- jaraco.text-1.10.1.tar.gz | 3 --- jaraco.text-2.0.tar.gz | 3 +++ python-jaraco.text.changes | 17 +++++++++++++- python-jaraco.text.spec | 45 +++++++++++++++++++++----------------- 4 files changed, 44 insertions(+), 24 deletions(-) delete mode 100644 jaraco.text-1.10.1.tar.gz create mode 100644 jaraco.text-2.0.tar.gz diff --git a/jaraco.text-1.10.1.tar.gz b/jaraco.text-1.10.1.tar.gz deleted file mode 100644 index 958e7eb..0000000 --- a/jaraco.text-1.10.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d1b29e833f317629a7c8aff3c03521e61e1df6da188d7fa2f698b0281e1a5a2b -size 8790 diff --git a/jaraco.text-2.0.tar.gz b/jaraco.text-2.0.tar.gz new file mode 100644 index 0000000..d07fde5 --- /dev/null +++ b/jaraco.text-2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3660678d395073626e72a455b24bacf07c064138a4cc6c1dae63e616f22478aa +size 12017 diff --git a/python-jaraco.text.changes b/python-jaraco.text.changes index 77540f9..64124a0 100644 --- a/python-jaraco.text.changes +++ b/python-jaraco.text.changes @@ -1,4 +1,19 @@ +------------------------------------------------------------------- +Tue Feb 26 07:00:39 UTC 2019 - John Vandenberg + +- Add LICENSE +- Compile manually due to switch to pkgutil namespace technique +- Add fdupes +- Remove bcond_with test, allowing tests suite to run +- Add missing build dependency jaraco.collections +- Remove undesirable build dependencies pytest-flake8, pytest-sugar and + collective.checkdocs +- Add missing runtime dependencies six, jaraco.base, jaraco.collections + and jaraco.functools +- Update to v2.0 + * Switch to pkgutil namespace technique for the ``jaraco`` namespace. + ------------------------------------------------------------------- Thu Aug 23 10:51:49 UTC 2018 - dheidler@suse.de -- Initial Package +- Initial Package for v1.10.1 diff --git a/python-jaraco.text.spec b/python-jaraco.text.spec index f3d04f1..48a7020 100644 --- a/python-jaraco.text.spec +++ b/python-jaraco.text.spec @@ -1,7 +1,7 @@ # # spec file for package python-jaraco.text # -# 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,33 +12,32 @@ # 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.text -Version: 1.10.1 +Version: 2.0 Release: 0 Summary: Tools to work with text License: MIT Group: Development/Languages/Python Url: https://github.com/jaraco/jaraco.text Source0: https://files.pythonhosted.org/packages/source/j/jaraco.text/jaraco.text-%{version}.tar.gz -BuildRequires: %{python_module base} -BuildRequires: %{python_module jaraco.base} +BuildRequires: %{python_module jaraco.base >= 6.1} +BuildRequires: %{python_module jaraco.collections} BuildRequires: %{python_module jaraco.functools} -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 pytest} -%endif +BuildRequires: %{python_module setuptools_scm} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros BuildArch: noarch +Requires: python-jaraco.base >= 6.1 +Requires: python-jaraco.collections +Requires: python-jaraco.functools +Requires: python-six %python_subpackages @@ -47,7 +46,7 @@ jaraco.text Tools for working with text. %prep %setup -q -n jaraco.text-%{version} -sed -i -e "s/'pytest_runner'/'pytest-runner'/" setup.py +sed -i 's/--flake8//' pytest.ini rm -rf jaraco.text.egg-info %build @@ -55,15 +54,21 @@ rm -rf jaraco.text.egg-info %install %python_install -%{python_expand rm -r %{buildroot}%{$python_sitelib}/jaraco.text-%{version}-py*-nspkg.pth} -%if %{with test} +%{python_expand rm -f %{buildroot}%{$python_sitelib}/jaraco/__init__.py* \ + %{buildroot}%{$python_sitelib}/jaraco/__pycache__/__init__.* +$python -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/jaraco/ +$python -O -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/jaraco/ +%fdupes %{buildroot}%{$python_sitelib} +} + %check -%python_expand py.test-%{$python_bin_suffix} -%endif +%{python_expand py.test-%{$python_bin_suffix} \ + --ignore=_build.python2 --ignore=_build.python3 +} %files %{python_files} -%defattr(-,root,root) +%license LICENSE %doc docs/*.rst README.rst CHANGES.rst %{python_sitelib}/jaraco.text-%{version}-py*.egg-info %{python_sitelib}/jaraco/text.py*