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
This commit is contained in:
Tomáš Chvátal 2019-02-27 08:27:01 +00:00 committed by Git OBS Bridge
parent 2e2ec740c9
commit 8dee1d64d0
3 changed files with 37 additions and 23 deletions

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:dcc2c4a8ca4b344cdbf2e1be7124a5c4f192574cdbb453b62350ae8240a2caf5
size 9911

View File

@ -1,4 +1,17 @@
-------------------------------------------------------------------
Wed Feb 27 01:05:26 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
- 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 Thu Aug 23 11:19:26 UTC 2018 - dheidler@suse.de
- Initial Package - Initial Package for v1.5

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-jaraco.classes # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # 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) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # 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-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_with test
Name: python-jaraco.classes Name: python-jaraco.classes
Version: 1.5 Version: 2.0
Release: 0 Release: 0
Summary: Tools to work with classes Summary: Tools to work with classes
License: MIT License: MIT
Group: Development/Languages/Python Group: Development/Languages/Python
Url: https://github.com/jaraco/jaraco.classes Url: https://github.com/jaraco/jaraco.classes
Source0: https://files.pythonhosted.org/packages/source/j/jaraco.classes/jaraco.classes-%{version}.tar.gz Source0: https://files.pythonhosted.org/packages/source/j/jaraco.classes/jaraco.classes-%{version}.tar.gz
BuildRequires: %{python_module base} BuildRequires: %{python_module jaraco.base >= 6.1}
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 pytest} 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 Requires: python-six
BuildArch: noarch BuildArch: noarch
@ -47,26 +43,28 @@ jaraco.classes Tools for working with classes.
%prep %prep
%setup -q -n jaraco.classes-%{version} %setup -q -n jaraco.classes-%{version}
sed -i -e "s/'pytest_runner'/'pytest-runner'/" setup.py sed -i 's/--flake8//' pytest.ini
rm -rf jaraco.classes.egg-info
%build %build
%python_build %python_build
%install %install
%python_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 %check
%python_expand py.test-%{$python_bin_suffix} %{python_expand py.test-%{$python_bin_suffix} \
%endif --ignore=_build.python3 --ignore _build.python2
}
%files %{python_files} %files %{python_files}
%defattr(-,root,root) %license LICENSE
%doc docs/*.rst README.rst CHANGES.rst %doc docs/*.rst README.rst CHANGES.rst
%{python_sitelib}/jaraco.classes-%{version}-py*.egg-info %{python_sitelib}/jaraco.classes-%{version}-py*.egg-info
%{python_sitelib}/jaraco/classes %{python_sitelib}/jaraco/classes
%doc LICENSE
%changelog %changelog