mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-16 02:23:16 -04:00
dev-python/atomiclong: new package
Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
1
dev-python/atomiclong/Manifest
Normal file
1
dev-python/atomiclong/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST atomiclong-0.1.1.tar.gz 5057 BLAKE2B 2583674eafd2e89c91629db69e6c118d22ae169df4131e3d63a584ed9857df47bb85c0764cd60b7df35eb8db5b4aedfe043bfcfb960909e2abcb97a27ba7567d SHA512 c275cff805df2275b6d9cfabed072c296019f1e7f6e2d718e0cec60ca40a99c6e8043a17a82f752096a1764cbc63e5681739da921ce1c89dfa8e5a6349e1772a
|
||||
30
dev-python/atomiclong/atomiclong-0.1.1.ebuild
Normal file
30
dev-python/atomiclong/atomiclong-0.1.1.ebuild
Normal file
@@ -0,0 +1,30 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
PYTHON_COMPAT=( python3_{6,7} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
SRC_URI="https://files.pythonhosted.org/packages/86/8c/70aea8215c6ab990f2d91e7ec171787a41b7fbc83df32a067ba5d7f3324f/${P}.tar.gz"
|
||||
|
||||
DESCRIPTION="An AtomicLong type using CFFI."
|
||||
HOMEPAGE="https://github.com/dreid/atomiclong"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="virtual/python-cffi[${PYTHON_USEDEP}]"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
test? (
|
||||
dev-python/pytest[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
python_test() {
|
||||
pytest -vv || die
|
||||
}
|
||||
32
dev-python/atomiclong/atomiclong-9999.ebuild
Normal file
32
dev-python/atomiclong/atomiclong-9999.ebuild
Normal file
@@ -0,0 +1,32 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
PYTHON_COMPAT=( python3_{6,7} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
SRC_URI=""
|
||||
EGIT_REPO_URI="https://github.com/dreid/${PN}.git"
|
||||
inherit git-r3
|
||||
|
||||
DESCRIPTION="An AtomicLong type using CFFI."
|
||||
HOMEPAGE="https://github.com/dreid/atomiclong"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS=""
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="virtual/python-cffi[${PYTHON_USEDEP}]"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
test? (
|
||||
dev-python/pytest[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
python_test() {
|
||||
pytest -vv || die
|
||||
}
|
||||
21
dev-python/atomiclong/metadata.xml
Normal file
21
dev-python/atomiclong/metadata.xml
Normal file
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>lssndrbarbieri@gmail.com</email>
|
||||
<name>Alessandro Barbieri</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>proxy-maint@gentoo.org</email>
|
||||
<name>Proxy Maintainers</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">dreid/atomiclong</remote-id>
|
||||
</upstream>
|
||||
<longdescription lang="en">
|
||||
Sometimes you need to increment some numbers ... atomically ... in python.
|
||||
AtomicLong was born out of the need for fast thread-safe counters in python.
|
||||
It uses CFFI to bind GCC's Atomic Builtins.
|
||||
Its value is a C long which can be incremented, decremented, and set atomically. It is inspired by Java's java.util.concurrent.atomic.AtomicLong.
|
||||
</longdescription>
|
||||
</pkgmetadata>
|
||||
Reference in New Issue
Block a user