diff --git a/0001-Remove-hatch-vcs-and-hatch-fancy-pypi-readme-deps.patch b/0001-Remove-hatch-vcs-and-hatch-fancy-pypi-readme-deps.patch new file mode 100644 index 0000000000000000000000000000000000000000..c1cf11ce7ddcd6f44b180b766a1f6d79a574bdd1 --- /dev/null +++ b/0001-Remove-hatch-vcs-and-hatch-fancy-pypi-readme-deps.patch @@ -0,0 +1,98 @@ +From dea54349ce9d0bc12f5ea27d9ba1f1821cd06faa Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Ond=C5=99ej=20Budai?= +Date: Wed, 26 Jun 2024 17:04:38 +0200 +Subject: [PATCH] Remove hatch-vcs and hatch-fancy-pypi-readme deps + + These apparently have no effect on the built RPM (I checked manually), + so let's drop them from pyproject.toml, so we can remove them from RHEL. +--- + pyproject.toml | 51 +++----------------------------------------------- + 1 file changed, 3 insertions(+), 48 deletions(-) + +diff --git a/pyproject.toml b/pyproject.toml +index 1c72fc2..d61be73 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -1,12 +1,13 @@ + # SPDX-License-Identifier: MIT + + [build-system] +-requires = ["hatchling", "hatch-vcs", "hatch-fancy-pypi-readme>=23.2.0"] ++requires = ["hatchling"] + build-backend = "hatchling.build" + + + [project] + name = "attrs" ++version = "23.2.0" + authors = [{ name = "Hynek Schlawack", email = "hs@ox.cx" }] + license = "MIT" + requires-python = ">=3.7" +@@ -26,7 +27,7 @@ classifiers = [ + "Typing :: Typed", + ] + dependencies = ["importlib_metadata;python_version<'3.8'"] +-dynamic = ["version", "readme"] ++dynamic = ["readme"] + + [project.optional-dependencies] + tests-mypy = [ +@@ -69,55 +70,9 @@ GitHub = "https://github.com/python-attrs/attrs" + Funding = "https://github.com/sponsors/hynek" + Tidelift = "https://tidelift.com/subscription/pkg/pypi-attrs?utm_source=pypi-attrs&utm_medium=pypi" + +- +-[tool.hatch.version] +-source = "vcs" +-raw-options = { local_scheme = "no-local-version" } +- + [tool.hatch.build.targets.wheel] + packages = ["src/attr", "src/attrs"] + +-[tool.hatch.metadata.hooks.fancy-pypi-readme] +-content-type = "text/markdown" +- +-# PyPI doesn't support the tag. +-[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]] +-text = """

+- +- attrs +- +-

+-""" +- +-[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]] +-path = "README.md" +-start-after = "" +- +-[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]] +-text = """ +- +-## Release Information +- +-""" +- +-[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]] +-path = "CHANGELOG.md" +-pattern = "\n(###.+?\n)## " +- +-[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]] +-text = """ +- +---- +- +-[Full changelog](https://www.attrs.org/en/stable/changelog.html) +-""" +- +-# Point sponsor image URLs to versions. +-[[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]] +-pattern = '\/latest\/_static/sponsors' +-replacement = '/$HFPR_VERSION/_static/sponsors' +- +- + [tool.pytest.ini_options] + addopts = ["-ra", "--strict-markers", "--strict-config"] + xfail_strict = true +-- +2.45.2 + diff --git a/22.2.0.tar.gz b/22.2.0.tar.gz deleted file mode 100644 index 2092fbdd55475120c51e199502ae5a42d234ad48..0000000000000000000000000000000000000000 Binary files a/22.2.0.tar.gz and /dev/null differ diff --git a/attrs-23.2.0.tar.gz b/attrs-23.2.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..0b18c2bbe84ccc9f62fe3404322b758bce661531 Binary files /dev/null and b/attrs-23.2.0.tar.gz differ diff --git a/python-attrs.spec b/python-attrs.spec index c0e7d05bad4863d9e48ad469ec2960e2956ced54..917549b2e893eb2185533152d376d03cbe100252 100644 --- a/python-attrs.spec +++ b/python-attrs.spec @@ -1,18 +1,19 @@ -%define anolis_release 3 +%define anolis_release 1 %global modname attrs # Turn the tests off when bootstrapping Python, because pytest requires attrs %bcond_without tests Name: python-attrs -Version: 22.2.0 +Version: 23.2.0 Release: %{anolis_release}%{dist} Summary: Python attributes without boilerplate License: MIT URL: http://www.attrs.org/ +Source0: https://github.com/python-attrs/attrs/archive/23.2.0/attrs-23.2.0.tar.gz BuildArch: noarch -Source0: https://github.com/%{name}/%{modname}/archive/refs/tags/%{version}.tar.gz +Patch1: 0001-Remove-hatch-vcs-and-hatch-fancy-pypi-readme-deps.patch BuildRequires: python%{python3_pkgversion}-devel %if %{with tests} @@ -59,6 +60,10 @@ PYTHONPATH=%{buildroot}/%{python3_sitelib} py.test-3 -v %{python3_sitelib}/* %changelog +* Wed Sep 17 2025 wenyuzifang - 23.2.0-1 +- Updated to version 23.2.0 to fix xxxxxx + + * Mon Mar 25 2024 Zhao Hang - 22.2.0-3 - Enable tests