Projects
home:pandora:RobinOS23
python-setuptools
_service:download_src_package:python-setuptools...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:download_src_package:python-setuptools.spec of Package python-setuptools
%bcond_with tests %global srcname setuptools %global python_wheel_name %{srcname}-%{version}-py3-none-any.whl Name: python-setuptools Version: 60.9.3 Release: 1%{?dist} Summary: Easily build and distribute Python packages License: MIT and ASL 2.0 and (BSD or ASL 2.0) and Python URL: https://pypi.python.org/pypi/%{srcname} Source0: https://files.pythonhosted.org/packages/14/74/54890935244ce053abcc4fa01ef4982a84743a8d128d4cf5eae56e2d156c/%{srcname}-%{version}.tar.gz Patch0: Remove-optional-or-unpackaged-test-deps.patch Patch1: Isolate-spawned-processes-by-unsetting-PYTHONPATH.patch Patch2: Point-to-a-custom-pre-built-distribution-of-setuptools.patch BuildArch: noarch BuildRequires: python3-devel BuildRequires: pyproject-rpm-macros >= 0-44 BuildRequires: python%{python3_pkgversion}-setuptools BuildRequires: python3-rpm-generators >= 11-8 %if %{with tests} BuildRequires: gcc BuildRequires: python%{python3_pkgversion}-pytest %endif %description Setuptools is a collection of enhancements to the Python distutils that allow you to more easily build and distribute Python packages, especially ones that have dependencies on other packages. This package also contains the runtime components of setuptools, necessary to execute the software that requires pkg_resources. %global bundled %{expand: Provides: bundled(python%{python3_pkgversion}dist(appdirs)) = 1.4.3 Provides: bundled(python%{python3_pkgversion}dist(importlib-metadata)) = 4.11.1 Provides: bundled(python%{python3_pkgversion}dist(importlib-resources)) = 5.4 Provides: bundled(python%{python3_pkgversion}dist(jaraco-text)) = 3.7 Provides: bundled(python%{python3_pkgversion}dist(more-itertools)) = 8.8 Provides: bundled(python%{python3_pkgversion}dist(ordered-set)) = 3.1.1 Provides: bundled(python%{python3_pkgversion}dist(packaging)) = 21.3 Provides: bundled(python%{python3_pkgversion}dist(pyparsing)) = 2.2.1 Provides: bundled(python%{python3_pkgversion}dist(typing-extensions)) = 4.0.1 Provides: bundled(python%{python3_pkgversion}dist(zipp)) = 3.7 } %package -n python%{python3_pkgversion}-setuptools Summary: Easily build and distribute Python 3 packages %{bundled} %py_provides python%{python3_pkgversion}-pkg_resources %py_provides python%{python3_pkgversion}-pkg-resources %description -n python%{python3_pkgversion}-setuptools Setuptools is a collection of enhancements to the Python 3 distutils that allow you to more easily build and distribute Python 3 packages, especially ones that have dependencies on other packages. This package also contains the runtime components of setuptools, necessary to execute the software that requires pkg_resources. %package -n %{python_wheel_pkg_prefix}-%{srcname}-wheel Summary: The setuptools wheel %{bundled} %description -n %{python_wheel_pkg_prefix}-%{srcname}-wheel A Python wheel of setuptools to use with venv. %prep %autosetup -p1 -n %{srcname}-%{version} rm -r %{srcname}.egg-info find setuptools pkg_resources -name \*.py | xargs sed -i -e '1 {/^#!\//d}' rm -f setuptools/*.exe rm -r docs/conf.py %generate_buildrequires %pyproject_buildrequires -r %{?with_tests:-x testing} %build %pyproject_wheel %install %pyproject_install %pyproject_save_files setuptools pkg_resources _distutils_hack rm -rf %{buildroot}%{python3_sitelib}/pkg_resources/tests/ sed -i '/\/pkg_resources\/tests\b/d' %{pyproject_files} mkdir -p %{buildroot}%{python_wheel_dir} install -p %{_pyproject_wheeldir}/%{python_wheel_name} -t %{buildroot}%{python_wheel_dir} %if %{with tests} %check cat pkg_resources/_vendor/vendored.txt setuptools/_vendor/vendored.txt > allvendor.txt %{_rpmconfigdir}/pythonbundles.py allvendor.txt --namespace 'python%{python3_pkgversion}dist' --compare-with '%{bundled}' test $(du %{_pyproject_wheeldir}/%{python_wheel_name} | cut -f1) -lt 800 test ! -d %{buildroot}%{python3_sitelib}/pkg_resources/tests test ! -d %{buildroot}%{python3_sitelib}/setuptools/tests rm pyproject.toml PRE_BUILT_SETUPTOOLS_WHEEL=%{_pyproject_wheeldir}/%{python_wheel_name} \ PYTHONPATH=$(pwd) %pytest \ --ignore=setuptools/tests/test_integration.py \ --ignore=setuptools/tests/integration/ \ --ignore=setuptools/tests/test_develop.py \ -k "not test_pip_upgrade_from_source" %endif # with tests %files -n python%{python3_pkgversion}-setuptools %{?!with_bootstrap:-f %{pyproject_files}} %license LICENSE %doc docs/* CHANGES.rst README.rst %{python3_sitelib}/distutils-precedence.pth %files -n %{python_wheel_pkg_prefix}-%{srcname}-wheel %license LICENSE # we own the dir for simplicity %dir %{python_wheel_dir}/ %{python_wheel_dir}/%{python_wheel_name} %changelog * Wed Mar 16 2022 forrest_ly <flin@linux.alibaba.com> - 60.9.3-1 - Init for Anolis OS 23
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2