From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D9C3815808A for ; Thu, 14 Sep 2023 02:51:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AD1B22BC026; Thu, 14 Sep 2023 02:51:24 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9726D2BC026 for ; Thu, 14 Sep 2023 02:51:24 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9F84A335CB4 for ; Thu, 14 Sep 2023 02:51:23 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D1C6611A7 for ; Thu, 14 Sep 2023 02:51:21 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1694659800.90fc041afe7787ef02d6be72932a3c6becc3deec.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/poetry/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/poetry/poetry-1.6.1-r1.ebuild X-VCS-Directories: dev-python/poetry/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 90fc041afe7787ef02d6be72932a3c6becc3deec X-VCS-Branch: master Date: Thu, 14 Sep 2023 02:51:21 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: ec3db37c-39a0-48bd-afaf-e9d64a2dfe9d X-Archives-Hash: 91f8256e482abed597b1a461de5b3e8b commit: 90fc041afe7787ef02d6be72932a3c6becc3deec Author: Martin Mokry protonmail com> AuthorDate: Wed Sep 13 17:09:10 2023 +0000 Commit: Sam James gentoo org> CommitDate: Thu Sep 14 02:50:00 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=90fc041a dev-util/poetry: Restrict dependency on dev-python/build Signed-off-by: Martin Mokry protonmail.com> Closes: https://github.com/gentoo/gentoo/pull/32756 Signed-off-by: Sam James gentoo.org> dev-python/poetry/poetry-1.6.1-r1.ebuild | 87 ++++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) diff --git a/dev-python/poetry/poetry-1.6.1-r1.ebuild b/dev-python/poetry/poetry-1.6.1-r1.ebuild new file mode 100644 index 000000000000..b05b1bb96d19 --- /dev/null +++ b/dev-python/poetry/poetry-1.6.1-r1.ebuild @@ -0,0 +1,87 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=poetry +PYTHON_COMPAT=( python3_{10..11} ) + +inherit distutils-r1 pypi + +DESCRIPTION="A frontend for poetry - a python dependency management and packaging tool" +HOMEPAGE=" + https://python-poetry.org/ + https://github.com/python-poetry/poetry + https://pypi.org/project/poetry/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +# dev-python/build: 1.0 breaks backward compatibility +# https://github.com/python-poetry/poetry/issues/8434 +RDEPEND=" + >=dev-python/poetry-core-1.7.0[${PYTHON_USEDEP}] + >=dev-python/poetry-plugin-export-1.5.0[${PYTHON_USEDEP}] + =dev-python/cachecontrol-0.13.0[${PYTHON_USEDEP}] + >=dev-python/cleo-2.0.0[${PYTHON_USEDEP}] + >=dev-python/crashtest-0.4.1[${PYTHON_USEDEP}] + >=dev-python/dulwich-0.21.2[${PYTHON_USEDEP}] + >=dev-python/installer-0.7.0[${PYTHON_USEDEP}] + >=dev-python/jsonschema-4.10.0[${PYTHON_USEDEP}] + >=dev-python/keyring-24.0.0[${PYTHON_USEDEP}] + >=dev-python/packaging-20.4[${PYTHON_USEDEP}] + >=dev-python/pexpect-4.7.0[${PYTHON_USEDEP}] + >=dev-python/pkginfo-1.9.4[${PYTHON_USEDEP}] + >=dev-python/platformdirs-3.0.0[${PYTHON_USEDEP}] + >=dev-python/requests-2.26[${PYTHON_USEDEP}] + >=dev-python/requests-toolbelt-0.10.1[${PYTHON_USEDEP}] + >=dev-python/shellingham-1.5.0[${PYTHON_USEDEP}] + >=dev-python/tomlkit-0.11.6[${PYTHON_USEDEP}] + >=dev-python/trove-classifiers-2022.5.19[${PYTHON_USEDEP}] + >=dev-python/urllib3-1.26.0[${PYTHON_USEDEP}] + >=dev-python/virtualenv-20.22.0[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + >=dev-python/tomli-2.0.1[${PYTHON_USEDEP}] + ' 3.10) +" + +BDEPEND=" + test? ( + >=dev-python/deepdiff-6.3.1[${PYTHON_USEDEP}] + >=dev-python/httpretty-1.0[${PYTHON_USEDEP}] + >=dev-python/pytest-mock-3.9[${PYTHON_USEDEP}] + >=dev-python/pytest-xdist-3.1[${PYTHON_USEDEP}] + ) +" + +src_prepare() { + # unpin + sed -e 's:\^:>=:' \ + -e '/poetry-core/s:":">=:' \ + -e 's:,<[0-9.]*::' \ + -i pyproject.toml || die + + distutils-r1_src_prepare +} + +EPYTEST_DESELECT=( + # Tests require network (they run `pip install ...`) + tests/installation/test_executor.py::test_executor_should_write_pep610_url_references_for_directories + tests/installation/test_executor.py::test_executor_should_write_pep610_url_references_for_git + tests/installation/test_executor.py::test_executor_should_write_pep610_url_references_for_git_with_subdirectories + tests/installation/test_pip_installer.py::test_uninstall_git_package_nspkg_pth_cleanup + tests/installation/test_executor.py::test_executor_should_write_pep610_url_references_for_non_wheel_files + tests/installation/test_installer.py::test_installer_with_pypi_repository + tests/masonry/builders/test_editable_builder.py::test_builder_setup_generation_runs_with_pip_editable + + # Works with network, but otherwise: Backend 'poetry.core.masonry.api' is not available. + tests/installation/test_chef.py::test_prepare_sdist + tests/installation/test_chef.py::test_prepare_directory + tests/installation/test_chef.py::test_prepare_directory_with_extensions + tests/installation/test_chef.py::test_prepare_directory_editable +) + +distutils_enable_tests pytest