forked from pool/python-jaraco.text
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
This commit is contained in:
committed by
Git OBS Bridge
parent
48bd42ac7a
commit
c32cc8fa82
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d1b29e833f317629a7c8aff3c03521e61e1df6da188d7fa2f698b0281e1a5a2b
|
||||
size 8790
|
||||
3
jaraco.text-2.0.tar.gz
Normal file
3
jaraco.text-2.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:3660678d395073626e72a455b24bacf07c064138a4cc6c1dae63e616f22478aa
|
||||
size 12017
|
||||
@@ -1,4 +1,19 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 26 07:00:39 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
|
||||
|
||||
- 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
|
||||
|
||||
@@ -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*
|
||||
|
||||
Reference in New Issue
Block a user