Skip to content

Commit

Permalink
dev-python/pydantic: add 1.10.15
Browse files Browse the repository at this point in the history
  • Loading branch information
onkelbeh committed Jun 26, 2024
1 parent 2d14851 commit e66d429
Show file tree
Hide file tree
Showing 4 changed files with 100 additions and 7 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -606,12 +606,12 @@ A daily compile test is run at Github with Python 3.9 to catch general faults. E

## Licenses
This repository itself is released under GPL-3 (like most Gentoo repositories), all work on the depending components under the licenses they came from. Perhaps you came here because I filed an issue at your component about a bad or missing license. It is easy to [assign a license](https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/adding-a-license-to-a-repository). During cleanups and license investigations I have been asked often which license to choose. I am not a lawyer, but I can offer the following table, counted over this repository, perhaps this helps your decision. If a package has more than one license listed, all of them are counted.
There are 1941 Ebuilds in total, 1930 of them have in total 1953 (42 different) licenses assigned.
There are 1943 Ebuilds in total, 1932 of them have in total 1955 (42 different) licenses assigned.

|License| Ebuilds using it|
|-------|-----|
|MIT|1119|
|Apache-2.0|432|
|MIT|1120|
|Apache-2.0|433|
|GPL-3|114|
|BSD|110|
|LGPL-3|25|
Expand Down
4 changes: 3 additions & 1 deletion dev-python/pydantic/Manifest
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
DIST pydantic-1.10.12.gh.tar.gz 766366 BLAKE2B b00885b86ef331f3f8531d1514f4e3e1ef10d009b35453c6d5a6295ecfe2d2b842f66c7ea2a79ca1d235d54fa38b42432e14804163f944c4455f05c06869815a SHA512 413d433decfa3bb7173d6f4e6e06f746cfbf95f6d27c6a17098216ba81d64d7f8bb956cda195d0676559f96278f3800c77be53ecf46496ac009f130120642cc2
EBUILD pydantic-1.10.12.ebuild 2518 BLAKE2B 84f7ee9b095b56518792f81df308652cdc725c6accef3388615bfea735c676f45e449e0c60ec030349b067a8a97833669071f493325c6644c7a73d08d348dcc3 SHA512 7fedbe4158ce80d41e8686ed19618bb818d3efdf8d508a8d4fdef7f8525a3e4e1364a340ba0d710f2b33327a280e33e5df15c0ea2920446dfee3d1b95cc4862f
DIST pydantic-1.10.15.gh.tar.gz 767909 BLAKE2B 26bc325d91fc8df4ced6f7ac3e083ced00fd5b4255dadf23c95b15ec554c36cdbdf13a457538eb5916837f432c4895d40d1a3af7bb9ac0cc199c14b70951e231 SHA512 58dfb35a832f679c50fc01db3ebabe936d49251c52530c4363a72ecba41dd30bafae8665ae380adf5abe104082b3802fa87ac0351d5c2dde2f44a433b43f8b5c
EBUILD pydantic-1.10.12.ebuild 2373 BLAKE2B df1b5e2296bf4b78aefa20ad4c9b2d3c2ddf80724e86ad6604cd0a52b4f17514314132b3edf1d0a1f968f2cc9ab12cb0e762b9f461bc04ca86403a6265e18693 SHA512 57d428c7dc05b2510a085ea2213ffa400be154659411dbb406d0b3f1f81c298a17b27e93ef0d9ee49940732d3af44eb4a1f6c875bdfb980329371b1f6b9c2c17
EBUILD pydantic-1.10.15.ebuild 2373 BLAKE2B df1b5e2296bf4b78aefa20ad4c9b2d3c2ddf80724e86ad6604cd0a52b4f17514314132b3edf1d0a1f968f2cc9ab12cb0e762b9f461bc04ca86403a6265e18693 SHA512 57d428c7dc05b2510a085ea2213ffa400be154659411dbb406d0b3f1f81c298a17b27e93ef0d9ee49940732d3af44eb4a1f6c875bdfb980329371b1f6b9c2c17
MISC metadata.xml 561 BLAKE2B 9cb2851ece8c8bd005a45008efe6d14d990f82832700f641418c15921f368de9bf2b20f9713362f5308a871a10c60a54ddce4e095a4a60209c89bde964c71ef7 SHA512 2f26f32c0d937153966ffbc3b9bb67252043dabfd9ca96b2ba854b111300a0c8bc89a664e439cda3bcc39597c3a29d28b3aa84172ece0f1d818b49cda746ee33
6 changes: 3 additions & 3 deletions dev-python/pydantic/pydantic-1.10.12.ebuild
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Copyright 1999-2023 Gentoo Authors
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( pypy3 python3_{10..12} )
PYTHON_COMPAT=( python3_{11..13} )

inherit distutils-r1

Expand All @@ -23,7 +23,7 @@ S=${WORKDIR}/${MY_P}

LICENSE="MIT"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
KEYWORDS="amd64 arm arm64 x86"
IUSE="native-extensions"

RDEPEND="
Expand Down
91 changes: 91 additions & 0 deletions dev-python/pydantic/pydantic-1.10.15.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{11..13} )

inherit distutils-r1

MY_P=${P/_beta/b}
DESCRIPTION="Data parsing and validation using Python type hints"
HOMEPAGE="
https://github.com/pydantic/pydantic/
https://pypi.org/project/pydantic/
"
SRC_URI="
https://github.com/pydantic/pydantic/archive/v${PV/_beta/b}.tar.gz
-> ${MY_P}.gh.tar.gz
"
S=${WORKDIR}/${MY_P}

LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 arm arm64 x86"
IUSE="native-extensions"

RDEPEND="
>=dev-python/typing-extensions-4.1.0[${PYTHON_USEDEP}]
"
BDEPEND="
native-extensions? (
<dev-python/cython-3[${PYTHON_USEDEP}]
)
test? (
>=dev-python/email-validator-1.2.1[${PYTHON_USEDEP}]
dev-python/hypothesis[${PYTHON_USEDEP}]
dev-python/pytest-mock[${PYTHON_USEDEP}]
dev-python/python-dotenv[${PYTHON_USEDEP}]
)
"

distutils_enable_tests pytest

src_prepare() {
sed -i -e '/CFLAGS/d' setup.py || die
distutils-r1_src_prepare
}

python_compile() {
if [[ ${EPYTHON} == pypy3 ]] || ! use native-extensions; then
# do not build extensions on PyPy to workaround
# https://github.com/cython/cython/issues/4763
local -x SKIP_CYTHON=1
fi
distutils-r1_python_compile
}

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
# mypy linting causes regressions with new mypy versions
tests/mypy
)
case ${EPYTHON} in
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
)
;;
python3.12)
EPYTEST_DESELECT+=(
tests/test_abc.py::test_model_subclassing_abstract_base_classes_without_implementation_raises_exception
tests/test_generics.py::test_partial_specification_name
tests/test_generics.py::test_parse_generic_json
tests/test_types.py::test_secretfield
)
;;
esac
rm -rf pydantic || die
epytest
}

0 comments on commit e66d429

Please sign in to comment.