14
0
Files
python-zc.buildout/python-zc.buildout.spec
Steve Kowalik d385de14a6 - Update to 4.1.10:
* Breaking changes:
    + Drop Python 3.8 support. Require 3.9 as minimum.
    + Add dependency on packaging.
    + Require setuptools >= 49.0.0.
    + Remove support for distribute, which was probably already broken.
    + Drop support for Python 2. Require Python 3.8 as minimum.
  * New features:
    + In the ls testing method, add keyword argument
      lowercase_and_sort_output.
  * Bug fixes:
    + Fix accidental changes to PYTHONPATH in os.environ when calling pip
      install.
    + Use the canonical name of a package when checking for a version
      constraint.
    + Get actual project name from dist.
    + Prevent getting package pages twice.
    + No longer recompile py files if we moved the dist. This code was never
      updated for Python 3.
    + Require at least packaging version 23.2.
    + Implement PEP 503: request normalized package url on PyPI servers.
    + Fix error adding minimum zc.buildout version as requirement.
    + Support Python 3.12 and 3.13. This only needed a few test fixes.
- Switch to pyproject macros.
- No more greedy globs in %files.
- Run at least a portion of the testsuite.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zc.buildout?expand=0&rev=47
2025-06-06 03:46:53 +00:00

84 lines
2.6 KiB
RPMSpec

#
# spec file for package python-zc.buildout
#
# Copyright (c) 2025 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-zc.buildout
Version: 4.1.10
Release: 0
Summary: System for managing development buildouts
License: ZPL-2.1
URL: https://pypi.python.org/pypi/zc.buildout
Source: https://github.com/buildout/buildout/archive/refs/tags/%{version}.tar.gz#/zc_buildout-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-packaging >= 23.2
Requires: python-pip
Requires: python-setuptools >= 49
Requires: python-wheel
Requires(post): update-alternatives
Requires(postun): update-alternatives
Provides: python-zc_buildout = %{version}
Obsoletes: python-zc_buildout < %{version}
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module manuel}
BuildRequires: %{python_module zope.testing}
# /SECTION
%python_subpackages
%description
System for managing development buildouts.
Buildout is a project designed to solve 2 problems:
* Application-centric assembly and deployment
* Repeatable assembly of programs from Python software distributions
%prep
%setup -q -n buildout-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/buildout
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python src/zc/buildout/tests/test_all.py
%post
%python_install_alternative buildout
%postun
%python_uninstall_alternative buildout
%files %{python_files}
%doc README.rst CHANGES.rst COPYRIGHT.txt
%license LICENSE.txt
%dir %{python_sitelib}/zc
%{python_sitelib}/zc/buildout
%{python_sitelib}/zc.buildout-%{version}-py*-nspkg.pth
%{python_sitelib}/zc[._]buildout-%{version}.dist-info
%python_alternative %{_bindir}/buildout
%changelog