diff --git a/dev-python/openapi-spec-validator/Manifest b/dev-python/openapi-spec-validator/Manifest index 4cbee1de96130..aeed826585a9e 100644 --- a/dev-python/openapi-spec-validator/Manifest +++ b/dev-python/openapi-spec-validator/Manifest @@ -5,3 +5,5 @@ DIST openapi_spec_validator-0.8.4.tar.gz 1756847 BLAKE2B 2f9684ecbbefce4dcabb547 DIST openapi_spec_validator-0.8.4.tar.gz.provenance 10068 BLAKE2B 64981dfc9c5ca841cd1f625de30eac52f39ec3e32015cbb74e6607a6f7e3384e217dc30a76c6c36316f07b9911c62342091d98ee706334bc6c45e6349708bdfc SHA512 93aad020d63176749dd2455356deeea6524f98ae2a27186e3445f4121f139d0817caf8d6cab9862a00fcc7b1137181cdc40c31c10f887edc8f41f7393f536e06 DIST openapi_spec_validator-0.8.5.tar.gz 1756845 BLAKE2B b9405997f5ca94645b02cce34663f4eb3c0b91eeb3e08e35c35b5aecbe76daf1dad91a8aafed9b1f03fe2d532cfe929146bbe85c030b4492f3b9ba47ddf7b1c3 SHA512 e1da428809c5ababe0ac58aee5ab7f0b93c9b5bb80fee4c711c9c22d8c413f3235d970f2b044b9a6df6890ee84f3c1d88148b0ef4cec970a093490a4e2c3744e DIST openapi_spec_validator-0.8.5.tar.gz.provenance 10149 BLAKE2B 62c9f653c4973377f2a922bf093506830a51410becabc7f431d95f849bdf267c3f71faefe28a484db7b30d3fd0b173e243f6b7a3624d1a3c87996e23f9b35933 SHA512 4d2bb2400872a8d657359eb2e23d78edf8d4c951ab8e326b357cef73ff5879b9d947f64fc2c22f196ec49fdb7fabd87bbfda88c2093611984c7d8ab85bf70a07 +DIST openapi_spec_validator-0.9.0.tar.gz 1756839 BLAKE2B 8bd91508ebf3ae41b278902f79e2f94e9c19b873f3390a36a20e1aef8adb43f65da6ec50080db2a0d60852603d12244789faa89b8a5bb174830dcfe937d9c52c SHA512 3ac96550a803f9be06c817ce414e9ca5e63a4df209db1d813b2491376e4184fe76e508fee63b925e8d6973232c481ea0c0ccb1f8b9acce53d58d0175691a465a +DIST openapi_spec_validator-0.9.0.tar.gz.provenance 10008 BLAKE2B 658621b60eb15809628631c1b1060d442156e3656dfe4628c0fd2638000dad2bd9585e36805e1265b8b38c154ea38f0b345890afe691a054cfd36e87119e4c07 SHA512 74473bdfa52ba2e047b41185c4f217f004860636518395a89e1c6cf435ea640bffd7be9e92e15c7af7bc42eb5f2629f151c01fb74e8c9fc67fff190ba22a7788 diff --git a/dev-python/openapi-spec-validator/openapi-spec-validator-0.9.0.ebuild b/dev-python/openapi-spec-validator/openapi-spec-validator-0.9.0.ebuild new file mode 100644 index 0000000000000..2beec9bc280f3 --- /dev/null +++ b/dev-python/openapi-spec-validator/openapi-spec-validator-0.9.0.ebuild @@ -0,0 +1,57 @@ +# Copyright 2022-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=poetry +PYPI_VERIFY_REPO=https://github.com/python-openapi/openapi-spec-validator +PYTHON_COMPAT=( pypy3_11 python3_{11..14} ) + +inherit distutils-r1 pypi + +DESCRIPTION="OpenAPI 2.0 (aka Swagger) and OpenAPI 3.0 spec validator" +HOMEPAGE=" + https://github.com/python-openapi/openapi-spec-validator/ + https://pypi.org/project/openapi-spec-validator/ +" + +LICENSE="BSD" +SLOT="0" +if [[ ${PV} != *_beta* ]]; then + KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86" +fi + +RDEPEND=" + >=dev-python/jsonschema-4.26.0[${PYTHON_USEDEP}] + >=dev-python/jsonschema-path-0.5.0[${PYTHON_USEDEP}] + >=dev-python/lazy-object-proxy-1.7.1[${PYTHON_USEDEP}] + >=dev-python/openapi-schema-validator-0.9.0[${PYTHON_USEDEP}] + >=dev-python/pydantic-2.0.0[${PYTHON_USEDEP}] + >=dev-python/pydantic-settings-2.0.0[${PYTHON_USEDEP}] +" + +EPYTEST_PLUGINS=() +distutils_enable_tests pytest + +EPYTEST_DESELECT=( + # Internet + tests/integration/test_shortcuts.py::TestPetstoreV2Example + tests/integration/test_shortcuts.py::TestApiV2WithExampe + tests/integration/test_shortcuts.py::TestPetstoreV2ExpandedExample + tests/integration/test_shortcuts.py::TestPetstoreExample + tests/integration/test_shortcuts.py::TestRemoteValidatev2SpecUrl + tests/integration/test_shortcuts.py::TestRemoteValidatev30SpecUrl + tests/integration/test_shortcuts.py::TestApiWithExample + tests/integration/test_shortcuts.py::TestPetstoreExpandedExample + tests/integration/test_validate.py::TestPetstoreExample + tests/integration/test_validate.py::TestApiWithExample + tests/integration/test_validate.py::TestPetstoreExpandedExample + tests/integration/validation/test_validators.py +) + +src_prepare() { + sed -i -e '/--cov/d' pyproject.toml || die + # remove meaningless upper bounds + sed -i -e 's:,<[0-9.]*::' pyproject.toml || die + distutils-r1_src_prepare +}