mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-python/smmap2: A sliding window memory map manager
Smmap wraps an interface around mmap and tracks the mapped files as well as the amount of clients who use it. If the system runs out of resources, or if a memory limit is reached, it will automatically unload unused maps to allow continued operation. Required to bump dev-python/gitdb (now renamed to gitdb2). Bug: https://bugs.gentoo.org/619508 Closes: https://github.com/gentoo/gentoo/pull/4740 Package-Manager: Portage-2.3.5, Repoman-2.3.1
This commit is contained in:
committed by
Michał Górny
parent
ab53ab4aae
commit
3a1f74205d
1
dev-python/smmap2/Manifest
Normal file
1
dev-python/smmap2/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST smmap2-2.0.1.tar.gz 21948 SHA256 5c9fd3ac4a30b85d041a8bd3779e16aa704a161991e74b9a46692bc368e68752 SHA512 7c8d27c06befdabf65049e5e0bac5beb07c19ff398a343d953120b9cb1c9ed203232012f4b12180af20fa0dde8feb0d6e8af3e389932407688bcc345548f2501 WHIRLPOOL 973d82e6cd679a82189c617469cb4d749f12d56f8aa0d0cdac9177fb09ae71c3986200730a1b320479a4ee87e9796602f17aadf5b2e12f29d0e950ec9ebcbbbf
|
||||
12
dev-python/smmap2/metadata.xml
Normal file
12
dev-python/smmap2/metadata.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>python@gentoo.org</email>
|
||||
<name>Python</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="pypi">smmap2</remote-id>
|
||||
<remote-id type="github">gitpython-developers/smmap</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
30
dev-python/smmap2/smmap2-2.0.1.ebuild
Normal file
30
dev-python/smmap2/smmap2-2.0.1.ebuild
Normal file
@@ -0,0 +1,30 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="A pure python implementation of a sliding window memory map manager"
|
||||
HOMEPAGE="
|
||||
https://pypi.python.org/pypi/smmap2
|
||||
https://github.com/gitpython-developers/smmap"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
SLOT="0"
|
||||
IUSE="test"
|
||||
|
||||
DEPEND="
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
dev-python/nose[${PYTHON_USEDEP}]
|
||||
)"
|
||||
RDEPEND=""
|
||||
|
||||
python_test() {
|
||||
nosetests -v || die "tests failed under ${EPYTHON}"
|
||||
}
|
||||
Reference in New Issue
Block a user