forked from pool/python-jaraco.stream
Accepting request 679679 from home:jayvdb:noflake8
- Add LICENSE - Compile manually due to switch to pkgutil namespace technique - Remove bcond_with test, allowing tests suite to run - Remove undesirable build dependencies pytest-flake8 and pytest-runner - Add missing runtime dependency on six - Add explicit build dependency on python-six - Update to v2.0 * Switch to pkgutil namespace technique for the ``jaraco`` namespace. OBS-URL: https://build.opensuse.org/request/show/679679 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jaraco.stream?expand=0&rev=9
This commit is contained in:
committed by
Git OBS Bridge
parent
5f1e57898c
commit
a784158d01
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:2b56514708224864d93b8a6e916c02ae7ae4ce822f05946704719bb294971a1b
|
||||
size 7696
|
||||
3
jaraco.stream-2.0.tar.gz
Normal file
3
jaraco.stream-2.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c2e9d507d8cf04a3ff916b57eaf46bacb8a9f8895b55ead853de9c47b8f5daa4
|
||||
size 11061
|
||||
@@ -1,3 +1,15 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 26 08:52:40 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
|
||||
|
||||
- Add LICENSE
|
||||
- Compile manually due to switch to pkgutil namespace technique
|
||||
- Remove bcond_with test, allowing tests suite to run
|
||||
- Remove undesirable build dependencies pytest-flake8 and pytest-runner
|
||||
- Add missing runtime dependency on six
|
||||
- Add explicit build dependency on python-six
|
||||
- Update to v2.0
|
||||
* Switch to pkgutil namespace technique for the ``jaraco`` namespace.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jul 28 17:03:14 UTC 2018 - jengelh@inai.de
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-jaraco.stream
|
||||
#
|
||||
# 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,41 +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/
|
||||
#
|
||||
|
||||
|
||||
%define _name jaraco.stream
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%bcond_without test
|
||||
Name: python-jaraco.stream
|
||||
Version: 1.2
|
||||
Version: 2.0
|
||||
Release: 0
|
||||
Summary: Routines for dealing with data streams
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
Url: https://github.com/jaraco/jaraco.stream
|
||||
Source: https://files.pythonhosted.org/packages/source/j/%{_name}/%{_name}-%{version}.tar.gz
|
||||
BuildRequires: %{python_module base}
|
||||
BuildRequires: %{python_module jaraco.base}
|
||||
BuildRequires: %{python_module jaraco.packaging}
|
||||
BuildRequires: %{python_module setuptools_scm}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
# SECTION documentation requirements
|
||||
BuildRequires: %{python_module Sphinx}
|
||||
BuildRequires: %{python_module pylons-sphinx-themes}
|
||||
# /SECTION
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
%if %{with test}
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module more-itertools}
|
||||
BuildRequires: %{python_module pytest-flake8}
|
||||
BuildRequires: %{python_module pytest-runner}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module rst.linker}
|
||||
%endif
|
||||
Requires: python-jaraco.base
|
||||
BuildRequires: %{python_module six}
|
||||
# /SECTION
|
||||
# SECTION documentation requirements
|
||||
BuildRequires: %{python_module Sphinx}
|
||||
BuildRequires: %{python_module jaraco.packaging >= 6.1}
|
||||
BuildRequires: %{python_module pylons-sphinx-themes}
|
||||
BuildRequires: %{python_module rst.linker >= 1.9}
|
||||
# /SECTION
|
||||
Requires: python-jaraco.base >= 6.1
|
||||
Requires: python-more-itertools
|
||||
Requires: python-six
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
@@ -65,6 +62,7 @@ This package contains documentation files for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{_name}-%{version}
|
||||
sed -i 's/--flake8//' pytest.ini
|
||||
rm -rf jaraco.stream.egg-info
|
||||
|
||||
%build
|
||||
@@ -73,26 +71,25 @@ rm -rf jaraco.stream.egg-info
|
||||
|
||||
%install
|
||||
%python_install
|
||||
# We aren't using the nspkg approach anymore
|
||||
%{python_expand rm -r %{buildroot}%{$python_sitelib}/jaraco.stream-%{version}-py*-nspkg.pth
|
||||
%fdupes %{buildroot}%{$python_sitelib}
|
||||
# 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 cp jaraco/stream/somefile.json.gz build/lib/jaraco/stream/
|
||||
py.test-%{$python_bin_suffix} build/lib/jaraco
|
||||
py.test-%{$python_bin_suffix} \
|
||||
--ignore=_build.python3 --ignore _build.python2
|
||||
}
|
||||
%endif
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root)
|
||||
%license LICENSE
|
||||
%doc CHANGES.rst README.rst
|
||||
%{python_sitelib}/jaraco.stream-%{version}-py*.egg-info
|
||||
%{python_sitelib}/jaraco/stream/
|
||||
|
||||
%files -n %{name}-doc
|
||||
%defattr(-,root,root,-)
|
||||
%doc build/sphinx/html
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user