* [gentoo-commits] repo/proj/guru:dev commit in: dev-python/python-betterproto/
@ 2022-05-10 22:43 Antonín Říha
0 siblings, 0 replies; 5+ messages in thread
From: Antonín Říha @ 2022-05-10 22:43 UTC (permalink / raw
To: gentoo-commits
commit: c7a13341fbc904dfb399f542009138bea12def11
Author: Antonín Říha <antonin.riha <AT> protonmail <DOT> com>
AuthorDate: Tue May 10 22:43:19 2022 +0000
Commit: Antonín Říha <antonin.riha <AT> protonmail <DOT> com>
CommitDate: Tue May 10 22:43:19 2022 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=c7a13341
dev-python/python-betterproto: new ebuild
Signed-off-by: Antonín Říha <antonin.riha <AT> protonmail.com>
dev-python/python-betterproto/Manifest | 1 +
dev-python/python-betterproto/metadata.xml | 13 ++++++
.../python-betterproto-2.0.0_beta4.ebuild | 53 ++++++++++++++++++++++
.../python-betterproto-9999.ebuild | 53 ++++++++++++++++++++++
4 files changed, 120 insertions(+)
diff --git a/dev-python/python-betterproto/Manifest b/dev-python/python-betterproto/Manifest
new file mode 100644
index 000000000..07be9d4d8
--- /dev/null
+++ b/dev-python/python-betterproto/Manifest
@@ -0,0 +1 @@
+DIST python-betterproto-2.0.0_beta4.tar.gz 137744 BLAKE2B 55cde21cca516ae935d8ff99303e3dcf78d952c470eaac2f91b5fa1dc20069e0ad150a0b59518d450c897547a3b3025d9ad683294adca5be6d66f06ba8034615 SHA512 10fc514e7a6d1ab87dd44e00d75d8f48752fa1ece26ccc671eeac502164aee2b8e4a30ec908e4abbb4b1c6671c72fc982764d74ccd0ac0f099d3533dcde64352
diff --git a/dev-python/python-betterproto/metadata.xml b/dev-python/python-betterproto/metadata.xml
new file mode 100644
index 000000000..aa17874d0
--- /dev/null
+++ b/dev-python/python-betterproto/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>antonin.riha@protonmail.com</email>
+ <name>Antonín Říha</name>
+ </maintainer>
+ <upstream>
+ <bugs-to>https://github.com/danielgtaylor/python-betterproto/issues</bugs-to>
+ <remote-id type="pypi">betterproto</remote-id>
+ <remote-id type="github">danielgtaylor/python-betterproto</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-python/python-betterproto/python-betterproto-2.0.0_beta4.ebuild b/dev-python/python-betterproto/python-betterproto-2.0.0_beta4.ebuild
new file mode 100644
index 000000000..83e12e19e
--- /dev/null
+++ b/dev-python/python-betterproto/python-betterproto-2.0.0_beta4.ebuild
@@ -0,0 +1,53 @@
+# 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_{8..10} )
+
+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}/${PN}-${MY_PV}"
+ SRC_URI="https://github.com/danielgtaylor/${PN}/archive/refs/tags/v${MY_PV}.tar.gz -> ${P}.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/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 -v
+ epytest
+}
+
+pkg_postinst() {
+ optfeature "protoc compilation support" dev-python/black
+ optfeature "protoc compilation support" dev-python/isort
+ optfeature "protoc compilation support" dev-python/grpcio-tools
+}
diff --git a/dev-python/python-betterproto/python-betterproto-9999.ebuild b/dev-python/python-betterproto/python-betterproto-9999.ebuild
new file mode 100644
index 000000000..30b9bb2cb
--- /dev/null
+++ b/dev-python/python-betterproto/python-betterproto-9999.ebuild
@@ -0,0 +1,53 @@
+# 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_{8..10} )
+
+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}/${PN}-${MY_PV}"
+ SRC_URI="https://github.com/danielgtaylor/${PN}/archive/refs/tags/v${MY_PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~arm64 ~loong ~mips ~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/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 -v
+ epytest
+}
+
+pkg_postinst() {
+ optfeature "protoc compilation support" dev-python/black
+ optfeature "protoc compilation support" dev-python/isort
+ optfeature "protoc compilation support" dev-python/grpcio-tools
+}
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: dev-python/python-betterproto/
@ 2022-05-10 23:46 Antonín Říha
0 siblings, 0 replies; 5+ messages in thread
From: Antonín Říha @ 2022-05-10 23:46 UTC (permalink / raw
To: gentoo-commits
commit: 3073b2327671f59dc6f6ec422214c6c38501cfd1
Author: Antonín Říha <antonin.riha <AT> protonmail <DOT> com>
AuthorDate: Tue May 10 23:45:19 2022 +0000
Commit: Antonín Říha <antonin.riha <AT> protonmail <DOT> com>
CommitDate: Tue May 10 23:46:41 2022 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=3073b232
dev-python/python-betterproto: removed keywords arm64 loong mips
Signed-off-by: Antonín Říha <antonin.riha <AT> protonmail.com>
dev-python/python-betterproto/python-betterproto-9999.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dev-python/python-betterproto/python-betterproto-9999.ebuild b/dev-python/python-betterproto/python-betterproto-9999.ebuild
index 30b9bb2cb..83e12e19e 100644
--- a/dev-python/python-betterproto/python-betterproto-9999.ebuild
+++ b/dev-python/python-betterproto/python-betterproto-9999.ebuild
@@ -17,7 +17,7 @@ else
MY_PV="${PV/_beta/b}"
S="${WORKDIR}/${PN}-${MY_PV}"
SRC_URI="https://github.com/danielgtaylor/${PN}/archive/refs/tags/v${MY_PV}.tar.gz -> ${P}.tar.gz"
- KEYWORDS="~amd64 ~arm64 ~loong ~mips ~x86"
+ KEYWORDS="~amd64 ~x86"
fi
LICENSE="MIT"
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: dev-python/python-betterproto/
@ 2022-05-11 20:23 Antonín Říha
0 siblings, 0 replies; 5+ messages in thread
From: Antonín Říha @ 2022-05-11 20:23 UTC (permalink / raw
To: gentoo-commits
commit: df45705fceba8bd8425ba12a382b53fac1ba322a
Author: Antonín Říha <antonin.riha <AT> protonmail <DOT> com>
AuthorDate: Wed May 11 20:22:53 2022 +0000
Commit: Antonín Říha <antonin.riha <AT> protonmail <DOT> com>
CommitDate: Wed May 11 20:23:18 2022 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=df45705f
dev-python/python-betterproto: added missing jinja dependency for tests
Signed-off-by: Antonín Říha <antonin.riha <AT> protonmail.com>
dev-python/python-betterproto/python-betterproto-2.0.0_beta4.ebuild | 2 ++
dev-python/python-betterproto/python-betterproto-9999.ebuild | 2 ++
2 files changed, 4 insertions(+)
diff --git a/dev-python/python-betterproto/python-betterproto-2.0.0_beta4.ebuild b/dev-python/python-betterproto/python-betterproto-2.0.0_beta4.ebuild
index 83e12e19e..69239aa83 100644
--- a/dev-python/python-betterproto/python-betterproto-2.0.0_beta4.ebuild
+++ b/dev-python/python-betterproto/python-betterproto-2.0.0_beta4.ebuild
@@ -31,6 +31,7 @@ BDEPEND="
test? (
>=dev-python/black-19.3[${PYTHON_USEDEP}]
>=dev-python/isort-5.10.1[${PYTHON_USEDEP}]
+ >=dev-python/jinja-2.11.2[${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}]
@@ -50,4 +51,5 @@ pkg_postinst() {
optfeature "protoc compilation support" dev-python/black
optfeature "protoc compilation support" dev-python/isort
optfeature "protoc compilation support" dev-python/grpcio-tools
+ optfeature "protoc compilation support" dev-python/jinja
}
diff --git a/dev-python/python-betterproto/python-betterproto-9999.ebuild b/dev-python/python-betterproto/python-betterproto-9999.ebuild
index 83e12e19e..69239aa83 100644
--- a/dev-python/python-betterproto/python-betterproto-9999.ebuild
+++ b/dev-python/python-betterproto/python-betterproto-9999.ebuild
@@ -31,6 +31,7 @@ BDEPEND="
test? (
>=dev-python/black-19.3[${PYTHON_USEDEP}]
>=dev-python/isort-5.10.1[${PYTHON_USEDEP}]
+ >=dev-python/jinja-2.11.2[${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}]
@@ -50,4 +51,5 @@ pkg_postinst() {
optfeature "protoc compilation support" dev-python/black
optfeature "protoc compilation support" dev-python/isort
optfeature "protoc compilation support" dev-python/grpcio-tools
+ optfeature "protoc compilation support" dev-python/jinja
}
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: dev-python/python-betterproto/
@ 2022-05-12 13:24 Antonín Říha
0 siblings, 0 replies; 5+ messages in thread
From: Antonín Říha @ 2022-05-12 13:24 UTC (permalink / raw
To: gentoo-commits
commit: 1e7b951ae9fceed765733ddb77bfebd593156b57
Author: Antonín Říha <antonin.riha <AT> protonmail <DOT> com>
AuthorDate: Thu May 12 13:24:11 2022 +0000
Commit: Antonín Říha <antonin.riha <AT> protonmail <DOT> com>
CommitDate: Thu May 12 13:24:37 2022 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1e7b951a
dev-python/pytehon-betterproto: combined optfeature into single line
Signed-off-by: Antonín Říha <antonin.riha <AT> protonmail.com>
dev-python/python-betterproto/python-betterproto-2.0.0_beta4.ebuild | 5 +----
dev-python/python-betterproto/python-betterproto-9999.ebuild | 5 +----
2 files changed, 2 insertions(+), 8 deletions(-)
diff --git a/dev-python/python-betterproto/python-betterproto-2.0.0_beta4.ebuild b/dev-python/python-betterproto/python-betterproto-2.0.0_beta4.ebuild
index 69239aa83..c8419dce0 100644
--- a/dev-python/python-betterproto/python-betterproto-2.0.0_beta4.ebuild
+++ b/dev-python/python-betterproto/python-betterproto-2.0.0_beta4.ebuild
@@ -48,8 +48,5 @@ python_test() {
}
pkg_postinst() {
- optfeature "protoc compilation support" dev-python/black
- optfeature "protoc compilation support" dev-python/isort
- optfeature "protoc compilation support" dev-python/grpcio-tools
- optfeature "protoc compilation support" dev-python/jinja
+ optfeature "protoc compilation support" "dev-python/black dev-python/isort dev-python/grpcio-tools dev-python/jinja"
}
diff --git a/dev-python/python-betterproto/python-betterproto-9999.ebuild b/dev-python/python-betterproto/python-betterproto-9999.ebuild
index 69239aa83..c8419dce0 100644
--- a/dev-python/python-betterproto/python-betterproto-9999.ebuild
+++ b/dev-python/python-betterproto/python-betterproto-9999.ebuild
@@ -48,8 +48,5 @@ python_test() {
}
pkg_postinst() {
- optfeature "protoc compilation support" dev-python/black
- optfeature "protoc compilation support" dev-python/isort
- optfeature "protoc compilation support" dev-python/grpcio-tools
- optfeature "protoc compilation support" dev-python/jinja
+ optfeature "protoc compilation support" "dev-python/black dev-python/isort dev-python/grpcio-tools dev-python/jinja"
}
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: dev-python/python-betterproto/
@ 2022-05-15 16:42 Antonín Říha
0 siblings, 0 replies; 5+ messages in thread
From: Antonín Říha @ 2022-05-15 16:42 UTC (permalink / raw
To: gentoo-commits
commit: 93077d4c1c6231e98031c801a7f64a366a848b16
Author: Antonín Říha <antonin.riha <AT> protonmail <DOT> com>
AuthorDate: Sun May 15 16:40:55 2022 +0000
Commit: Antonín Říha <antonin.riha <AT> protonmail <DOT> com>
CommitDate: Sun May 15 16:42:07 2022 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=93077d4c
dev-python/python-betterproto: added python_fix_shebang
Signed-off-by: Antonín Říha <antonin.riha <AT> protonmail.com>
dev-python/python-betterproto/python-betterproto-2.0.0_beta4.ebuild | 5 +++++
dev-python/python-betterproto/python-betterproto-9999.ebuild | 5 +++++
2 files changed, 10 insertions(+)
diff --git a/dev-python/python-betterproto/python-betterproto-2.0.0_beta4.ebuild b/dev-python/python-betterproto/python-betterproto-2.0.0_beta4.ebuild
index c8419dce0..83d67433e 100644
--- a/dev-python/python-betterproto/python-betterproto-2.0.0_beta4.ebuild
+++ b/dev-python/python-betterproto/python-betterproto-2.0.0_beta4.ebuild
@@ -42,6 +42,11 @@ distutils_enable_tests pytest
distutils_enable_sphinx docs \
'>=dev-python/sphinx_rtd_theme-0.5.0'
+python_prepare() {
+ default
+ python_fix_shebang tests/generate.py src/betterproto/plugin/main.py
+}
+
python_test() {
"${EPYTHON}" -m tests.generate -v
epytest
diff --git a/dev-python/python-betterproto/python-betterproto-9999.ebuild b/dev-python/python-betterproto/python-betterproto-9999.ebuild
index c8419dce0..83d67433e 100644
--- a/dev-python/python-betterproto/python-betterproto-9999.ebuild
+++ b/dev-python/python-betterproto/python-betterproto-9999.ebuild
@@ -42,6 +42,11 @@ distutils_enable_tests pytest
distutils_enable_sphinx docs \
'>=dev-python/sphinx_rtd_theme-0.5.0'
+python_prepare() {
+ default
+ python_fix_shebang tests/generate.py src/betterproto/plugin/main.py
+}
+
python_test() {
"${EPYTHON}" -m tests.generate -v
epytest
^ permalink raw reply related [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-05-15 16:42 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-10 22:43 [gentoo-commits] repo/proj/guru:dev commit in: dev-python/python-betterproto/ Antonín Říha
-- strict thread matches above, loose matches on Subject: below --
2022-05-10 23:46 Antonín Říha
2022-05-11 20:23 Antonín Říha
2022-05-12 13:24 Antonín Říha
2022-05-15 16:42 Antonín Říha
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox