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/pydantic/
Date: Sat,  9 Apr 2022 16:37:01 +0000 (UTC)	[thread overview]
Message-ID: <1649522219.f488163d4fc1834b8727556be3084702293ead72.mgorny@gentoo> (raw)

commit:     f488163d4fc1834b8727556be3084702293ead72
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Apr  9 16:36:48 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Apr  9 16:36:59 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f488163d

dev-python/pydantic: Switch to PEP517 build

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/pydantic/pydantic-1.9.0-r1.ebuild | 73 ++++++++++++++++++++++++++++
 1 file changed, 73 insertions(+)

diff --git a/dev-python/pydantic/pydantic-1.9.0-r1.ebuild b/dev-python/pydantic/pydantic-1.9.0-r1.ebuild
new file mode 100644
index 000000000000..1e26b96ea70b
--- /dev/null
+++ b/dev-python/pydantic/pydantic-1.9.0-r1.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( pypy3 python3_{8..10} )
+
+inherit distutils-r1
+
+DESCRIPTION="Data parsing and validation using Python type hints"
+HOMEPAGE="https://github.com/samuelcolvin/pydantic"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+
+RDEPEND="
+	dev-python/typing-extensions[${PYTHON_USEDEP}]
+"
+BDEPEND="
+	dev-python/cython[${PYTHON_USEDEP}]
+	test? (
+		dev-python/hypothesis[${PYTHON_USEDEP}]
+		dev-python/pytest-mock[${PYTHON_USEDEP}]
+		dev-python/python-dotenv[${PYTHON_USEDEP}]
+		dev-python/python-email-validator[${PYTHON_USEDEP}]
+	)
+"
+
+distutils_enable_tests pytest
+
+src_prepare() {
+	sed -i -e '/CFLAGS/d' setup.py || die
+	distutils-r1_src_prepare
+}
+
+python_compile() {
+	distutils-r1_python_compile
+	# "setup.py clean" is broken
+	# TODO: remove this if distutils-r1.eclass is updated to do rm
+	rm -rf build || die
+}
+
+python_test() {
+	local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+	local -x PYTEST_PLUGINS=pytest_mock
+
+	local EPYTEST_DESELECT=(
+		# flaky test, known upstream
+		tests/test_hypothesis_plugin.py::test_can_construct_models_with_all_fields
+	)
+	case ${EPYTHON} in
+		python3.8)
+			EPYTEST_DESELECT+=(
+				# Those fail on python 3.8 as None changed typing semantic on >=3.9
+				"tests/test_types.py::test_none[value_type3]"
+				tests/test_typing.py::test_is_none_type
+			)
+			;;
+		pypy3)
+			EPYTEST_DESELECT+=(
+				tests/test_private_attributes.py::test_private_attribute
+				tests/test_private_attributes.py::test_private_attribute_annotation
+				tests/test_private_attributes.py::test_private_attribute_factory
+				tests/test_private_attributes.py::test_private_attribute_multiple_inheritance
+				tests/test_private_attributes.py::test_underscore_attrs_are_private
+			)
+			;;
+	esac
+	epytest
+}


             reply	other threads:[~2022-04-09 16:37 UTC|newest]

Thread overview: 299+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-09 16:37 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-11-22 12:32 [gentoo-commits] repo/gentoo:master commit in: dev-python/pydantic/ Michał Górny
2024-11-21  6:01 Michał Górny
2024-11-14  4:39 Michał Górny
2024-11-07 20:12 Michał Górny
2024-10-14 22:37 Sam James
2024-10-08 20:46 Arthur Zamarin
2024-10-05 11:48 Arthur Zamarin
2024-10-05 11:47 Jakov Smolić
2024-10-05  8:27 Arthur Zamarin
2024-10-05  8:19 Arthur Zamarin
2024-09-28 10:33 Michał Górny
2024-09-18 14:03 Michał Górny
2024-09-17 16:00 Sam James
2024-09-17 10:14 Arthur Zamarin
2024-09-10  7:06 Michał Górny
2024-09-06  9:25 Michał Górny
2024-08-31  6:55 Michał Górny
2024-08-20  1:43 Michał Górny
2024-08-09 11:39 Sam James
2024-07-27  7:35 Arthur Zamarin
2024-07-11 19:23 Michał Górny
2024-07-04  5:13 Michał Górny
2024-07-02  6:58 Michał Górny
2024-06-29 16:58 Michał Górny
2024-06-29 10:55 Sam James
2024-06-29 10:55 Sam James
2024-06-29 10:55 Sam James
2024-06-29  6:33 Arthur Zamarin
2024-06-28  5:19 Michał Górny
2024-06-21 16:59 Michał Górny
2024-06-21  4:23 Arthur Zamarin
2024-06-19  8:46 Sam James
2024-06-18 18:12 Arthur Zamarin
2024-06-18 18:12 Arthur Zamarin
2024-06-18 18:12 Arthur Zamarin
2024-06-18 18:12 Arthur Zamarin
2024-06-18 18:12 Arthur Zamarin
2024-06-14 12:19 Michał Górny
2024-06-14  3:03 Sam James
2024-06-13  4:05 Michał Górny
2024-06-13  0:16 Sam James
2024-06-12 11:17 Arthur Zamarin
2024-06-12  8:42 Jakov Smolić
2024-06-12  8:42 Jakov Smolić
2024-06-12  7:56 Arthur Zamarin
2024-06-12  7:19 Arthur Zamarin
2024-06-04  5:19 Michał Górny
2024-06-01  4:07 Michał Górny
2024-06-01  3:46 Ionen Wolkens
2024-05-29  3:48 Michał Górny
2024-05-16 17:28 Arthur Zamarin
2024-05-08  8:18 Michał Górny
2024-05-08  7:52 Sam James
2024-05-08  7:50 Michał Górny
2024-05-08  7:50 Michał Górny
2024-04-23 14:02 Michał Górny
2024-04-12  3:03 Michał Górny
2024-03-30 15:28 Michał Górny
2024-03-30 14:53 Michał Górny
2024-03-30 14:53 Michał Górny
2024-03-30 14:34 Michał Górny
2024-03-30 14:28 Michał Górny
2024-03-30 14:25 Michał Górny
2024-03-17 13:06 Michał Górny
2024-03-17  9:29 Arthur Zamarin
2024-03-16 14:31 Arthur Zamarin
2024-03-13 19:38 Arthur Zamarin
2024-03-13 15:28 Arthur Zamarin
2024-03-13 15:28 Arthur Zamarin
2024-03-13 14:03 Arthur Zamarin
2024-03-13 13:50 Arthur Zamarin
2024-03-13  0:54 Sam James
2024-03-13  0:54 Sam James
2024-03-12 17:51 Michał Górny
2024-03-10 16:37 Michał Górny
2024-03-03  4:39 Jakov Smolić
2024-03-02 15:27 Arthur Zamarin
2024-02-28  4:03 Michał Górny
2024-02-24  8:49 Michał Górny
2024-02-20 14:06 Jakov Smolić
2024-02-06  2:46 Michał Górny
2024-02-03 15:02 Michał Górny
2024-02-03 14:03 Arthur Zamarin
2024-02-03 13:38 Sam James
2024-02-03  8:22 Arthur Zamarin
2024-02-03  8:22 Arthur Zamarin
2024-02-03  8:22 Arthur Zamarin
2024-02-03  8:22 Arthur Zamarin
2024-02-03  8:22 Arthur Zamarin
2024-02-03  7:22 Michał Górny
2024-01-30 12:45 Michał Górny
2024-01-21  7:58 Viorel Munteanu
2024-01-20  7:09 Michał Górny
2024-01-19 18:28 Arthur Zamarin
2024-01-06 11:07 Sam James
2024-01-06 10:52 Michał Górny
2024-01-06 10:24 Michał Górny
2024-01-06 10:24 Michał Górny
2023-12-23  5:12 Michał Górny
2023-12-02 14:09 Arthur Zamarin
2023-12-02 14:09 Arthur Zamarin
2023-12-02 13:59 Arthur Zamarin
2023-12-02 13:59 Arthur Zamarin
2023-12-02 13:30 Michał Górny
2023-12-02 13:30 Michał Górny
2023-12-01  3:30 Sam James
2023-11-23  4:19 Michał Górny
2023-11-18 15:47 Michał Górny
2023-11-17  8:54 Jakov Smolić
2023-11-15 14:46 Michał Górny
2023-11-14  4:38 Michał Górny
2023-11-10 15:10 Arthur Zamarin
2023-11-06 11:09 Michał Górny
2023-10-27 14:04 Michał Górny
2023-10-27 14:04 Michał Górny
2023-10-27 12:17 Sam James
2023-10-24 19:23 Arthur Zamarin
2023-10-24 16:51 Arthur Zamarin
2023-10-24 16:51 Arthur Zamarin
2023-10-24  9:28 Arthur Zamarin
2023-10-24  9:28 Arthur Zamarin
2023-10-24  9:28 Arthur Zamarin
2023-10-04  7:40 Joonas Niilola
2023-10-04  7:40 Joonas Niilola
2023-09-28 17:08 Michał Górny
2023-09-28  4:43 Michał Górny
2023-09-27 17:59 WANG Xuerui
2023-09-26 16:56 Michał Górny
2023-09-26  4:42 Michał Górny
2023-09-22  3:11 Michał Górny
2023-08-24  4:30 Michał Górny
2023-08-22 12:04 Michał Górny
2023-08-19 16:52 Sam James
2023-08-19 15:58 Sam James
2023-08-17 18:55 Michał Górny
2023-08-17  6:04 Sam James
2023-08-16  7:03 Sam James
2023-08-16  4:24 Sam James
2023-08-16  2:26 Sam James
2023-08-15  9:32 Michał Górny
2023-08-15  7:34 Sam James
2023-08-05 21:38 Sam James
2023-08-05 21:36 Sam James
2023-08-05 16:13 Arthur Zamarin
2023-08-05 15:46 Arthur Zamarin
2023-08-05 15:46 Arthur Zamarin
2023-08-05 15:15 Arthur Zamarin
2023-08-05 15:01 Michał Górny
2023-07-26  6:03 Michał Górny
2023-07-25  5:20 Michał Górny
2023-07-24 11:30 Michał Górny
2023-07-15  3:08 Michał Górny
2023-07-15  3:04 Michał Górny
2023-07-10 19:35 Arthur Zamarin
2023-07-07  8:11 Jakov Smolić
2023-07-07  3:15 Michał Górny
2023-07-06 13:54 Michał Górny
2023-07-06  3:31 Michał Górny
2023-07-05  7:58 Michał Górny
2023-07-05  7:58 Michał Górny
2023-07-05  7:58 Michał Górny
2023-07-01  7:10 Michał Górny
2023-07-01  5:22 Michał Górny
2023-06-27 14:16 Michał Górny
2023-06-27 14:06 Sam James
2023-06-27 10:02 Sam James
2023-06-27  7:54 Sam James
2023-06-27  7:54 Sam James
2023-06-27  7:14 Sam James
2023-06-27  7:14 Sam James
2023-06-27  7:14 Sam James
2023-06-27  6:43 Sam James
2023-06-24  1:43 Sam James
2023-06-20  5:48 Michał Górny
2023-06-20  5:48 Michał Górny
2023-06-08  5:13 Michał Górny
2023-06-04 16:56 Michał Górny
2023-05-30 18:37 Michał Górny
2023-05-24  7:02 Michał Górny
2023-05-04 16:22 Michał Górny
2023-05-03  7:54 Fabian Groffen
2023-04-28 16:53 Michał Górny
2023-04-28 16:29 Arthur Zamarin
2023-04-28 16:22 Arthur Zamarin
2023-04-28 15:56 Arthur Zamarin
2023-04-28 15:55 Arthur Zamarin
2023-04-28 15:55 Arthur Zamarin
2023-04-28 15:09 Arthur Zamarin
2023-04-28 15:07 Arthur Zamarin
2023-04-28 14:50 Arthur Zamarin
2023-03-25  5:02 Michał Górny
2023-03-25  1:43 Sam James
2023-03-24 20:46 Arthur Zamarin
2023-03-24 20:14 Arthur Zamarin
2023-03-24 20:10 Arthur Zamarin
2023-03-24 20:09 Arthur Zamarin
2023-03-24 20:01 Arthur Zamarin
2023-03-24 19:54 Arthur Zamarin
2023-03-24 19:48 Arthur Zamarin
2023-03-23 16:36 Michał Górny
2023-03-09  5:58 Michał Górny
2023-02-19  4:04 Michał Górny
2023-02-16  5:04 Michał Górny
2023-02-03 15:17 Michał Górny
2023-02-03 15:17 Michał Górny
2023-02-03 14:23 Arthur Zamarin
2023-02-03 13:04 Sam James
2023-02-03 12:46 Sam James
2023-02-03 12:46 Sam James
2023-02-03 12:46 Sam James
2023-02-03 12:34 Sam James
2023-02-03 12:24 Arthur Zamarin
2023-02-03 12:09 Arthur Zamarin
2022-12-30 20:49 Arthur Zamarin
2022-12-30  7:08 Michał Górny
2022-10-11 15:48 Michał Górny
2022-10-11 12:24 Michał Górny
2022-10-09 16:15 James Le Cuirot
2022-10-09 10:10 Michał Górny
2022-10-09  8:53 Agostino Sarubbo
2022-10-09  5:22 Arthur Zamarin
2022-10-08 19:53 Arthur Zamarin
2022-10-08 19:28 Sam James
2022-10-08 19:28 Sam James
2022-10-08 19:24 Arthur Zamarin
2022-10-08 16:03 Arthur Zamarin
2022-10-08 16:03 Arthur Zamarin
2022-09-26  7:31 Michał Górny
2022-09-26  4:17 Arthur Zamarin
2022-09-26  4:16 Arthur Zamarin
2022-09-26  0:18 Sam James
2022-09-25 23:58 Sam James
2022-09-25 23:58 Sam James
2022-09-25 18:55 Arthur Zamarin
2022-09-25 18:28 Arthur Zamarin
2022-09-25 18:24 Arthur Zamarin
2022-09-25 18:24 Arthur Zamarin
2022-09-20  8:09 Michał Górny
2022-09-20  7:43 Jakov Smolić
2022-09-19 20:31 Arthur Zamarin
2022-09-19 20:19 Arthur Zamarin
2022-09-19 20:15 Arthur Zamarin
2022-09-19 20:14 Jakov Smolić
2022-09-19 20:08 Arthur Zamarin
2022-09-19 20:02 Arthur Zamarin
2022-09-06 17:54 Arthur Zamarin
2022-08-31 18:07 Arthur Zamarin
2022-08-25  7:40 Michał Górny
2022-08-12  6:39 Arthur Zamarin
2022-06-24 10:21 Michał Górny
2022-06-24  9:13 Arthur Zamarin
2022-06-14 21:16 Jakov Smolić
2022-06-14  6:09 Jakov Smolić
2022-06-13 16:29 Sam James
2022-06-13 10:21 Agostino Sarubbo
2022-06-13  9:46 Agostino Sarubbo
2022-06-13  7:13 Agostino Sarubbo
2022-06-13  7:07 Agostino Sarubbo
2022-05-20  8:29 Michał Górny
2022-05-11 17:54 Michał Górny
2022-05-11 12:56 Jakov Smolić
2022-05-01 11:49 Michał Górny
2022-05-01 11:49 Michał Górny
2022-05-01 11:49 Michał Górny
2022-05-01  1:52 WANG Xuerui
2022-04-08 14:23 Arthur Zamarin
2022-04-08 14:23 Arthur Zamarin
2022-04-08 11:09 Michał Górny
2022-04-08 11:09 Michał Górny
2022-02-05 18:16 Arthur Zamarin
2022-02-04 18:46 Sam James
2022-02-04  7:28 Agostino Sarubbo
2022-02-03 21:20 Arthur Zamarin
2022-02-03 21:07 Arthur Zamarin
2022-02-03 21:00 Arthur Zamarin
2022-02-03 20:57 Arthur Zamarin
2022-02-03 20:57 Arthur Zamarin
2022-01-01  7:30 Arthur Zamarin
2021-12-04  8:54 Arthur Zamarin
2021-12-04  8:54 Arthur Zamarin
2021-11-24 23:59 Sam James
2021-11-19  2:43 Sam James
2021-11-18 10:50 Sam James
2021-11-18 10:39 Sam James
2021-11-18  9:09 Sam James
2021-11-13 21:09 Jakov Smolić
2021-11-13 19:50 Sam James
2021-11-13 12:51 Jakov Smolić
2021-10-17  9:20 Michał Górny
2021-10-10 20:43 Sam James
2021-10-10 20:38 Sam James
2021-10-10  2:20 Sam James
2021-10-10  0:09 Sam James
2021-08-14  8:03 Michał Górny
2021-05-13 15:13 Michał Górny
2021-05-12  8:37 Michał Górny
2021-03-09 11:28 Michał Górny
2021-03-09  8:47 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=1649522219.f488163d4fc1834b8727556be3084702293ead72.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