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
|
Sat Jul 28 17:03:14 UTC 2018 - jengelh@inai.de
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-jaraco.stream
|
# 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
|
# 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,41 +12,38 @@
|
|||||||
# 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/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%define _name jaraco.stream
|
%define _name jaraco.stream
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
%bcond_without test
|
|
||||||
Name: python-jaraco.stream
|
Name: python-jaraco.stream
|
||||||
Version: 1.2
|
Version: 2.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Routines for dealing with data streams
|
Summary: Routines for dealing with data streams
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Url: https://github.com/jaraco/jaraco.stream
|
Url: https://github.com/jaraco/jaraco.stream
|
||||||
Source: https://files.pythonhosted.org/packages/source/j/%{_name}/%{_name}-%{version}.tar.gz
|
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_scm}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
# SECTION documentation requirements
|
|
||||||
BuildRequires: %{python_module Sphinx}
|
|
||||||
BuildRequires: %{python_module pylons-sphinx-themes}
|
|
||||||
# /SECTION
|
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
%if %{with test}
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module more-itertools}
|
BuildRequires: %{python_module more-itertools}
|
||||||
BuildRequires: %{python_module pytest-flake8}
|
|
||||||
BuildRequires: %{python_module pytest-runner}
|
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module rst.linker}
|
BuildRequires: %{python_module six}
|
||||||
%endif
|
# /SECTION
|
||||||
Requires: python-jaraco.base
|
# 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-more-itertools
|
||||||
|
Requires: python-six
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
@@ -65,6 +62,7 @@ This package contains documentation files for %{name}.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{_name}-%{version}
|
%setup -q -n %{_name}-%{version}
|
||||||
|
sed -i 's/--flake8//' pytest.ini
|
||||||
rm -rf jaraco.stream.egg-info
|
rm -rf jaraco.stream.egg-info
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@@ -73,26 +71,25 @@ rm -rf jaraco.stream.egg-info
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%python_install
|
||||||
# We aren't using the nspkg approach anymore
|
# We will package the namespace __init__.py separately
|
||||||
%{python_expand rm -r %{buildroot}%{$python_sitelib}/jaraco.stream-%{version}-py*-nspkg.pth
|
%{python_expand rm %{buildroot}%{$python_sitelib}/jaraco/__init__.py*
|
||||||
%fdupes %{buildroot}%{$python_sitelib}
|
rm -rf %{buildroot}%{$python_sitelib}/jaraco/__pycache__/
|
||||||
|
%fdupes -s %{buildroot}%{$python_sitelib}
|
||||||
}
|
}
|
||||||
|
|
||||||
%if %{with test}
|
|
||||||
%check
|
%check
|
||||||
%{python_expand cp jaraco/stream/somefile.json.gz build/lib/jaraco/stream/
|
%{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}
|
%files %{python_files}
|
||||||
%defattr(-,root,root)
|
%license LICENSE
|
||||||
%doc CHANGES.rst README.rst
|
%doc CHANGES.rst README.rst
|
||||||
%{python_sitelib}/jaraco.stream-%{version}-py*.egg-info
|
%{python_sitelib}/jaraco.stream-%{version}-py*.egg-info
|
||||||
%{python_sitelib}/jaraco/stream/
|
%{python_sitelib}/jaraco/stream/
|
||||||
|
|
||||||
%files -n %{name}-doc
|
%files -n %{name}-doc
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc build/sphinx/html
|
%doc build/sphinx/html
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user