forked from pool/python-distlib
- Update to 0.3.9
* Merge #215: preload script wrappers on Windows to assist with a pip issue (thanks, Paul Moore). * Fix #220: Remove duplicated newline in shebang of windows launcher (thanks. A2uria). * Fix #230: Add handling for cross-compilation environments (thanks, Russell Keith-Magee). * Fix #224: Do not use the absolute path to cache wheel extensions (thanks, Stewart Miles). * Fix #222: Support mounting wheels that use extensions without an EXTENSIONS file (thanks, Stewart Miles). * Fix #225: Add support for wheel compatibility with the limited API (thanks, Stewart Miles). - Drop py313-interpreter-repr.patch, merged upstream OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-distlib?expand=0&rev=32
This commit is contained in:
66
python-distlib.spec
Normal file
66
python-distlib.spec
Normal file
@@ -0,0 +1,66 @@
|
||||
#
|
||||
# spec file for package python-distlib
|
||||
#
|
||||
# Copyright (c) 2024 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/
|
||||
#
|
||||
|
||||
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-distlib
|
||||
Version: 0.3.9
|
||||
Release: 0
|
||||
Summary: Distribution utilities
|
||||
License: Python-2.0
|
||||
URL: https://github.com/pypa/distlib
|
||||
Source: https://files.pythonhosted.org/packages/source/d/distlib/distlib-%{version}.tar.gz
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module testsuite}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
Python distribution utilities.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n distlib-%{version}
|
||||
|
||||
# This test module requires internet access and are unnecessary
|
||||
sed -i '/from test_locators import LocatorTestCase/d' tests/distlib_tests.py
|
||||
|
||||
# Unneeded on Linux
|
||||
rm distlib/*.exe
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
export LANG=en_US.UTF-8
|
||||
# This file and two tests need internet access
|
||||
%pytest --ignore tests/test_locators.py -k 'not (test_search or test_package_data)'
|
||||
|
||||
%files %{python_files}
|
||||
%doc CHANGES.rst README.rst
|
||||
%license LICENSE.txt
|
||||
%{python_sitelib}/distlib
|
||||
%{python_sitelib}/distlib-%{version}*-info
|
||||
|
||||
%changelog
|
||||
Reference in New Issue
Block a user