dev-python/aiocache: new package, add 0.12.0

Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
This commit is contained in:
Bernard Cafarelli
2023-02-09 22:50:54 +01:00
parent 0720e0f958
commit c33b26139b
4 changed files with 64 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST aiocache-0.12.0.tar.gz 127002 BLAKE2B efb07ff146d777e99154c839d01665d35fbba410e1a1ca80d4c71f639e69abf43509d79398679027f0a94eb24cfdf933f5762418bd3f43dd441281cc1b1b5236 SHA512 8437c148cc2d40737c0352b0a2fa19636124b71bc03f206066e5c7b8910aa0f0bddfa40587d50a4acd86abd88e8db595a92e267d4b25234f20ccba94e5a63e7e

View File

@@ -0,0 +1,35 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{9..11} )
inherit distutils-r1
DESCRIPTION="Asyncio cache manager"
HOMEPAGE="https://github.com/aio-libs/aiocache/"
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
# TODO add optional cache systems deps (and new package aiomcache)
# Tests require all backends
RESTRICT="test"
BDEPEND="
test? (
dev-python/pytest-asyncio[${PYTHON_USEDEP}]
)"
PATCHES=( "${FILESDIR}/${PN}-0.12.0-fix-test-installation.patch" )
distutils_enable_tests pytest
python_test() {
epytest -o addopts=
}

View File

@@ -0,0 +1,12 @@
diff -Naur aiocache-0.12.0.orig/setup.py aiocache-0.12.0/setup.py
--- aiocache-0.12.0.orig/setup.py 2023-01-13 21:54:07.000000000 +0100
+++ aiocache-0.12.0/setup.py 2023-02-09 22:45:48.004077571 +0100
@@ -29,7 +29,7 @@
"Programming Language :: Python :: 3.11",
"Framework :: AsyncIO",
],
- packages=find_packages(),
+ packages=find_packages(exclude=['tests*']),
install_requires=None,
extras_require={
"redis": ["redis>=4.2.0"],

View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>voyageur@gentoo.org</email>
<name>Bernard Cafarelli</name>
</maintainer>
<maintainer type="project">
<email>python@gentoo.org</email>
<name>Python</name>
</maintainer>
<upstream>
<remote-id type="pypi">aiocache</remote-id>
<remote-id type="github">aio-libs/aiocache</remote-id>
</upstream>
</pkgmetadata>