1
0

Accepting request 1000039 from home:bnavigator:branches:devel:languages:python

- Update to 3.1.2
  * Refresh packaging. Require Python 3.7 or later.
- v3.1.1: Rely on PEP 420 for namespace package.
- v3.1.0: Refresh packaging. Remove unneeded dependency on six.
- Switch to PEP517 and remove obsolete jaraco.base requirement

OBS-URL: https://build.opensuse.org/request/show/1000039
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jaraco.logging?expand=0&rev=7
This commit is contained in:
Markéta Machová 2022-08-29 19:41:28 +00:00 committed by Git OBS Bridge
parent 2a13a81fa6
commit e277f5378a
4 changed files with 29 additions and 23 deletions

View File

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

View File

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

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Mon Aug 29 13:18:26 UTC 2022 - Ben Greiner <code@bnavigator.de>
- Update to 3.1.2
* Refresh packaging. Require Python 3.7 or later.
- v3.1.1: Rely on PEP 420 for namespace package.
- v3.1.0: Refresh packaging. Remove unneeded dependency on six.
- Switch to PEP517 and remove obsolete jaraco.base requirement
-------------------------------------------------------------------
Mon Mar 9 14:19:58 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-jaraco.logging
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -16,24 +16,24 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-jaraco.logging
Version: 3.0.0
Version: 3.1.2
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 jaraco.base >= 6.1}
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools >= 56}
BuildRequires: %{python_module setuptools_scm >= 3.4.1}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module tempora}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-jaraco.base >= 6.1
Requires: python-tempora
BuildArch: noarch
%python_subpackages
@ -43,31 +43,28 @@ jaraco.logging Tools for working with logging.
%prep
%setup -q -n jaraco.logging-%{version}
sed -i 's/--flake8//' pytest.ini
sed -i 's/--black --cov//' pytest.ini
rm -rf jaraco.logging.egg-info
%build
%python_build
%pyproject_wheel
%install
%python_install
%{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}
}
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
# work around for gh#pytest-dev/pytest#3396 until gh#pytest-dev/pytest#10088 lands in a pytest release
touch jaraco/__init__.py
cp -r %{python3_sitelib}/jaraco/* jaraco/
%pytest --doctest-modules
%files %{python_files}
%license LICENSE
%doc docs/*.rst README.rst CHANGES.rst
%{python_sitelib}/jaraco.logging-%{version}-py*.egg-info
%{python_sitelib}/jaraco.logging-%{version}*-info
%{python_sitelib}/jaraco/logging.py*
%dir %{python_sitelib}/jaraco
%pycache_only %dir %{python_sitelib}/jaraco/__pycache__
%pycache_only %{python_sitelib}/jaraco/__pycache__/logging*.py*
%changelog