diff --git a/.python-poetry-core.metadata b/.python-poetry-core.metadata new file mode 100644 index 0000000..8a3b79a --- /dev/null +++ b/.python-poetry-core.metadata @@ -0,0 +1 @@ +30c509978b0b62a9246c1c356978db93e1972113 SOURCES/poetry-core-1.9.1.tar.gz diff --git a/SOURCES/poetry-core-1.9.0-devendor.patch b/SOURCES/poetry-core-1.9.0-devendor.patch new file mode 100644 index 0000000..d98e7fc --- /dev/null +++ b/SOURCES/poetry-core-1.9.0-devendor.patch @@ -0,0 +1,29 @@ +diff --git a/pyproject.toml b/pyproject.toml +index 04c1b78..56688d2 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -25,6 +25,12 @@ include = [ + [tool.poetry.dependencies] + python = "^3.8" + ++# moved here from vendors/pyproject.toml ++fastjsonschema = "^2.18.0" ++lark = "^1.1.3" ++packaging = ">=22.0" ++tomli = {version = "^2.0.1", python = "<3.11"} ++ + [tool.poetry.group.dev.dependencies] + pre-commit = ">=2.15.0" + vendoring = ">=1.0" +diff --git a/vendors/pyproject.toml b/vendors/pyproject.toml +index 47f7099..24fc1ae 100644 +--- a/vendors/pyproject.toml ++++ b/vendors/pyproject.toml +@@ -21,7 +21,3 @@ classifiers = [ + [tool.poetry.dependencies] + python = "^3.8" + +-fastjsonschema = "^2.18.0" +-lark = "^1.1.3" +-packaging = ">=22.0" +-tomli = "^2.0.1" diff --git a/SPECS/python-poetry-core.spec b/SPECS/python-poetry-core.spec new file mode 100644 index 0000000..9f364dc --- /dev/null +++ b/SPECS/python-poetry-core.spec @@ -0,0 +1,204 @@ +# RHEL does not include the test dependencies +%bcond tests %{undefined rhel} + +Name: python-poetry-core +Version: 1.9.1 +Release: 2%{?dist} +Summary: Poetry PEP 517 Build Backend +# SPDX +License: MIT +URL: https://github.com/python-poetry/poetry-core +Source0: %{url}/archive/%{version}/poetry-core-%{version}.tar.gz + +# This patch moves the vendored requires definition +# from vendors/pyproject.toml to pyproject.toml +# Intentionally contains the removed hunk to prevent patch aging +Patch1: poetry-core-1.9.0-devendor.patch + +BuildArch: noarch +BuildRequires: python3-devel +BuildRequires: pyproject-rpm-macros + +%if %{with tests} +# for tests (only specified via poetry poetry.dev-dependencies with pre-commit etc.) +BuildRequires: python3-build +BuildRequires: python3-pytest +BuildRequires: python3-pytest-mock +BuildRequires: python3-setuptools +BuildRequires: python3-tomli-w +BuildRequires: python3-virtualenv +BuildRequires: gcc +BuildRequires: git-core +%endif + + +%global _description %{expand: +A PEP 517 build backend implementation developed for Poetry. +This project is intended to be a light weight, fully compliant, self-contained +package allowing PEP 517 compatible build frontends to build Poetry managed +projects.} + +%description %_description + + +%package -n python3-poetry-core +Summary: %{summary} + +# Previous versions of poetry included poetry-core in it +Conflicts: python%{python3_version}dist(poetry) < 1.1 + +%description -n python3-poetry-core %_description + + +%prep +%autosetup -p1 -n poetry-core-%{version} + + +%generate_buildrequires +%pyproject_buildrequires -r + + +%build +# we debundle the deps after we use the bundled deps in previous step to parse the deps 🤯 +rm -r src/poetry/core/_vendor + +%pyproject_wheel + + +%install +%pyproject_install +%pyproject_save_files poetry + + +%check +%if %{with tests} +# don't use %%tox here because tox.ini runs "poetry install" +# TODO investigate failures in test_default_with_excluded_data, test_default_src_with_excluded_data +%pytest -k "not with_excluded_data" +%else +%pyproject_check_import +%endif + + +%files -n python3-poetry-core -f %{pyproject_files} +%doc README.md +%license LICENSE + + +%changelog +* Sat Jan 18 2025 Fedora Release Engineering - 1.9.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + +* Tue Oct 15 2024 Tomáš Hrnčiar - 1.9.1-1 +- Update to 1.9.1 +- Fixes: rhbz#2318433 + +* Fri Jul 19 2024 Fedora Release Engineering - 1.9.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Fri Jun 07 2024 Python Maint - 1.9.0-2 +- Rebuilt for Python 3.13 + +* Mon Mar 04 2024 Tomáš Hrnčiar - 1.9.0-1 +- Update to 1.9.0 + +* Fri Jan 26 2024 Fedora Release Engineering - 1.8.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Jan 22 2024 Fedora Release Engineering - 1.8.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Thu Jan 18 2024 Tomáš Hrnčiar - 1.8.1-1 +- Update to 1.8.1 +- Fixes: rhbz#2247249 + +* Thu Jan 04 2024 Florian Weimer - 1.7.0-2 +- Backport upstream patch to fix C compatibility issue + +* Fri Sep 01 2023 Tomáš Hrnčiar - 1.7.0-1 +- Update to 1.7.0 +- Fixes: rhbz#2232934 + +* Wed Aug 23 2023 Yaakov Selkowitz - 1.6.1-2 +- Drop unwanted tomli dependency + +* Wed Jul 26 2023 Tomáš Hrnčiar - 1.6.1-1 +- Update to 1.6.1 +- Fixes: rhbz#2144878 + +* Fri Jul 21 2023 Fedora Release Engineering - 1.6.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Fri Jun 30 2023 Tomáš Hrnčiar - 1.6.0-1 +- Update to 1.6.0 + +* Thu Jun 15 2023 Python Maint - 1.4.0-4 +- Rebuilt for Python 3.12 + +* Mon May 29 2023 Yaakov Selkowitz - 1.4.0-3 +- Disable tests in RHEL builds + +* Sat Feb 25 2023 Miro Hrončok - 1.4.0-2 +- Remove unused build dependency on python3-pep517 + +* Mon Feb 20 2023 Tomáš Hrnčiar - 1.4.0-1 +- Update to 1.4.0 + +* Fri Jan 20 2023 Fedora Release Engineering - 1.3.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Tue Nov 22 2022 Tomáš Hrnčiar - 1.3.2-1 +- Update to 1.3.2 +- Fixes: rhbz#1944752 + +* Wed Nov 16 2022 Lumír Balhar - 1.2.0-2 +- Add missing buildrequire - setuptools (#2142040) + +* Fri Sep 30 2022 Tomáš Hrnčiar - 1.2.0-1 +- Update to 1.2.0 + +* Fri Jul 22 2022 Fedora Release Engineering - 1.0.8-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Mon Jun 13 2022 Python Maint - 1.0.8-2 +- Rebuilt for Python 3.11 + +* Mon Mar 07 2022 Tomáš Hrnčiar - 1.0.8-1 +- Update to 1.0.8 + +* Fri Jan 21 2022 Fedora Release Engineering - 1.0.7-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Mon Nov 15 2021 Tomáš Hrnčiar - 1.0.7-1 +- Update to 1.0.7 + +* Fri Oct 01 2021 Tomáš Hrnčiar - 1.0.6-1 +- Update to 1.0.6 + +* Tue Sep 07 2021 Tomas Hrnciar - 1.0.4-1 +- Update to 1.0.4 + +* Thu Aug 19 2021 Tomas Hrnciar - 1.0.3-5 +- Bundle vendored libraries again, to fix poetry install + +* Fri Jul 23 2021 Fedora Release Engineering - 1.0.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Thu Jul 08 2021 Lumír Balhar - 1.0.3-3 +- Allow newer packaging version +- Allow newer pyrsistent version + +* Fri Jun 04 2021 Python Maint - 1.0.3-2 +- Rebuilt for Python 3.10 + +* Thu Apr 15 2021 Tomas Hrnciar - 1.0.3-1 +- Update to 1.0.3 + +* Thu Feb 25 2021 Tomas Hrnciar - 1.0.2-1 +- Update to 1.0.2 + +* Wed Jan 27 2021 Fedora Release Engineering - 1.0.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Mon Nov 02 2020 Miro Hrončok - 1.0.0-1 +- Initial package