public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/poetry/
Date: Sat, 22 Jul 2023 13:16:00 +0000 (UTC)	[thread overview]
Message-ID: <1690031749.d706cc721af59b0fa114e953c42cdc7782dec1a8.mgorny@gentoo> (raw)

commit:     d706cc721af59b0fa114e953c42cdc7782dec1a8
Author:     Martin Mokry <martin-kokos <AT> users <DOT> noreply <DOT> github <DOT> com>
AuthorDate: Tue Mar 28 18:46:39 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Jul 22 13:15:49 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d706cc72

dev-python/poetry: New package, v1.5.1

Signed-off-by: Martin Mokry <martin-kokos <AT> protonmail.com>
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/poetry/Manifest            |  1 +
 dev-python/poetry/metadata.xml        | 16 ++++++
 dev-python/poetry/poetry-1.5.1.ebuild | 92 +++++++++++++++++++++++++++++++++++
 3 files changed, 109 insertions(+)

diff --git a/dev-python/poetry/Manifest b/dev-python/poetry/Manifest
new file mode 100644
index 000000000000..7fe951512e55
--- /dev/null
+++ b/dev-python/poetry/Manifest
@@ -0,0 +1 @@
+DIST poetry-1.5.1.tar.gz 1469755 BLAKE2B ac60d6aabe69b1e46a6fbc188579034e716a470384571a611952489d175485cf997636c9206a53e29be073582e672f8010ab5f8f13b58a12dc644279753f903e SHA512 863bc4ea43b6fc5b340f50f007c76d2c253223d6bd55ea5c1ead4bc353c3d4cd85d51372a774276e14d9fca733fac9c2f582892fec950b74f25dc188dafa7a96

diff --git a/dev-python/poetry/metadata.xml b/dev-python/poetry/metadata.xml
new file mode 100644
index 000000000000..a87ee8e5007b
--- /dev/null
+++ b/dev-python/poetry/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM 'https://www.gentoo.org/dtd/metadata.dtd'>
+<pkgmetadata>
+	<maintainer type="project">
+		<email>python@gentoo.org</email>
+		<name>Python</name>
+	</maintainer>
+	<maintainer type="person">
+		<email>martin-kokos@protonmail.com</email>
+		<name>Martin Mokry</name>
+	</maintainer>
+	<upstream>
+		<remote-id type="pypi">poetry</remote-id>
+		<remote-id type="github">python-poetry/poetry</remote-id>
+	</upstream>
+</pkgmetadata>

diff --git a/dev-python/poetry/poetry-1.5.1.ebuild b/dev-python/poetry/poetry-1.5.1.ebuild
new file mode 100644
index 000000000000..9fa3a6a19ab3
--- /dev/null
+++ b/dev-python/poetry/poetry-1.5.1.ebuild
@@ -0,0 +1,92 @@
+# 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"
+
+RDEPEND="
+	>=dev-python/poetry-core-1.6.1[${PYTHON_USEDEP}]
+	>=dev-python/poetry-plugin-export-1.4.0[${PYTHON_USEDEP}]
+	>=dev-python/build-0.10.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-23.9.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.18[${PYTHON_USEDEP}]
+	>=dev-python/requests-toolbelt-0.10.1[${PYTHON_USEDEP}]
+	>=dev-python/shellingham-1.5.0[${PYTHON_USEDEP}]
+	>=dev-python/tomli-2.0.1[${PYTHON_USEDEP}]
+	>=dev-python/tomlkit-0.11.6[${PYTHON_USEDEP}]
+	>=dev-python/trove-classifiers-2022.5.19[${PYTHON_USEDEP}]
+	>=dev-python/virtualenv-20.22.0[${PYTHON_USEDEP}]
+	>=dev-python/cachecontrol-0.12.9[${PYTHON_USEDEP}]
+"
+
+DEPEND="
+	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() {
+	# Dependency on abandoned package cachy has been removed from poetry https://github.com/python-poetry/poetry/pull/5868
+	# and remains in tests only for time being, so we can skip them.
+	# removal of tests upstream https://github.com/python-poetry/poetry/pull/7437
+	sed -e "s/from cachy import CacheManager/from unittest import mock; CacheManager = mock.Mock # Gentoo ebuild patched/g" \
+		-i tests/console/commands/cache/conftest.py \
+		-i tests/utils/test_cache.py || die
+	sed -e 's:"cachy_file_cache", ::g' \
+		-i tests/utils/test_cache.py || die
+
+	distutils-r1_src_prepare
+}
+
+EPYTEST_DESELECT=(
+	# Dependency on abandoned package cachy has been removed from poetry https://github.com/python-poetry/poetry/pull/5868
+	# and remains in tests only for time being, so we can skip them.
+	# removal of tests upstream https://github.com/python-poetry/poetry/pull/7437
+	tests/console/commands/cache/test_clear.py::test_cache_clear_all
+	tests/console/commands/cache/test_clear.py::test_cache_clear_all_no
+	tests/console/commands/cache/test_clear.py::test_cache_clear_pkg
+	tests/console/commands/cache/test_clear.py::test_cache_clear_pkg_no
+	tests/utils/test_cache.py::test_cachy_compatibility
+
+	# 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
+
+	# 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


             reply	other threads:[~2023-07-22 13:16 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-22 13:16 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-07-28  6:13 [gentoo-commits] repo/gentoo:master commit in: dev-python/poetry/ Michał Górny
2023-07-28  6:13 Michał Górny
2023-07-28  9:26 Michał Górny
2023-08-21  2:52 Michał Górny
2023-08-22  4:12 Michał Górny
2023-09-14  2:51 Sam James
2023-11-03 18:35 Michał Górny
2023-11-17 13:32 Michał Górny
2023-11-17 13:32 Michał Górny
2023-12-30 18:32 Michał Górny
2024-02-26 17:48 Michał Górny
2024-02-27  6:18 Michał Górny
2024-03-02 19:47 Michał Górny
2024-05-09  4:08 Michał Górny
2024-05-09  4:08 Michał Górny
2024-05-19 17:55 Andrew Ammerlaan
2024-06-02 15:39 Andrew Ammerlaan
2024-07-09 14:50 Michał Górny
2024-12-07  6:33 Michał Górny
2024-12-07  6:33 Michał Górny
2025-01-06  6:42 Michał Górny
2025-01-06  6:42 Michał Górny
2025-01-06  6:42 Michał Górny
2025-01-12 18:39 Michał Górny
2025-01-13  4:37 Michał Górny
2025-02-01 10:13 Michał Górny
2025-02-16  3:15 Michał Górny
2025-02-17 20:47 Michał Górny
2025-03-06  7:30 Arthur Zamarin
2025-03-08 10:55 Michał Górny

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1690031749.d706cc721af59b0fa114e953c42cdc7782dec1a8.mgorny@gentoo \
    --to=mgorny@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox