mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-12 08:33:15 -04:00
dev-python/hunter: drop 3.3.8
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
@@ -1,2 +1 @@
|
||||
DIST hunter-3.3.8.tar.gz 536260 BLAKE2B cdb048798dd831229f3c3ff784b16f94ee45c54bc35eb29e9b228f2736c103dbc39357df82476a2b25310501d33be67474f85c2f5a97a61baca20c8dfc5a725f SHA512 4d715893c805afb5ca709f8c8ce20fbf5ec8540a06c7536862d941a5a4f45b0721f8cd3aa2eeb79c072152d243f4d0ce949431defbdc8c17831f744c3f7ff58a
|
||||
DIST hunter-3.4.3.tar.gz 538017 BLAKE2B 92ad2b653d0285059ea2f005c6ba9564f357e1ea438a0fe30087f88efa202aaa504bad65985a88484cf7178c24432ac44705098dabc2667328c71e0ee38f718c SHA512 921bb48ac5d384977908dda060e178e623eb7c1e4298cbf3c0a273cab23695f2a2a60221afb257e54cd144399d2b3b55b80ae9a2c7f71ba452894cc86112d5f7
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -163,10 +163,10 @@
|
||||
':platform_system != "Windows"': ['manhole >= 1.5'],
|
||||
},
|
||||
setup_requires=[
|
||||
- 'setuptools_scm>=3.3.1,!=4.0.0,<6.0',
|
||||
+ 'setuptools_scm>=3.3.1',
|
||||
'cython',
|
||||
] if Cython else [
|
||||
- 'setuptools_scm>=3.3.1,!=4.0.0,<6.0',
|
||||
+ 'setuptools_scm>=3.3.1',
|
||||
],
|
||||
entry_points={
|
||||
'console_scripts': [
|
||||
@@ -1,76 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Hunter is a flexible code tracing toolkit"
|
||||
HOMEPAGE="
|
||||
https://github.com/ionelmc/python-hunter
|
||||
https://pypi.org/project/hunter/
|
||||
"
|
||||
SRC_URI="https://github.com/ionelmc/python-${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/python-${P}"
|
||||
LICENSE="BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
RDEPEND="dev-python/colorama[${PYTHON_USEDEP}]"
|
||||
DEPEND="dev-python/cython[${PYTHON_USEDEP}]"
|
||||
BDEPEND="
|
||||
>=dev-python/setuptools_scm-3.3.1[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
dev-python/aspectlib[${PYTHON_USEDEP}]
|
||||
dev-python/ipdb[${PYTHON_USEDEP}]
|
||||
dev-python/manhole[${PYTHON_USEDEP}]
|
||||
dev-python/process-tests[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-benchmark[${PYTHON_USEDEP}]
|
||||
dev-python/six[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
DOCS=( AUTHORS.rst CHANGELOG.rst README.rst )
|
||||
PATCHES=( "${FILESDIR}/remove-setuptools_scm-upper-constraint.patch" )
|
||||
|
||||
distutils_enable_tests pytest
|
||||
distutils_enable_sphinx docs ">=dev-python/sphinx-py3doc-enhanced-theme-2.3.2"
|
||||
|
||||
python_compile() {
|
||||
# native extension build fails with python3.10
|
||||
# https://github.com/ionelmc/python-hunter/issues/104
|
||||
if [[ ${EPYTHON} == python3.10 ]]; then
|
||||
SETUPPY_NOEXT="yes" distutils-r1_python_compile
|
||||
return
|
||||
fi
|
||||
|
||||
distutils-r1_python_compile
|
||||
if use test; then
|
||||
"${EPYTHON}" tests/setup.py build_ext --force --inplace || die
|
||||
fi
|
||||
}
|
||||
|
||||
python_test() {
|
||||
local PUREPYTHONHUNTER
|
||||
local -x PYTHONPATH="${S}/tests:${BUILD_DIR}/lib:${PYTHONPATH}"
|
||||
local epytest_args=(
|
||||
--deselect tests/test_remote.py::test_gdb
|
||||
--deselect tests/test_remote.py::test_gdb_clean_exit
|
||||
--deselect tests/test_remote.py::test_manhole
|
||||
--deselect tests/test_remote.py::test_manhole_clean_exit
|
||||
)
|
||||
|
||||
if [[ ${EPYTHON} == python3.10 ]]; then
|
||||
epytest_args+=(
|
||||
--deselect tests/test_cookbook.py::test_probe
|
||||
--deselect tests/test_tracer.py::test_perf_filter[pure]
|
||||
--deselect tests/test_tracer.py::test_perf_stdlib[pure]
|
||||
--deselect tests/test_tracer.py::test_perf_actions[pure]
|
||||
--deselect tests/test_tracer.py::test_proper_backend
|
||||
)
|
||||
PUREPYTHONHUNTER="yes"
|
||||
fi
|
||||
|
||||
epytest "${epytest_args[@]}"
|
||||
}
|
||||
Reference in New Issue
Block a user