1
0

Accepting request 1000111 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/1000111
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jaraco.logging?expand=0&rev=4
This commit is contained in:
Dominique Leuenberger 2022-08-30 12:49:57 +00:00 committed by Git OBS Bridge
commit a7fea55380
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> 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 # 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 # 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
@ -16,24 +16,24 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-jaraco.logging Name: python-jaraco.logging
Version: 3.0.0 Version: 3.1.2
Release: 0 Release: 0
Summary: Tools to work with logging Summary: Tools to work with logging
License: MIT License: MIT
Group: Development/Languages/Python Group: Development/Languages/Python
URL: https://github.com/jaraco/jaraco.logging URL: https://github.com/jaraco/jaraco.logging
Source0: https://files.pythonhosted.org/packages/source/j/jaraco.logging/jaraco.logging-%{version}.tar.gz 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 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 setuptools}
BuildRequires: %{python_module tempora} BuildRequires: %{python_module tempora}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-jaraco.base >= 6.1
Requires: python-tempora Requires: python-tempora
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
@ -43,31 +43,28 @@ jaraco.logging Tools for working with logging.
%prep %prep
%setup -q -n jaraco.logging-%{version} %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 rm -rf jaraco.logging.egg-info
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%{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 %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} %files %{python_files}
%license LICENSE %license LICENSE
%doc docs/*.rst README.rst CHANGES.rst %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* %{python_sitelib}/jaraco/logging.py*
%dir %{python_sitelib}/jaraco
%pycache_only %dir %{python_sitelib}/jaraco/__pycache__
%pycache_only %{python_sitelib}/jaraco/__pycache__/logging*.py* %pycache_only %{python_sitelib}/jaraco/__pycache__/logging*.py*
%changelog %changelog