14
0
Files
python-importlib-metadata/python-importlib-metadata.spec
Dirk Mueller 09742f4d48 - update to 7.0.0:
* Removed EntryPoint access by numeric index (tuple behavior).
  * Added ``Distribution.origin`` supplying the
    ``direct_url.json`` in a ``SimpleNamespace``. (#404)
  * Added diagnose script. (#461)
  * Added EntryPoints.__repr__ (#473)
- Remove unneeded BuildRequires on pep517.
- Update to versino 5.1.0
  * #396: Added compatibility for PathDistributions originating from Python 3.8 and 3.9.
- update to 4.12.0:
  - #361: Avoid potential REDoS in ``EntryPoint.pattern``.
  * #353: Fixed discovery of distributions when path is empty.
- Update to v4.8.1
  * #334: Correct SimplePath protocol to match pathlib protocol
  * bpo-44784: Avoid errors in test suite when DeprecationWarnings
  * #327: Deprecation warnings now honor call stack variance on
  * #326: Performance tests now rely on pytest-perf. To disable
    these tests, which require network access and a git checkout,
    entry_points (EntryPoints) to honor expectations in older
    implementations and issuing deprecation warnings for these
    () and other list-based mutation operations. Avoid deprecation
  * EntryPoints results once again allow for access by index. To
    avoid deprecation warnings, cast the result to a Sequence
  * #320: Fix issue where normalized name for eggs was incorrectly
  * #317: De-duplication of distributions no longer requires
    loading the full metadata for PathDistribution objects, entry
  * #315: Add SimplePath protocol for interface clarity in
  * #304: PackageMetadata as returned by metadata() and
    Distribution.metadata() now provides normalized metadata
  * If a long description is provided in the payload of the RFC

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-importlib-metadata?expand=0&rev=46
2023-12-07 22:50:04 +00:00

93 lines
2.8 KiB
RPMSpec

#
# spec file
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define psuffix -test
%bcond_without test
%else
%define psuffix %{nil}
%bcond_with test
%endif
%{?!python_module:%define python_module() python3-%{**}}
%define skip_python2 1
%{?sle15_python_module_pythons}
Name: python-importlib-metadata%{psuffix}
Version: 7.0.0
Release: 0
Summary: Read metadata from Python packages
License: Apache-2.0
URL: http://importlib-metadata.readthedocs.io/
Source: https://files.pythonhosted.org/packages/source/i/importlib_metadata/importlib_metadata-%{version}.tar.gz
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module tomli}
BuildRequires: %{python_module wheel}
BuildRequires: %{python_module zipp >= 0.5}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-zipp >= 0.5
%if %{python_version_nodots} < 38
Requires: python-typing_extensions >= 3.6.4
%endif
Provides: python-importlib_metadata = %{version}
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module importlib_resources >= 1.3 if %python-base < 3.9}
BuildRequires: %{python_module packaging}
BuildRequires: %{python_module pyfakefs}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module testsuite}
BuildRequires: %{python_module typing_extensions >= 3.6.4 if %python-base < 3.8}
%endif
%python_subpackages
%description
This package supplies third-party access to the functionality of
importlib.metadata including improvements added to subsequent Python versions.
%prep
%autosetup -p1 -n importlib_metadata-%{version}
%build
%pyproject_wheel
%install
%if !%{with test}
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
%check
%if %{with test}
# no pytest_perf available
%pytest --ignore exercises.py
%endif
%if !%{with test}
%files %{python_files}
%doc README.rst
%license LICENSE
%{python_sitelib}/importlib_metadata
%{python_sitelib}/importlib_metadata-%{version}*-info
%endif
%changelog