mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-28 16:32:57 +02:00
memray: update to 1.16.0.
This commit is contained in:
parent
b52ff1d447
commit
df01253a17
2 changed files with 33 additions and 4 deletions
29
srcpkgs/memray/patches/rm-snapshopt-config.patch
Normal file
29
srcpkgs/memray/patches/rm-snapshopt-config.patch
Normal file
|
@ -0,0 +1,29 @@
|
|||
--- a/tests/conftest.py
|
||||
+++ b/tests/conftest.py
|
||||
@@ -38,26 +38,6 @@
|
||||
return None
|
||||
|
||||
|
||||
-def pytest_configure(config):
|
||||
- if config.option.update_snapshots:
|
||||
- from importlib import metadata # Added in 3.8
|
||||
-
|
||||
- for lib, min_ver in SNAPSHOT_MINIMUM_VERSIONS.items():
|
||||
- ver = version.parse(metadata.version(lib))
|
||||
- if ver != version.parse(min_ver):
|
||||
- pytest.exit(
|
||||
- f"snapshots must be generated with {lib}=={min_ver}"
|
||||
- f" or SNAPSHOT_MINIMUM_VERSIONS must be updated to {ver}"
|
||||
- f" in {__file__}"
|
||||
- )
|
||||
- return
|
||||
-
|
||||
- reason = _snapshot_skip_reason()
|
||||
- if reason:
|
||||
- config.issue_config_time_warning(UserWarning(reason), stacklevel=2)
|
||||
- config.option.warn_unused_snapshots = True
|
||||
-
|
||||
-
|
||||
def pytest_collection_modifyitems(config, items):
|
||||
reason = _snapshot_skip_reason()
|
||||
if reason:
|
|
@ -1,21 +1,21 @@
|
|||
# Template file for 'memray'
|
||||
pkgname=memray
|
||||
version=1.13.4
|
||||
revision=2
|
||||
version=1.16.0
|
||||
revision=1
|
||||
build_style=python3-pep517
|
||||
make_check_args="-v -k not((TestTUILooks)or(test_tui))"
|
||||
make_check_target="tests/unit"
|
||||
hostmakedepends="python3-pkgconfig python3-setuptools python3-wheel python3-Cython"
|
||||
makedepends="python3-devel libunwind-devel liblz4-devel elfutils-devel"
|
||||
depends="python3-Jinja2 python3-rich python3-textual"
|
||||
checkdepends="${depends} python3-pytest"
|
||||
checkdepends="${depends} python3-platformdirs python3-pytest"
|
||||
short_desc="Reports memory allocations in python code & compiled extensions"
|
||||
maintainer="icp <pangolin@vivaldi.net>"
|
||||
license="Apache-2.0"
|
||||
homepage="https://bloomberg.github.io/memray/"
|
||||
changelog="https://bloomberg.github.io/memray/changelog.html"
|
||||
distfiles="https://github.com/bloomberg/memray/archive/refs/tags/v${version}.tar.gz"
|
||||
checksum=cd95420cc30e252975d93c00856ba94d5894e08fbbef1289d4d74f116af6a471
|
||||
checksum=3c7e911145a37a3c62ff46a6d58e6006c5be7663ea10a0ff0b9175e603c8157b
|
||||
make_check_pre="env PYTHONPATH=src"
|
||||
|
||||
pre_build() {
|
||||
|
|
Loading…
Add table
Reference in a new issue