diff --git a/.gitignore b/.gitignore index 06ac07a..63a9914 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/attrs-19.3.0.tar.gz +attrs-23.2.0.tar.gz diff --git a/.python-attrs.metadata b/.python-attrs.metadata deleted file mode 100644 index 99a3e9d..0000000 --- a/.python-attrs.metadata +++ /dev/null @@ -1 +0,0 @@ -c814bf4a79c760a54ecb41796656b01166ebfdcd SOURCES/attrs-19.3.0.tar.gz 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 0000000..c1cf11c --- /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/SPECS/python-attrs.spec b/SPECS/python-attrs.spec deleted file mode 100644 index c1f9336..0000000 --- a/SPECS/python-attrs.spec +++ /dev/null @@ -1,165 +0,0 @@ -%global modname attrs - -%if 0%{?rhel} && 0%{?rhel} <= 7 -# Can't run tests on EPEL7 due to need for pytest >= 2.8 -%bcond_with tests -%else -# Turn the tests off when bootstrapping Python, because pytest requires attrs -%bcond_with tests -%endif - -Name: python-attrs -Version: 19.3.0 -Release: 3%{?dist} -Summary: Python attributes without boilerplate - -License: MIT -URL: http://www.attrs.org/ -BuildArch: noarch -# Exclude i686 arch. Due to a modularity issue it's being added to the -# x86_64 compose of CRB, but we don't want to ship it at all. -# See: https://projects.engineering.redhat.com/browse/RCM-72605 -ExcludeArch: i686 -Source0: https://github.com/hynek/%{modname}/archive/%{version}/%{modname}-%{version}.tar.gz - - -BuildRequires: python%{python3_pkgversion}-devel -BuildRequires: python%{python3_pkgversion}-rpm-macros -BuildRequires: python%{python3_pkgversion}-setuptools -%if %{with tests} -BuildRequires: python%{python3_pkgversion}-pytest -BuildRequires: python%{python3_pkgversion}-hypothesis -BuildRequires: python%{python3_pkgversion}-six -BuildRequires: python%{python3_pkgversion}-zope-interface -%endif - -%description -attrs is an MIT-licensed Python package with class decorators that -ease the chores of implementing the most common attribute-related -object protocols. - -%package -n python%{python3_pkgversion}-%{modname} -Summary: %{summary} -%{?python_provide:%python_provide python%{python3_pkgversion}-%{modname}} - -%description -n python%{python3_pkgversion}-%{modname} -attrs is an MIT-licensed Python package with class decorators that -ease the chores of implementing the most common attribute-related -object protocols. - -%prep -%setup -q -n %{modname}-%{version} - -%build -%py3_build - -%install -%py3_install - -%if %{with tests} -%check -PYTHONPATH=%{buildroot}/%{python3_sitelib} py.test-%{python3_version} -v -%endif - -%files -n python%{python3_pkgversion}-%{modname} -%license LICENSE -%doc AUTHORS.rst README.rst -%{python3_sitelib}/* - -%changelog -* Fri Dec 13 2019 Tomas Orsava - 19.3.0-3 -- Exclude unsupported i686 arch - -* Tue Nov 19 2019 Lumír Balhar - 19.3.0-2 -- Adjusted for Python 3.8 module in RHEL 8 - -* Mon Nov 18 2019 Lumír Balhar - 19.3.0-1 -- New upstream version 19.3.0 (#1761701) -- Python 2 subpackage has been removed (#1773236) - -* Sun Oct 13 2019 Miro Hrončok - 19.1.0-6 -- Drop Python 2 optional build dependencies - -* Thu Oct 03 2019 Miro Hrončok - 19.1.0-5 -- Rebuilt for Python 3.8.0rc1 (#1748018) - -* Sat Aug 17 2019 Miro Hrončok - 19.1.0-4 -- Rebuilt for Python 3.8 - -* Thu Aug 15 2019 Miro Hrončok - 19.1.0-3 -- Bootstrap for Python 3.8 - -* Fri Jul 26 2019 Fedora Release Engineering - 19.1.0-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - -* Tue Mar 19 2019 Eric Smith 19.1.0-1 -- Updated to latest upstream. - -* Mon Feb 25 2019 Eric Smith 18.2.0-1 -- Updated to latest upstream. - -* Sat Feb 02 2019 Fedora Release Engineering - 17.4.0-8 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - -* Fri Jul 13 2018 Fedora Release Engineering - 17.4.0-7 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - -* Sun Jun 17 2018 Miro Hrončok - 17.4.0-6 -- Rebuilt for Python 3.7 - -* Thu Jun 14 2018 Miro Hrončok - 17.4.0-5 -- Bootstrap for Python 3.7 - -* Wed Feb 21 2018 Iryna Shcherbina - 17.4.0-4 -- Update Python 2 dependency declarations to new packaging standards - (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) - -* Fri Feb 09 2018 Fedora Release Engineering - 17.4.0-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - -* Wed Jan 17 2018 Eric Smith 17.4.0-2 -- Added BuildRequires for python-six. - -* Thu Jan 11 2018 Eric Smith 17.4.0-1 -- Updated to latest upstream. - -* Thu Jul 27 2017 Fedora Release Engineering - 16.3.0-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - -* Sat Feb 11 2017 Fedora Release Engineering - 16.3.0-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild - -* Wed Dec 14 2016 Eric Smith 16.3.0-1 -- Updated to latest upstream. - -* Tue Dec 13 2016 Charalampos Stratakis - 16.1.0-3 -- Enable tests - -* Mon Dec 12 2016 Charalampos Stratakis - 16.1.0-2 -- Rebuild for Python 3.6 -- Disable python3 tests for now - -* Sat Sep 10 2016 Eric Smith 16.1.0-1 -- Updated to latest upstream. -- Removed patch, no longer necessary. -- Removed "with python3" conditionals. - -* Thu Aug 18 2016 Eric Smith 16.0.0-6 -- Build for Python 3.4 in EPEL7. - -* Thu Aug 18 2016 Eric Smith 16.0.0-5 -- Updated based on Fedora package review (#1366878). -- Fix check section, though tests can not be run for EPEL7. -- Add patch to skip two tests with keyword collisions. - -* Tue Aug 16 2016 Eric Smith 16.0.0-4 -- Fix python2 BuildRequires. - -* Mon Aug 15 2016 Eric Smith 16.0.0-3 -- Updated based on Fedora package review (#1366878). - -* Sun Aug 14 2016 Eric Smith 16.0.0-2 -- Updated based on Fedora package review (#1366878). - -* Sat Aug 13 2016 Eric Smith 16.0.0-1 -- Initial version. diff --git a/python-attrs.spec b/python-attrs.spec new file mode 100644 index 0000000..b25123c --- /dev/null +++ b/python-attrs.spec @@ -0,0 +1,263 @@ +%global modname attrs + +%if 0%{?rhel} +# Avoid unwanted/unavailable dependencies in RHEL builds +%bcond_with tests +%else +# Turn the tests off when bootstrapping Python, because pytest requires attrs +%bcond_without tests +%endif + +Name: python-attrs +Version: 23.2.0 +Release: 7%{?dist} +Summary: Python attributes without boilerplate + +# SPDX +License: MIT +URL: http://www.attrs.org/ +BuildArch: noarch +Source0: https://github.com/python-attrs/%{modname}/archive/%{version}/%{modname}-%{version}.tar.gz +Patch0: 0001-Remove-hatch-vcs-and-hatch-fancy-pypi-readme-deps.patch + +BuildRequires: python%{python3_pkgversion}-devel + +%description +attrs is an MIT-licensed Python package with class decorators that +ease the chores of implementing the most common attribute-related +object protocols. + +%package -n python%{python3_pkgversion}-%{modname} +Summary: %{summary} +%{?python_provide:%python_provide python%{python3_pkgversion}-%{modname}} + +%description -n python%{python3_pkgversion}-%{modname} +attrs is an MIT-licensed Python package with class decorators that +ease the chores of implementing the most common attribute-related +object protocols. + +%prep +%setup -q -n %{modname}-%{version} +%patch -P 0 -p1 + +# Remove undesired/optional test dependency on pympler +sed -i '/"pympler",/d' pyproject.toml + +# Remove tests-mypy extra from tests-no-zope extra +sed -i "/attrs\[tests-mypy\]/d" pyproject.toml + +%generate_buildrequires +%pyproject_buildrequires %{?with_tests:-x tests} + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files attr attrs + +%check +%pyproject_check_import +%if %{with tests} +%pytest +%endif + +%files -n python%{python3_pkgversion}-%{modname} -f %{pyproject_files} +%license LICENSE +%doc README.md + +%changelog +* Tue Oct 29 2024 Troy Dawson - 23.2.0-7 +- Bump release for October 2024 mass rebuild: + Resolves: RHEL-64018 + +* Wed Jun 26 2024 Ondřej Budai - 23.2.0-6 +- Drop unneeded build dependencies + +* Mon Jun 24 2024 Troy Dawson - 23.2.0-5 +- Bump release for June 2024 mass rebuild + +* Fri Jan 26 2024 Fedora Release Engineering - 23.2.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Jan 21 2024 Fedora Release Engineering - 23.2.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Jan 15 2024 Miro Hrončok - 23.2.0-2 +- Remove undesired/optional test dependency on pympler + +* Tue Jan 02 2024 Lumír Balhar - 23.2.0-1 +- Update to 23.2.0 (rhbz#2256322) + +* Fri Jul 21 2023 Fedora Release Engineering - 23.1.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Tue Jul 04 2023 Python Maint - 23.1.0-3 +- Rebuilt for Python 3.12 + +* Thu Jun 15 2023 Python Maint - 23.1.0-2 +- Bootstrap for Python 3.12 + +* Wed May 17 2023 Lumír Balhar - 23.1.0-1 +- Update to 23.1.0 (rhbz#2187066) + +* Fri Jan 20 2023 Fedora Release Engineering - 22.2.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Wed Dec 21 2022 Lumír Balhar - 22.2.0-1 +- Update to 22.2.0 (rhbz#2155469) + +* Fri Jul 29 2022 Lumír Balhar - 22.1.0-1 +- Update to 22.1.0 +Resolves: rhbz#2112006 + +* Fri Jul 22 2022 Fedora Release Engineering - 21.4.0-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Fri Jun 24 2022 Lumír Balhar - 21.4.0-5 +- Fixed compatibility with Python 3.11 beta 3 +Resolves: rhbz#2039259 + +* Mon Jun 13 2022 Python Maint - 21.4.0-4 +- Rebuilt for Python 3.11 + +* Mon Jun 13 2022 Python Maint - 21.4.0-3 +- Bootstrap for Python 3.11 + +* Fri Jan 21 2022 Fedora Release Engineering - 21.4.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Mon Jan 03 2022 Lumír Balhar - 21.4.0-1 +- Update to 21.4.0 +Resolves: rhbz#2035864 + +* Fri Jul 23 2021 Fedora Release Engineering - 21.2.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri Jun 04 2021 Python Maint - 21.2.0-3 +- Rebuilt for Python 3.10 + +* Wed Jun 02 2021 Python Maint - 21.2.0-2 +- Bootstrap for Python 3.10 + +* Fri May 07 2021 Lumír Balhar - 21.2.0-1 +- Update to 21.2.0 + Resolves: rhbz#1957660 + +* Wed May 05 2021 Lumír Balhar - 20.3.0-3 +- Fix tests with Python 3.10 + +* Wed Jan 27 2021 Fedora Release Engineering - 20.3.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Thu Nov 19 2020 Lumír Balhar - 20.3.0-1 +- Update to 20.3.0 (#1894866) + +* Mon Sep 07 2020 Lumír Balhar - 20.2.0-1 +- Update to 20.2.0 (#1876063) + +* Thu Aug 27 2020 Lumír Balhar - 20.1.0-1 +- Update to 20.1.0 (#1870794) + +* Tue Jul 28 2020 Fedora Release Engineering - 19.3.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Sat May 23 2020 Miro Hrončok - 19.3.0-4 +- Rebuilt for Python 3.9 + +* Fri May 22 2020 Miro Hrončok - 19.3.0-3 +- Bootstrap for Python 3.9 + +* Thu Jan 30 2020 Fedora Release Engineering - 19.3.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Mon Nov 18 2019 Lumír Balhar - 19.3.0-1 +- New upstream version 19.3.0 (#1761701) +- Python 2 subpackage has been removed (#1773236) + +* Sun Oct 13 2019 Miro Hrončok - 19.1.0-6 +- Drop Python 2 optional build dependencies + +* Thu Oct 03 2019 Miro Hrončok - 19.1.0-5 +- Rebuilt for Python 3.8.0rc1 (#1748018) + +* Sat Aug 17 2019 Miro Hrončok - 19.1.0-4 +- Rebuilt for Python 3.8 + +* Thu Aug 15 2019 Miro Hrončok - 19.1.0-3 +- Bootstrap for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 19.1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Tue Mar 19 2019 Eric Smith 19.1.0-1 +- Updated to latest upstream. + +* Mon Feb 25 2019 Eric Smith 18.2.0-1 +- Updated to latest upstream. + +* Sat Feb 02 2019 Fedora Release Engineering - 17.4.0-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Jul 13 2018 Fedora Release Engineering - 17.4.0-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Sun Jun 17 2018 Miro Hrončok - 17.4.0-6 +- Rebuilt for Python 3.7 + +* Thu Jun 14 2018 Miro Hrončok - 17.4.0-5 +- Bootstrap for Python 3.7 + +* Wed Feb 21 2018 Iryna Shcherbina - 17.4.0-4 +- Update Python 2 dependency declarations to new packaging standards + (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) + +* Fri Feb 09 2018 Fedora Release Engineering - 17.4.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Jan 17 2018 Eric Smith 17.4.0-2 +- Added BuildRequires for python-six. + +* Thu Jan 11 2018 Eric Smith 17.4.0-1 +- Updated to latest upstream. + +* Thu Jul 27 2017 Fedora Release Engineering - 16.3.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 16.3.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Wed Dec 14 2016 Eric Smith 16.3.0-1 +- Updated to latest upstream. + +* Tue Dec 13 2016 Charalampos Stratakis - 16.1.0-3 +- Enable tests + +* Mon Dec 12 2016 Charalampos Stratakis - 16.1.0-2 +- Rebuild for Python 3.6 +- Disable python3 tests for now + +* Sat Sep 10 2016 Eric Smith 16.1.0-1 +- Updated to latest upstream. +- Removed patch, no longer necessary. +- Removed "with python3" conditionals. + +* Thu Aug 18 2016 Eric Smith 16.0.0-6 +- Build for Python 3.4 in EPEL7. + +* Thu Aug 18 2016 Eric Smith 16.0.0-5 +- Updated based on Fedora package review (#1366878). +- Fix check section, though tests can not be run for EPEL7. +- Add patch to skip two tests with keyword collisions. + +* Tue Aug 16 2016 Eric Smith 16.0.0-4 +- Fix python2 BuildRequires. + +* Mon Aug 15 2016 Eric Smith 16.0.0-3 +- Updated based on Fedora package review (#1366878). + +* Sun Aug 14 2016 Eric Smith 16.0.0-2 +- Updated based on Fedora package review (#1366878). + +* Sat Aug 13 2016 Eric Smith 16.0.0-1 +- Initial version. diff --git a/sources b/sources new file mode 100644 index 0000000..6bbbc03 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (attrs-23.2.0.tar.gz) = 1797760e80987908bd56649b93c8d29760404f81a0ea88817fc1c2ce013d64f842e59f04639fda96e21d151a72d53ad796ea5ec7c87b39a7fcf2ec2c2cbf9bc6