commit:     5b3dc74582c62bb747fdc67d147272a604a1c148
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Sep 10 08:12:14 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Sep 10 08:48:52 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b3dc745

dev-python/executing: New package, test dep of sentry-sdk

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

 dev-python/executing/Manifest               |  1 +
 dev-python/executing/executing-0.5.2.ebuild | 35 +++++++++++++++++++++++++++++
 dev-python/executing/metadata.xml           |  7 ++++++
 3 files changed, 43 insertions(+)

diff --git a/dev-python/executing/Manifest b/dev-python/executing/Manifest
new file mode 100644
index 00000000000..6665f9a3453
--- /dev/null
+++ b/dev-python/executing/Manifest
@@ -0,0 +1 @@
+DIST executing-0.5.2.gh.tar.gz 303118 BLAKE2B 
e3b0ee22791a7fc4b378cf9f0c4640b4971ebd772d95a5d8d0abd25959c53eede5c61e4807abd4be38b9e14d0e3ab9083941ace7f59f0b6358c68b2e85291193
 SHA512 
2487dbb95240553f9bb7e1249af42e83be7db8cfa8a8c0569c22bfad48add9eddf903a4f365e3a6409e5208bef0d32893abb0c4dc5a93782c3b33125b091ef54

diff --git a/dev-python/executing/executing-0.5.2.ebuild 
b/dev-python/executing/executing-0.5.2.ebuild
new file mode 100644
index 00000000000..0f05179cc81
--- /dev/null
+++ b/dev-python/executing/executing-0.5.2.ebuild
@@ -0,0 +1,35 @@
+# Copyright 2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6..9} )
+inherit distutils-r1
+
+DESCRIPTION="Get information about what a Python frame is currently doing"
+HOMEPAGE="
+       https://github.com/alexmojaki/executing/
+       https://pypi.org/project/executing/";
+SRC_URI="
+       https://github.com/alexmojaki/executing/archive/v${PV}.tar.gz
+               -> ${P}.gh.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+# asttokens is optional runtime dep
+BDEPEND="
+       test? (
+               dev-python/asttokens[${PYTHON_USEDEP}]
+       )"
+
+distutils_enable_tests pytest
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
+
+python_test() {
+       # this test explodes when collected by pytest
+       "${EPYTHON}" tests/test_main.py || die "Tests failed with ${EPYTHON}"
+       pytest -vv tests/test_pytest.py || die "Tests failed with ${EPYTHON}"
+}

diff --git a/dev-python/executing/metadata.xml 
b/dev-python/executing/metadata.xml
new file mode 100644
index 00000000000..266e3f19ca5
--- /dev/null
+++ b/dev-python/executing/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="project">
+               <email>pyt...@gentoo.org</email>
+       </maintainer>
+</pkgmetadata>

Reply via email to