14
0

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

- Update to 1.3.10
  * no upstream changelog or release notes
- Use PEP517 instead of flit generated distutils setup.py
- New version required by jsonschema

OBS-URL: https://build.opensuse.org/request/show/1006129
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pkgutil-resolve-name?expand=0&rev=4
This commit is contained in:
2022-09-26 15:12:44 +00:00
committed by Git OBS Bridge
parent fe74eb4508
commit 9fc2da5ab4
4 changed files with 21 additions and 10 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pkgutil-resolve-name
#
# 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
@@ -18,14 +18,15 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pkgutil-resolve-name
Version: 1.0.0
Version: 1.3.10
Release: 0
Summary: Backport of Python 3.9's pkgutil.resolve_name
License: Python-2.0 AND MIT
License: MIT AND Python-2.0
Group: Development/Languages/Python
URL: https://github.com/graingert/pkgutil-resolve-name
Source: https://files.pythonhosted.org/packages/source/p/pkgutil_resolve_name/pkgutil_resolve_name-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module flit-core}
BuildRequires: %{python_module pip}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
@@ -39,10 +40,10 @@ resolves a name to an object.
%setup -q -n pkgutil_resolve_name-%{version}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
# No tests provided in repo of backport
@@ -50,6 +51,8 @@ resolves a name to an object.
%files %{python_files}
%doc README.rst
%license LICENSE
%{python_sitelib}/*
%{python_sitelib}/pkgutil_resolve_name.py*
%pycache_only %{python_sitelib}/__pycache__/pkgutil_resolve_name*.pyc
%{python_sitelib}/pkgutil_resolve_name-%{version}*-info
%changelog