diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-03-06 17:54:58 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-03-06 17:54:58 +0000 |
commit | 47223eb70974998c84966981d9e4fc2be27b3f8a (patch) | |
tree | 961d3fea7a2e379eac81620131a0b6df82e7e9c3 /dev-python/python-memcached | |
parent | 62277f96ac0a859cfd02e8d1775081a4ba521682 (diff) |
gentoo auto-resync : 06:03:2023 - 17:54:58
Diffstat (limited to 'dev-python/python-memcached')
-rw-r--r-- | dev-python/python-memcached/Manifest | 6 | ||||
-rw-r--r-- | dev-python/python-memcached/metadata.xml | 8 | ||||
-rw-r--r-- | dev-python/python-memcached/python-memcached-1.59-r1.ebuild | 16 | ||||
-rw-r--r-- | dev-python/python-memcached/python-memcached-1.59-r2.ebuild | 54 |
4 files changed, 66 insertions, 18 deletions
diff --git a/dev-python/python-memcached/Manifest b/dev-python/python-memcached/Manifest index 7cbad648b093..21cd06a0eb3a 100644 --- a/dev-python/python-memcached/Manifest +++ b/dev-python/python-memcached/Manifest @@ -1,3 +1,5 @@ DIST python-memcached-1.59-gh.tar.gz 32334 BLAKE2B de8d18ba887b03e4737b554cc4b0074a4f16745e26a8b3631a747c45019e1da83612677dc3e98f97d76e851320c61baafbd0a29231a826c14b7d3bf3e477f29e SHA512 d7ff45a329f2a9bf97fdc7c0268c2c67046c3501270fcf03578b955c2da35904d7bdecd4239924d390797ddff8f4cc69fc5743f4d4f663cdb9f2f8c7e8159512 -EBUILD python-memcached-1.59-r1.ebuild 1179 BLAKE2B 32a5bb8481d5d47d4d608c1f7216398edbf5c736c3509257bee55c3a6b13a37cc47ddd0d09749614231a2c4c09c246b80a977c933d249f0b41bc902a092bf339 SHA512 97f0a20ebc7e38192c3adbe73ff89ad201898a5f1ff0f8a17783505e9f38e01754a724c5ad18ddd474e6ede289d2838db4cc806ea2b03da883e242eeacdd7fcf -MISC metadata.xml 783 BLAKE2B b7c0c48cc5efed261d5b3d89c3b9a820a129f3ac61a7241cb0a08553045c5c2565a126248e87ab972625c3f8a6358017cd0da170357e8e915c6586203822d872 SHA512 d4af5ef7c9f30a4a967f4c254ec5c4738e1291974e29a4e1b3099799b051ef37fdc029f3e2fca9db49aa7cefcaa7707c9ce4fb79c7a7abc5ea54590b55b2adab +DIST python-memcached-1.59.gh.tar.gz 32334 BLAKE2B de8d18ba887b03e4737b554cc4b0074a4f16745e26a8b3631a747c45019e1da83612677dc3e98f97d76e851320c61baafbd0a29231a826c14b7d3bf3e477f29e SHA512 d7ff45a329f2a9bf97fdc7c0268c2c67046c3501270fcf03578b955c2da35904d7bdecd4239924d390797ddff8f4cc69fc5743f4d4f663cdb9f2f8c7e8159512 +EBUILD python-memcached-1.59-r1.ebuild 1182 BLAKE2B 352291f7a1dd62409048810795e82e288a67c6efed1f2ac8d3052f4dc375d57dc8f9240df9f803de3761a9f51d0b2d1146e80bcbf0a56168e1788ae12106ec2f SHA512 b9bd91d472cad4cfe1eac447316b912991ee95be928a8bb2d349a1cfe43a7c49a4c9d62662be8c10a7e5764ad274e5e5b142d9564abc5ea47cde5ae7ad382a1e +EBUILD python-memcached-1.59-r2.ebuild 1178 BLAKE2B 869d0e40f4db142252d552940321455957f64f453c5c897da889d57c235959f3238a66ae2785ede14d70c35361aca684fb88bf432264704582d5555b3fcb2183 SHA512 5c835ed97f866880ff94276188b3fbcdc5894b488e07dc4ceebe89cf30b84a974a346ce75bc8cce458b23020e460e5fe9fae810e609053ac67c8ac2e087444fe +MISC metadata.xml 486 BLAKE2B 6126b61b0955941698b9221d4c6dfa239d7ecf04faa96a42cbb8bb00d788f54f349e64702852d3c0bdd467a6a73612f87a614f54ac6625e119a83922ce6379e6 SHA512 30513983f8440d212d772e3ee53dae96dd937805f1e89781e532c147d213d61d87877bbdc38597ae2b25fce7a6ca14d5134cbf24f0af4e05619679c012df6ee5 diff --git a/dev-python/python-memcached/metadata.xml b/dev-python/python-memcached/metadata.xml index febb3b815864..71b2011b44aa 100644 --- a/dev-python/python-memcached/metadata.xml +++ b/dev-python/python-memcached/metadata.xml @@ -1,18 +1,10 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> - <maintainer type="person"> - <email>robbat2@gentoo.org</email> - <name>Robin H. Johnson</name> - </maintainer> <maintainer type="project"> <email>python@gentoo.org</email> <name>Python</name> </maintainer> - <longdescription lang="en"> - This is a Python based API (implemented in 100% python) for communicating with - the memcached distributed memory object cache daemon. - </longdescription> <stabilize-allarches/> <upstream> <remote-id type="pypi">python-memcached</remote-id> diff --git a/dev-python/python-memcached/python-memcached-1.59-r1.ebuild b/dev-python/python-memcached/python-memcached-1.59-r1.ebuild index b925997aac3d..8a90d01b36a7 100644 --- a/dev-python/python-memcached/python-memcached-1.59-r1.ebuild +++ b/dev-python/python-memcached/python-memcached-1.59-r1.ebuild @@ -27,23 +27,23 @@ BDEPEND=" ) " -distutils_enable_tests nose +distutils_enable_tests unittest python_test() { local pidfile="${TMPDIR}/memcached.pid" - memcached -d -P "$pidfile" || die "failed to start memcached" + memcached -d -P "${pidfile}" || die "failed to start memcached" - nosetests -v || die "Tests fail with ${EPYTHON}" + eunittest || die "Tests fail with ${EPYTHON}" - kill "$(<"$pidfile")" || die "failed to kill memcached" + kill "$(<"${pidfile}")" || die "failed to kill memcached" local elapsed=0 - while [[ -f "$pidfile" ]]; do - if [[ $elapsed -ge 30 ]]; then - kill -KILL "$(<"$pidfile")" || die "failed to kill -KILL memcached" + while [[ -f ${pidfile} ]]; do + if [[ $(( elapsed++ )) -ge 30 ]]; then + kill -KILL "$(<"${pidfile}")" || + die "failed to kill -KILL memcached" die "memcached failed to stop after 30 seconds" fi sleep 1 - let elapsed++ done } diff --git a/dev-python/python-memcached/python-memcached-1.59-r2.ebuild b/dev-python/python-memcached/python-memcached-1.59-r2.ebuild new file mode 100644 index 000000000000..ba8ceed185ef --- /dev/null +++ b/dev-python/python-memcached/python-memcached-1.59-r2.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( pypy3 python3_{9..11} ) + +inherit distutils-r1 + +DESCRIPTION="Pure python memcached client" +HOMEPAGE=" + https://github.com/linsomniac/python-memcached/ + https://pypi.org/project/python-memcached/ +" +SRC_URI=" + https://github.com/linsomniac/python-memcached/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="PSF-2.4" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~ppc ~x86 ~amd64-linux ~x86-linux" + +RDEPEND=" + dev-python/six[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/mock[${PYTHON_USEDEP}] + net-misc/memcached + ) +" + +distutils_enable_tests unittest + +python_test() { + local pidfile="${TMPDIR}/memcached.pid" + + memcached -d -P "${pidfile}" || die "failed to start memcached" + + eunittest || die "Tests fail with ${EPYTHON}" + + kill "$(<"${pidfile}")" || die "failed to kill memcached" + local elapsed=0 + while [[ -f ${pidfile} ]]; do + if [[ $(( elapsed++ )) -ge 30 ]]; then + kill -KILL "$(<"${pidfile}")" || + die "failed to kill -KILL memcached" + die "memcached failed to stop after 30 seconds" + fi + sleep 1 + done +} |