## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # To break circular dependency on poetry-plugin-export, when bootstrapping # we don't BuildRequire runtime deps and we don't run tests. %bcond bootstrap 0 %global common_description %{expand: Poetry helps you declare, manage and install dependencies of Python projects, ensuring you have the right stack everywhere.} Name: poetry Summary: Python dependency management and packaging made easy Version: 1.8.3 Release: %autorelease # SPDX License: MIT URL: https://python-poetry.org/ Source0: https://github.com/python-poetry/poetry/archive/%{version}/poetry-%{version}.tar.gz # We don't ship embedded wheels in Fedora and they are being patched out # from virtualenv (https://src.fedoraproject.org/rpms/python-virtualenv/blob/370bb9cf4e/f/rpm-wheels.patch#_110). # Since poetry touches get_embedded_wheel() our patch breaks it as it # retuns None instead of wheels. # This temporary patch returns correct wheels by calling # get_system_wheels_paths() from virtualenv. # TODO get rid of this patch by talking to virtualenv and poetry upstream about a better solution. Patch: Patch-get_embedded_wheel-to-return-system-wheels-fro.patch # tests/executor fix tests failing without internet access Patch: https://github.com/python-poetry/poetry/pull/9117.patch BuildArch: noarch BuildRequires: python3-devel BuildRequires: pyproject-rpm-macros # The tests deps are only defined as part of poetry.dev-dependencies together with tox, pre-commit etc. BuildRequires: gcc BuildRequires: git-core BuildRequires: /usr/bin/python BuildRequires: %py3_dist pytest BuildRequires: %py3_dist pytest-mock BuildRequires: %py3_dist pytest-xdist BuildRequires: %py3_dist httpretty BuildRequires: %py3_dist cachy BuildRequires: %py3_dist deepdiff Requires: python3-poetry = %{version}-%{release} %description %{common_description} %package -n python3-poetry Summary: %{summary} # Our patch only works with recent version of the virtualenv patch Conflicts: python3-virtualenv < 20.19.0-2 %description -n python3-poetry %{common_description} %prep %autosetup -p1 # Relax version constraint to allow older virtualenv we have in Fedora # Downstream report: https://bugzilla.redhat.com/show_bug.cgi?id=2188155#c8 sed -i 's/virtualenv = "^20.23.0"/virtualenv = ">=20.21.1"/' pyproject.toml sed -i 's/jsonschema = ">=4.10.0,<4.18.0"/jsonschema = ">=4.10.0,<4.20.0"/' pyproject.toml # Convert the SemVer bound on the version of keyring to a lower bound, since # its major version increases frequently, usually without significant # incompatibilities. sed -i -r 's/(keyring = ")\^/\1>=/' pyproject.toml %generate_buildrequires %pyproject_buildrequires %{?with_bootstrap: -R} %build %pyproject_wheel %install %pyproject_install %pyproject_save_files poetry export PYTHONPATH=%{buildroot}%{python3_sitelib} for i in bash,bash-completion/completions,poetry fish,fish/vendor_completions.d,poetry.fish zsh,zsh/site-functions,_poetry; do IFS="," set -- $i mkdir -p %{buildroot}%{_datadir}/$2 # poetry leaves references to the buildroot in the completion files -> remove them %{buildroot}%{_bindir}/poetry completions $1 | sed 's|%{buildroot}||g' > %{buildroot}%{_datadir}/$2/$3 done %if %{without bootstrap} %check %pytest -m "not network" %endif %files %{_bindir}/poetry # The directories with shell completions are co-owned %{_datadir}/bash-completion/ %{_datadir}/fish/ %{_datadir}/zsh/ %files -n python3-poetry -f %{pyproject_files} %license LICENSE %doc README.md # this is co-owned by poetry-core but we require poetry-core, so we get rid of it # the file and its pycache might not be bit by bit identical %exclude %dir %{python3_sitelib}/poetry %pycached %exclude %{python3_sitelib}/poetry/__init__.py %changelog ## START: Generated by rpmautospec * Wed Aug 21 2024 Tomáš Hrnčiar - 1.8.3-1 - Update to 1.8.3 * Fri Jul 19 2024 Fedora Release Engineering - 1.8.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sun Jun 09 2024 Python Maint - 1.8.2-4 - Rebuilt for Python 3.13 * Sat Jun 08 2024 Python Maint - 1.8.2-3 - Bootstrap for Python 3.13 * Wed Mar 27 2024 Benjamin A. Beasley - 1.8.2-2 - Do not SemVer-bound the keyring dependency * Wed Mar 06 2024 Tomáš Hrnčiar - 1.8.2-1 - Update to 1.8.2 * Thu Jan 25 2024 Fedora Release Engineering - 1.7.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 1.7.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Nov 27 2023 Tomáš Hrnčiar - 1.7.1-1 - Update to 1.7.1 - Fixes: rhbz#2247814 * Mon Sep 04 2023 Tomáš Hrnčiar - 1.6.1-1 - Update to 1.6.1 - Fixes: rhbz#2233038 * Fri Jul 28 2023 Tomáš Hrnčiar - 1.5.1-2 - Update to 1.5.1 * Fri Jul 28 2023 Tomáš Hrnčiar - 1.5.1-1 - Update to 1.5.1 - with bootstrap * Fri Jul 21 2023 Fedora Release Engineering - 1.5.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Sun Jul 02 2023 Python Maint - 1.5.0-3 - Rebuilt for Python 3.12 * Fri Jun 30 2023 Tomáš Hrnčiar - 1.5.0-2 - Update to 1.5.0 - without bootstrap * Fri Jun 30 2023 Tomáš Hrnčiar - 1.5.0-1 - Update to 1.5.0 * Thu Jun 15 2023 Python Maint - 1.3.2-6 - Bootstrap for Python 3.12 * Thu May 11 2023 Tomáš Hrnčiar - 1.3.2-5 - Allow newer requests-toolbelt version - without bootstrap * Thu May 11 2023 Tomáš Hrnčiar - 1.3.2-4 - Allow newer requests-toolbelt version - Fixes: rhbz#2196879 * Wed Mar 01 2023 Miro Hrončok - 1.3.2-3 - Update our wheel patch to match the virtualenv patch * Mon Feb 20 2023 Tomáš Hrnčiar - 1.3.2-2 - Update to 1.3.2 - disable bootstrap * Mon Feb 20 2023 Tomáš Hrnčiar - 1.3.2-1 - Update to 1.3.2 * Thu Jan 26 2023 Miro Hrončok - 1.2.2-4 - Allow newer version of dulwich * Fri Jan 20 2023 Fedora Release Engineering - 1.2.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Tue Nov 22 2022 Tomáš Hrnčiar - 1.2.2-2 - Update to 1.2.2 - without bootstrap * Mon Nov 14 2022 Tomáš Hrnčiar - 1.2.2-1 - Update to 1.2.2 - with bootstrap * Tue Nov 08 2022 Tomáš Hrnčiar - 1.2.1-4 - Add patch to return correct wheels - Backport upstream patch to fix some failing tests - Fix bcond so tests are enabled - Disable test_uninstall_git_package_nspkg_pth_cleanup attempting a network connection to pypi - Some test files are --ignore'd until flatdict and deepdiff are not packaged into Fedora - Fixes: rhbz#2138663 * Sun Oct 30 2022 Miro Hrončok - 1.2.1-3 - Allow newer requests-toolbelt version - Fixes: rhbz#2138636 * Fri Oct 07 2022 Tomáš Hrnčiar - 1.2.1-2 - Update to 1.2.1 - Disable bootstrap bcond * Fri Sep 30 2022 Tomáš Hrnčiar - 1.2.1-1 - Update to 1.2.1 - Enable bootstrap bcond * Mon Jul 25 2022 Tomáš Hrnčiar - 1.1.14-1 - Update to 1.1.14 * Fri Jul 22 2022 Fedora Release Engineering - 1.1.13-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jun 16 2022 Python Maint - 1.1.13-2 - Rebuilt for Python 3.11 * Mon Mar 07 2022 Tomáš Hrnčiar - 1.1.13-1 - Update to 1.1.13 - Disable failing tests with pytest 7 - Fixes: rhbz#2059941 * Fri Jan 21 2022 Fedora Release Engineering - 1.1.12-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Mon Dec 13 2021 Tomáš Hrnčiar - 1.1.12-1 - Update to 1.1.12 * Mon Nov 15 2021 Tomáš Hrnčiar - 1.1.11-1 - Update to 1.1.11 * Fri Oct 01 2021 Tomáš Hrnčiar - 1.1.10 - Update to 1.1.10 * Tue Sep 07 2021 Tomas Hrnciar - 1.1.8-1 - Update to 1.1.8 * Fri Sep 03 2021 Miro Hrončok - 1.1.7-2 - Install Fish shell completions to /usr/share/fish/vendor_completions.d * Wed Aug 18 2021 Tomas Hrnciar - 1.1.7-1 - Update to 1.1.7 * Fri Jul 23 2021 Fedora Release Engineering - 1.1.6-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Thu Jul 08 2021 Lumír Balhar - 1.1.6-5 - Allow newer packaging version * Tue Jun 15 2021 Tomas Hrnciar - 1.1.6-4 - Backport upstream patch to fix error on Python 3.10+ - New empty projects created by poetry now have default dev dependency on pytest ^6.2 - to ensure compatibility with Python 3.10+ - Fixes: rhbz#1970361 * Wed Jun 9 2021 Dan Čermák - 1.1.6-3 - Install shell completion files * Fri Jun 04 2021 Python Maint - 1.1.6-2 - Rebuilt for Python 3.10 * Thu Apr 15 2021 Tomas Hrnciar - 1.1.6-1 - Update to 1.1.6 * Fri Mar 05 2021 Tomas Hrnciar - 1.1.5-1 - Update to version 1.1.5 * Wed Jan 27 2021 Fedora Release Engineering - 1.1.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Nov 02 2020 Miro Hrončok - 1.1.4-1 - Update to version 1.1.4. * Sat Oct 03 2020 Fabio Valentini - 1.1.0-1 - Update to version 1.1.0. * Tue Jul 28 2020 Fedora Release Engineering - 1.0.10-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jul 22 2020 Fabio Valentini - 1.0.10-1 - Update to version 1.0.10. * Sat Jul 04 2020 Fabio Valentini - 1.0.9-1 - Update to version 1.0.9. - Drop manual dependency generator enablement (it's enabled by default). * Tue May 26 2020 Miro Hrončok - 1.0.5-2 - Rebuilt for Python 3.9 * Sat Feb 29 2020 Fabio Valentini - 1.0.5-1 - Update to version 1.0.5. * Fri Feb 28 2020 Fabio Valentini - 1.0.4-1 - Update to version 1.0.4. * Wed Feb 05 2020 Fabio Valentini - 1.0.3-2 - Hard-code dependency on python3-lockfile. * Sun Feb 02 2020 Fabio Valentini - 1.0.3-1 - Update to version 1.0.3. * Thu Jan 30 2020 Fedora Release Engineering - 1.0.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Wed Jan 15 2020 Fabio Valentini - 1.0.2-1 - Update to version 1.0.2. * Fri Dec 13 2019 Fabio Valentini - 1.0.0-1 - Update to version 1.0.0. * Thu Oct 03 2019 Miro Hrončok - 0.12.17-5 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 26 2019 Fabio Valentini - 0.12.17-4 - Relax dependency on cachy. * Mon Aug 19 2019 Miro Hrončok - 0.12.17-3 - Rebuilt for Python 3.8 * Mon Aug 19 2019 Miro Hrončok - 0.12.17-2 - Add missing dependencies on lockfile and pip * Sat Aug 10 2019 Fabio Valentini - 0.12.17-1 - Update to version 0.12.17. * Fri May 03 2019 Fabio Valentini - 0.12.15-1 - Update to version 0.12.15. * Fri Apr 26 2019 Fabio Valentini - 0.12.14-1 - Update to version 0.12.14. * Fri Apr 26 2019 Fabio Valentini - 0.12.13-1 - Update to version 0.12.13. * Fri Apr 12 2019 Fabio Valentini - 0.12.12-1 - Update to version 0.12.12. * Mon Jan 14 2019 Fabio Valentini - 0.12.11-1 - Update to version 0.12.11. * Wed Dec 12 2018 Fabio Valentini - 0.12.10-1 - Initial package. ## END: Generated by rpmautospec