mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-20 04:23:16 -04:00
dev-python/betterproto: renamed from python-betterproto, added 2.0.0b5
fixed tests for 2.0.0b4, fixed error with in source build Closes: https://bugs.gentoo.org/859775 Signed-off-by: Antonín Říha <antonin.riha@protonmail.com>
This commit is contained in:
2
dev-python/betterproto/Manifest
Normal file
2
dev-python/betterproto/Manifest
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
DIST betterproto-2.0.0_beta4.gh.tar.gz 137744 BLAKE2B 55cde21cca516ae935d8ff99303e3dcf78d952c470eaac2f91b5fa1dc20069e0ad150a0b59518d450c897547a3b3025d9ad683294adca5be6d66f06ba8034615 SHA512 10fc514e7a6d1ab87dd44e00d75d8f48752fa1ece26ccc671eeac502164aee2b8e4a30ec908e4abbb4b1c6671c72fc982764d74ccd0ac0f099d3533dcde64352
|
||||||
|
DIST betterproto-2.0.0_beta5.gh.tar.gz 122701 BLAKE2B 6083afab1759653c53f97fd0d65b96941588e7038bc24138d486105fe6d419eb79ca6b8d585263237b02fa40b626560c272c114db15fe5f649e499ba5d6798ab SHA512 b40ecd77ff731d1b157debcc81361aa11a8c94d8198e9e99e94014b883d1f8f34fec86a071de3db06edda37afa5813a5c04f6e29ff75d23da6b0ba1f990f827d
|
||||||
@@ -4,7 +4,7 @@
|
|||||||
EAPI=8
|
EAPI=8
|
||||||
|
|
||||||
DISTUTILS_USE_PEP517=poetry
|
DISTUTILS_USE_PEP517=poetry
|
||||||
PYTHON_COMPAT=( python3_{9..10} )
|
PYTHON_COMPAT=( python3_{9..11} )
|
||||||
|
|
||||||
inherit distutils-r1 optfeature
|
inherit distutils-r1 optfeature
|
||||||
|
|
||||||
@@ -15,11 +15,15 @@ if [[ ${PV} == 9999 ]]; then
|
|||||||
EGIT_REPO_URI="https://github.com/danielgtaylor/python-betterproto"
|
EGIT_REPO_URI="https://github.com/danielgtaylor/python-betterproto"
|
||||||
else
|
else
|
||||||
MY_PV="${PV/_beta/b}"
|
MY_PV="${PV/_beta/b}"
|
||||||
S="${WORKDIR}/${PN}-${MY_PV}"
|
S="${WORKDIR}/python-${PN}-${MY_PV}"
|
||||||
SRC_URI="https://github.com/danielgtaylor/${PN}/archive/refs/tags/v${MY_PV}.tar.gz -> ${P}.tar.gz"
|
SRC_URI="https://github.com/danielgtaylor/python-${PN}/archive/refs/tags/v${MY_PV}.tar.gz -> ${P}.gh.tar.gz"
|
||||||
KEYWORDS="~amd64 ~x86"
|
KEYWORDS="~amd64 ~x86"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}/betterproto-2.0.0b4-fix-tests.patch"
|
||||||
|
)
|
||||||
|
|
||||||
LICENSE="MIT"
|
LICENSE="MIT"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
|
|
||||||
@@ -42,13 +46,8 @@ distutils_enable_tests pytest
|
|||||||
distutils_enable_sphinx docs \
|
distutils_enable_sphinx docs \
|
||||||
'>=dev-python/sphinx-rtd-theme-0.5.0'
|
'>=dev-python/sphinx-rtd-theme-0.5.0'
|
||||||
|
|
||||||
python_prepare() {
|
|
||||||
default
|
|
||||||
python_fix_shebang tests/generate.py src/betterproto/plugin/main.py
|
|
||||||
}
|
|
||||||
|
|
||||||
python_test() {
|
python_test() {
|
||||||
"${EPYTHON}" -m tests.generate -v
|
"${EPYTHON}" -m tests.generate
|
||||||
epytest
|
epytest
|
||||||
}
|
}
|
||||||
|
|
||||||
52
dev-python/betterproto/betterproto-2.0.0_beta5.ebuild
Normal file
52
dev-python/betterproto/betterproto-2.0.0_beta5.ebuild
Normal file
@@ -0,0 +1,52 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
DISTUTILS_USE_PEP517=poetry
|
||||||
|
PYTHON_COMPAT=( python3_{9..11} )
|
||||||
|
|
||||||
|
inherit distutils-r1 optfeature
|
||||||
|
|
||||||
|
DESCRIPTION="Better Protobuf / gRPC Support for Python"
|
||||||
|
HOMEPAGE="https://github.com/danielgtaylor/python-betterproto"
|
||||||
|
if [[ ${PV} == 9999 ]]; then
|
||||||
|
inherit git-r3
|
||||||
|
EGIT_REPO_URI="https://github.com/danielgtaylor/python-betterproto"
|
||||||
|
else
|
||||||
|
MY_PV="${PV/_beta/b}"
|
||||||
|
S="${WORKDIR}/python-${PN}-${MY_PV}"
|
||||||
|
SRC_URI="https://github.com/danielgtaylor/python-${PN}/archive/refs/tags/v${MY_PV}.tar.gz -> ${P}.gh.tar.gz"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
fi
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
>=dev-python/grpclib-0.4.1[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/python-dateutil-2.8.0[${PYTHON_USEDEP}]
|
||||||
|
"
|
||||||
|
BDEPEND="
|
||||||
|
test? (
|
||||||
|
>=dev-python/black-19.3[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/isort-5.10.1[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/jinja-3.0.3[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/grpcio-tools-1.40.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/pytest-mock-3.1.1[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/pytest-asyncio-0.12.0[${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
distutils_enable_tests pytest
|
||||||
|
distutils_enable_sphinx docs \
|
||||||
|
'>=dev-python/sphinx-rtd-theme-0.5.0'
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
"${EPYTHON}" -m tests.generate
|
||||||
|
epytest
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
optfeature "protoc compilation support" "dev-python/black dev-python/isort dev-python/grpcio-tools dev-python/jinja"
|
||||||
|
}
|
||||||
@@ -4,7 +4,7 @@
|
|||||||
EAPI=8
|
EAPI=8
|
||||||
|
|
||||||
DISTUTILS_USE_PEP517=poetry
|
DISTUTILS_USE_PEP517=poetry
|
||||||
PYTHON_COMPAT=( python3_{9..10} )
|
PYTHON_COMPAT=( python3_{9..11} )
|
||||||
|
|
||||||
inherit distutils-r1 optfeature
|
inherit distutils-r1 optfeature
|
||||||
|
|
||||||
@@ -15,8 +15,8 @@ if [[ ${PV} == 9999 ]]; then
|
|||||||
EGIT_REPO_URI="https://github.com/danielgtaylor/python-betterproto"
|
EGIT_REPO_URI="https://github.com/danielgtaylor/python-betterproto"
|
||||||
else
|
else
|
||||||
MY_PV="${PV/_beta/b}"
|
MY_PV="${PV/_beta/b}"
|
||||||
S="${WORKDIR}/${PN}-${MY_PV}"
|
S="${WORKDIR}/python-${PN}-${MY_PV}"
|
||||||
SRC_URI="https://github.com/danielgtaylor/${PN}/archive/refs/tags/v${MY_PV}.tar.gz -> ${P}.tar.gz"
|
SRC_URI="https://github.com/danielgtaylor/python-${PN}/archive/refs/tags/v${MY_PV}.tar.gz -> ${P}.tar.gz"
|
||||||
KEYWORDS="~amd64 ~x86"
|
KEYWORDS="~amd64 ~x86"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -42,13 +42,8 @@ distutils_enable_tests pytest
|
|||||||
distutils_enable_sphinx docs \
|
distutils_enable_sphinx docs \
|
||||||
'>=dev-python/sphinx-rtd-theme-0.5.0'
|
'>=dev-python/sphinx-rtd-theme-0.5.0'
|
||||||
|
|
||||||
python_prepare() {
|
|
||||||
default
|
|
||||||
python_fix_shebang tests/generate.py src/betterproto/plugin/main.py
|
|
||||||
}
|
|
||||||
|
|
||||||
python_test() {
|
python_test() {
|
||||||
"${EPYTHON}" -m tests.generate -v
|
"${EPYTHON}" -m tests.generate
|
||||||
epytest
|
epytest
|
||||||
}
|
}
|
||||||
|
|
||||||
1086
dev-python/betterproto/files/betterproto-2.0.0b4-fix-tests.patch
Normal file
1086
dev-python/betterproto/files/betterproto-2.0.0b4-fix-tests.patch
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1 +0,0 @@
|
|||||||
DIST python-betterproto-2.0.0_beta4.tar.gz 137744 BLAKE2B 55cde21cca516ae935d8ff99303e3dcf78d952c470eaac2f91b5fa1dc20069e0ad150a0b59518d450c897547a3b3025d9ad683294adca5be6d66f06ba8034615 SHA512 10fc514e7a6d1ab87dd44e00d75d8f48752fa1ece26ccc671eeac502164aee2b8e4a30ec908e4abbb4b1c6671c72fc982764d74ccd0ac0f099d3533dcde64352
|
|
||||||
Reference in New Issue
Block a user