Accepting request 679681 from home:jayvdb:noflake8
- Add LICENSE - Remove bcond_with test, allowing tests suite to run - Compile manually due to switch to pkgutil namespace technique - Remove undesirable build dependencies pytest-flake8, pytest-sugar & collective.checkdocs - Add missing runtime dependencies on python-jaraco.base, six & tempora - Update from v1.5.2 to v2.0 * Switch to pkgutil namespace technique for the ``jaraco`` namespace. OBS-URL: https://build.opensuse.org/request/show/679681 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jaraco.logging?expand=0&rev=3
This commit is contained in:
parent
d19cf64d08
commit
90cf241237
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:23b10eb0d65afe042fad16eabdf5956bdc863e110c5cf3fa1b4bc59f3a7f37a5
|
||||
size 7135
|
3
jaraco.logging-2.0.tar.gz
Normal file
3
jaraco.logging-2.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:8f7dbf01b75e4d9bac479312b66a94c80d0a6d28db453f397e30687ca42168d1
|
||||
size 10356
|
@ -1,3 +1,15 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 26 07:01:40 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
|
||||
|
||||
- Add LICENSE
|
||||
- Remove bcond_with test, allowing tests suite to run
|
||||
- Compile manually due to switch to pkgutil namespace technique
|
||||
- Remove undesirable build dependencies pytest-flake8, pytest-sugar &
|
||||
collective.checkdocs
|
||||
- Add missing runtime dependencies on python-jaraco.base, six & tempora
|
||||
- Update from v1.5.2 to v2.0
|
||||
* Switch to pkgutil namespace technique for the ``jaraco`` namespace.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 23 11:15:48 UTC 2018 - dheidler@suse.de
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-jaraco.logging
|
||||
#
|
||||
# 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,30 @@
|
||||
# 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.logging
|
||||
Version: 1.5.2
|
||||
Version: 2.0
|
||||
Release: 0
|
||||
Summary: Tools to work with logging
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
Url: https://github.com/jaraco/jaraco.logging
|
||||
Source0: https://files.pythonhosted.org/packages/source/j/jaraco.logging/jaraco.logging-%{version}.tar.gz
|
||||
BuildRequires: %{python_module base}
|
||||
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 jaraco.base >= 6.1}
|
||||
BuildRequires: %{python_module pytest}
|
||||
%endif
|
||||
BuildRequires: %{python_module setuptools_scm}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module six}
|
||||
BuildRequires: %{python_module tempora}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-jaraco.base >= 6.1
|
||||
Requires: python-six
|
||||
Requires: python-tempora
|
||||
BuildArch: noarch
|
||||
|
||||
%python_subpackages
|
||||
@ -48,7 +45,7 @@ jaraco.logging Tools for working with logging.
|
||||
|
||||
%prep
|
||||
%setup -q -n jaraco.logging-%{version}
|
||||
sed -i -e "s/'pytest_runner'/'pytest-runner'/" setup.py
|
||||
sed -i 's/--flake8//' pytest.ini
|
||||
rm -rf jaraco.logging.egg-info
|
||||
|
||||
%build
|
||||
@ -56,15 +53,21 @@ rm -rf jaraco.logging.egg-info
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%{python_expand rm -r %{buildroot}%{$python_sitelib}/jaraco.logging-%{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.logging-%{version}-py*.egg-info
|
||||
%{python_sitelib}/jaraco/logging.py*
|
||||
|
Loading…
Reference in New Issue
Block a user