From e57eb512215deecf9260f1320a323dcb4ccf7853 Mon Sep 17 00:00:00 2001 From: cunshunxia Date: Mon, 25 Sep 2023 07:23:42 +0000 Subject: [PATCH] Upgrade to version 4.10.0 --- python-tox.spec | 26 ++++++++++++++++---------- sources | 2 +- 2 files changed, 17 insertions(+), 11 deletions(-) diff --git a/python-tox.spec b/python-tox.spec index 15b19b0..97faa12 100644 --- a/python-tox.spec +++ b/python-tox.spec @@ -1,22 +1,21 @@ %bcond_with tests -# for extensions installed with pip, unset -s on python shebang %global py3_shebang_flags %nil Summary: Virtualenv-based automation of test activities Name: python-tox -Version: 3.24.5 -Release: 5%{?dist} +Version: 4.10.0 +Release: 1%{?dist} License: MIT URL: https://tox.readthedocs.io/ Source0: %{pypi_source tox} + BuildRequires: python3-devel pyproject-rpm-macros %if %{with tests} -BuildRequires: /usr/bin/gcc /usr/bin/git /usr/bin/pip -BuildRequires: /usr/bin/poetry /usr/bin/pytest /usr/bin/python -BuildRequires: libffi-devel -# use xdist to speed up the %%check, tests only work if the tested tox is installed +BuildRequires: /usr/bin/gcc /usr/bin/git /usr/bin/pip python3-platformdirs python3-virtualenv +BuildRequires: /usr/bin/poetry /usr/bin/pytest /usr/bin/python python3-chardet python3-colorama python3-filelock +BuildRequires: libffi-devel python3-hatchling python3-hatch-vcs python3-cachetools BuildRequires: python3-pytest-xdist tox = %{version}-%{release} %endif @@ -34,7 +33,6 @@ This package implements a generic virtualenv management and test command line to Summary: %{summary} Provides: python-tox = %{version}-%{release} Provides: python3-tox = %{version}-%{release} -Recommends: python3.10 Recommends: python3-devel %description -n tox @@ -44,6 +42,12 @@ Recommends: python3-devel %prep %autosetup -p1 -n tox-%{version} + +sed -ri -e 's/"(packaging|filelock|platformdirs|psutil|diff-cover|pyproject-api|pytest|pytest-mock|pytest-xdist|wheel|pluggy|distlib|cachetools)>=.*/"\1",/g' \ + -e "s/'(time-machine)>=[^;']+/'\1/" \ + -e 's/"(virtualenv)>=.*/"\1>=20",/g' \ + -e 's/"(hatchling)>=.*/"\1>=1.13",/g' \ + pyproject.toml %generate_buildrequires %pyproject_buildrequires -r %{?with_tests:-x testing} @@ -66,10 +70,12 @@ Recommends: python3-devel %files -n tox -f %{pyproject_files} %{_bindir}/tox -%{_bindir}/tox-quickstart - +%{python3_sitelib}/* %changelog +* Mon Sep 25 2023 cunshunxia - 4.10.0-1 +- Upgrade to version 4.10.0 + * Tue Sep 19 2023 OpenCloudOS Release Engineering - 3.24.5-5 - Rebuilt for python 3.11 diff --git a/sources b/sources index 4065001..ff24435 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (tox-3.24.5.tar.gz) = 2b047c5682c2c57268fb46055207388d060fb31511d6e442dc49244a5ac53c4d2fecd7bb9a8e33bb02b580192926592523dfb991c4bd8b216559f71a1c548f9a +SHA512 (tox-4.10.0.tar.gz) = c634fea5ab2989f2528107c75e7a1e4e328e8f5780d5fe6a3fda25e5c3d56e095db435cd5566231f3bc8e2d20d3b3e7a0e1b9be8de5a32e4b3602ed26f02f3b9 -- Gitee