Re: [Update] databases/py-redis to 4.3.4
On 12 Sep 21:26, Stuart Henderson wrote: > On 2022/09/12 20:12, Uwe Werler wrote: > > Hi all, > > > > here's an update for py-redis to 4.3.4 (with cluster support since 4.1.0). > > It needs some new deps, see the install_requires block in setup.py - tgz > attached for those. > > Here's a tweaked version of the port update diff. > > The redismod/cluster tests are failing for me, they might just need > more setting up, anyway let's disable them for now so that it's easier > to be convinced that basic functionality is working ok. Hi Stuart, tested the modules (incl. dependencies) now with my fixed redis_cache.py and redis_return.py on salt 3003.5 and works like expected. I will have a look at the cluster tests then. Regards Uwe > > > Index: Makefile > === > RCS file: /cvs/ports/databases/py-redis/Makefile,v > retrieving revision 1.42 > diff -u -p -r1.42 Makefile > --- Makefile 11 Mar 2022 18:31:41 - 1.42 > +++ Makefile 12 Sep 2022 20:23:41 - > @@ -1,16 +1,13 @@ > COMMENT =Python interface to Redis > > -MODPY_EGG_VERSION = 3.5.3 > - > -GH_ACCOUNT = andymccurdy > -GH_PROJECT = redis-py > -GH_TAGNAME = ${MODPY_EGG_VERSION} > +MODPY_EGG_VERSION = 4.3.4 > > +DISTNAME = redis-${MODPY_EGG_VERSION} > PKGNAME =py-redis-${MODPY_EGG_VERSION} > + > CATEGORIES = databases > -REVISION = 2 > > -HOMEPAGE = https://github.com/andymccurdy/redis-py/ > +HOMEPAGE = https://github.com/redis/redis-py > > MAINTAINER = Remi Pointel > > @@ -18,17 +15,24 @@ MAINTAINER = Remi Pointel PERMIT_PACKAGE = Yes > > MODULES =lang/python > +MODPY_PEP517 = setuptools > +MODPY_PI = Yes > +MODPY_PYTEST_ARGS = --disable-pytest-warnings \ > + -m "onlynoncluster and not redismod" \ > + --ignore tests/test_ssl.py > > FLAVORS =python3 > FLAVOR = python3 > > -MODPY_SETUPTOOLS = Yes > -MODPY_PYTEST = Yes > - > # Be sure to have a redis server running on localhost > TEST_IS_INTERACTIVE =Yes > > TEST_DEPENDS = databases/redis \ > - devel/py-mock${MODPY_FLAVOR} > + devel/py-mock${MODPY_FLAVOR} \ > + devel/py-test-asyncio${MODPY_FLAVOR} > + > +RUN_DEPENDS =devel/py-deprecated${MODPY_FLAVOR} \ > + devel/py-async-timeout${MODPY_FLAVOR} \ > + sysutils/py-packaging${MODPY_FLAVOR} > > .include > Index: distinfo > === > RCS file: /cvs/ports/databases/py-redis/distinfo,v > retrieving revision 1.25 > diff -u -p -r1.25 distinfo > --- distinfo 6 Oct 2020 20:29:16 - 1.25 > +++ distinfo 12 Sep 2022 20:23:41 - > @@ -1,2 +1,2 @@ > -SHA256 (redis-py-3.5.3.tar.gz) = Dj7wSvV9FyB8LxOklkGmO5jgBAoQdWqCR+gzRotaggY= > -SIZE (redis-py-3.5.3.tar.gz) = 129884 > +SHA256 (redis-4.3.4.tar.gz) = 3fJwcd9K3zghxPLKWdZ1JcOoLl8mi+2XuBPLT6v4eIA= > +SIZE (redis-4.3.4.tar.gz) = 4569389 > Index: pkg/PLIST > === > RCS file: /cvs/ports/databases/py-redis/pkg/PLIST,v > retrieving revision 1.12 > diff -u -p -r1.12 PLIST > --- pkg/PLIST 11 Mar 2022 18:31:41 - 1.12 > +++ pkg/PLIST 12 Sep 2022 20:23:41 - > @@ -1,25 +1,209 @@ > @pkgpath databases/py-redis > lib/python${MODPY_VERSION}/site-packages/redis/ > -lib/python${MODPY_VERSION}/site-packages/redis-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/ > -lib/python${MODPY_VERSION}/site-packages/redis-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO > -lib/python${MODPY_VERSION}/site-packages/redis-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/SOURCES.txt > -lib/python${MODPY_VERSION}/site-packages/redis-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/dependency_links.txt > -lib/python${MODPY_VERSION}/site-packages/redis-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/requires.txt > -lib/python${MODPY_VERSION}/site-packages/redis-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt > +lib/python${MODPY_VERSION}/site-packages/redis-${MODPY_EGG_VERSION}.dist-info/ > +lib/python${MODPY_VERSION}/site-packages/redis-${MODPY_EGG_VERSION}.dist-info/LICENSE > +lib/python${MODPY_VERSION}/site-packages/redis-${MODPY_EGG_VERSION}.dist-info/METADATA > +lib/python${MODPY_VERSION}/site-packages/redis-${MODPY_EGG_VERSION}.dist-info/RECORD > +lib/python${MODPY_VERSION}/site-packages/redis-${MODPY_EGG_VERSION}.dist-info/WHEEL > +lib/python${MODPY_VERSION}/site-packages/redis-${MODPY_EGG_VERSION}.dist-info/top_level.txt > lib/python${MODPY_VERSION}/site-packages/redis/__init__.py > > ${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/redis/${MODPY_PYCACHE}/ >
Re: [Update] databases/py-redis to 4.3.4
On 2022/09/12 20:12, Uwe Werler wrote: > Hi all, > > here's an update for py-redis to 4.3.4 (with cluster support since 4.1.0). It needs some new deps, see the install_requires block in setup.py - tgz attached for those. Here's a tweaked version of the port update diff. The redismod/cluster tests are failing for me, they might just need more setting up, anyway let's disable them for now so that it's easier to be convinced that basic functionality is working ok. Index: Makefile === RCS file: /cvs/ports/databases/py-redis/Makefile,v retrieving revision 1.42 diff -u -p -r1.42 Makefile --- Makefile11 Mar 2022 18:31:41 - 1.42 +++ Makefile12 Sep 2022 20:23:41 - @@ -1,16 +1,13 @@ COMMENT = Python interface to Redis -MODPY_EGG_VERSION =3.5.3 - -GH_ACCOUNT = andymccurdy -GH_PROJECT = redis-py -GH_TAGNAME = ${MODPY_EGG_VERSION} +MODPY_EGG_VERSION =4.3.4 +DISTNAME = redis-${MODPY_EGG_VERSION} PKGNAME = py-redis-${MODPY_EGG_VERSION} + CATEGORIES = databases -REVISION = 2 -HOMEPAGE = https://github.com/andymccurdy/redis-py/ +HOMEPAGE = https://github.com/redis/redis-py MAINTAINER = Remi Pointel @@ -18,17 +15,24 @@ MAINTAINER =Remi Pointel Index: distinfo === RCS file: /cvs/ports/databases/py-redis/distinfo,v retrieving revision 1.25 diff -u -p -r1.25 distinfo --- distinfo6 Oct 2020 20:29:16 - 1.25 +++ distinfo12 Sep 2022 20:23:41 - @@ -1,2 +1,2 @@ -SHA256 (redis-py-3.5.3.tar.gz) = Dj7wSvV9FyB8LxOklkGmO5jgBAoQdWqCR+gzRotaggY= -SIZE (redis-py-3.5.3.tar.gz) = 129884 +SHA256 (redis-4.3.4.tar.gz) = 3fJwcd9K3zghxPLKWdZ1JcOoLl8mi+2XuBPLT6v4eIA= +SIZE (redis-4.3.4.tar.gz) = 4569389 Index: pkg/PLIST === RCS file: /cvs/ports/databases/py-redis/pkg/PLIST,v retrieving revision 1.12 diff -u -p -r1.12 PLIST --- pkg/PLIST 11 Mar 2022 18:31:41 - 1.12 +++ pkg/PLIST 12 Sep 2022 20:23:41 - @@ -1,25 +1,209 @@ @pkgpath databases/py-redis lib/python${MODPY_VERSION}/site-packages/redis/ -lib/python${MODPY_VERSION}/site-packages/redis-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/ -lib/python${MODPY_VERSION}/site-packages/redis-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO -lib/python${MODPY_VERSION}/site-packages/redis-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/SOURCES.txt -lib/python${MODPY_VERSION}/site-packages/redis-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/dependency_links.txt -lib/python${MODPY_VERSION}/site-packages/redis-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/requires.txt -lib/python${MODPY_VERSION}/site-packages/redis-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt +lib/python${MODPY_VERSION}/site-packages/redis-${MODPY_EGG_VERSION}.dist-info/ +lib/python${MODPY_VERSION}/site-packages/redis-${MODPY_EGG_VERSION}.dist-info/LICENSE +lib/python${MODPY_VERSION}/site-packages/redis-${MODPY_EGG_VERSION}.dist-info/METADATA +lib/python${MODPY_VERSION}/site-packages/redis-${MODPY_EGG_VERSION}.dist-info/RECORD +lib/python${MODPY_VERSION}/site-packages/redis-${MODPY_EGG_VERSION}.dist-info/WHEEL +lib/python${MODPY_VERSION}/site-packages/redis-${MODPY_EGG_VERSION}.dist-info/top_level.txt lib/python${MODPY_VERSION}/site-packages/redis/__init__.py ${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/redis/${MODPY_PYCACHE}/ +lib/python${MODPY_VERSION}/site-packages/redis/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION} lib/python${MODPY_VERSION}/site-packages/redis/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc -lib/python${MODPY_VERSION}/site-packages/redis/${MODPY_PYCACHE}_compat.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/redis/${MODPY_PYCACHE}backoff.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION} +lib/python${MODPY_VERSION}/site-packages/redis/${MODPY_PYCACHE}backoff.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/redis/${MODPY_PYCACHE}client.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION} lib/python${MODPY_VERSION}/site-packages/redis/${MODPY_PYCACHE}client.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/redis/${MODPY_PYCACHE}cluster.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION} +lib/python${MODPY_VERSION}/site-packages/redis/${MODPY_PYCACHE}cluster.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/redis/${MODPY_PYCACHE}compat.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION} +lib/python${MODPY_VERSION}/site-packages/redis/${MODPY_PYCACHE}compat.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/redis/${MODPY_PYCACHE}connection.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
Re: UPDATE: databases/py-redis-3.0.1
ping? Edward Lopez-Acosta On 12/6/18 5:39 PM, Edward Lopez-Acosta wrote: Resubmitting the diff so its easier for commit. I replaced the py-py test depend with py-mock like it should be. py-py is pulled is as a dependency of mock. Edward Lopez-Acosta On 12/6/18 4:26 AM, Stuart Henderson wrote: On 2018/12/05 18:47, Edward Lopez-Acosta wrote: Backwards incompatible changes in this, but checking sqlports I found nothing that depends on this. I installed this package and ran a series of tests on it using some of my old scripts and didn't hit issues. $ sqlite3 /usr/local/share/sqlports "select * from depends where dependspath like 'databases/py-redis' or dependspath like 'databases/py-redis,python3'" | wc -l btw you can do "where dependspath like 'databases/py-redis%'" to cover both flavours. Tests also require devel/py-mock: ===> Regression tests for py-redis-3.0.1 running test Searching for mock Reading https://pypi.org/simple/mock/ Download error on https://pypi.org/simple/mock/: [Errno 65] No route to host -- Some packages may not be found! Couldn't find index page for 'mock' (maybe misspelled?) Scanning index of all packages (this may take a while) Reading https://pypi.org/simple/ Download error on https://pypi.org/simple/: [Errno 65] No route to host -- Some packages may not be found! No local packages or working download links found for mock error: Could not find suitable distribution for Requirement.parse('mock') Otherwise looks good to me.
Re: UPDATE: databases/py-redis-3.0.1
Resubmitting the diff so its easier for commit. I replaced the py-py test depend with py-mock like it should be. py-py is pulled is as a dependency of mock. Edward Lopez-Acosta On 12/6/18 4:26 AM, Stuart Henderson wrote: On 2018/12/05 18:47, Edward Lopez-Acosta wrote: Backwards incompatible changes in this, but checking sqlports I found nothing that depends on this. I installed this package and ran a series of tests on it using some of my old scripts and didn't hit issues. $ sqlite3 /usr/local/share/sqlports "select * from depends where dependspath like 'databases/py-redis' or dependspath like 'databases/py-redis,python3'" | wc -l btw you can do "where dependspath like 'databases/py-redis%'" to cover both flavours. Tests also require devel/py-mock: ===> Regression tests for py-redis-3.0.1 running test Searching for mock Reading https://pypi.org/simple/mock/ Download error on https://pypi.org/simple/mock/: [Errno 65] No route to host -- Some packages may not be found! Couldn't find index page for 'mock' (maybe misspelled?) Scanning index of all packages (this may take a while) Reading https://pypi.org/simple/ Download error on https://pypi.org/simple/: [Errno 65] No route to host -- Some packages may not be found! No local packages or working download links found for mock error: Could not find suitable distribution for Requirement.parse('mock') Otherwise looks good to me. diff --git Makefile Makefile index 0d6e4a7e5b6..d335eed8153 100644 --- Makefile +++ Makefile @@ -2,12 +2,11 @@ COMMENT = Python interface to Redis -MODPY_EGG_VERSION = 2.10.6 +MODPY_EGG_VERSION = 3.0.1 GH_ACCOUNT = andymccurdy GH_PROJECT = redis-py GH_TAGNAME = ${MODPY_EGG_VERSION} -REVISION = 0 DISTNAME = ${GH_PROJECT}-${MODPY_EGG_VERSION} PKGNAME = py-redis-${MODPY_EGG_VERSION} @@ -31,7 +30,7 @@ MODPY_SETUPTOOLS = Yes TEST_IS_INTERACTIVE = Yes TEST_DEPENDS = databases/redis \ - devel/py-py${MODPY_FLAVOR} \ + devel/py-mock${MODPY_FLAVOR} \ devel/py-test${MODPY_FLAVOR}>=2.5.0 .include diff --git distinfo distinfo index f1c40bcf07d..e1591ccb4e3 100644 --- distinfo +++ distinfo @@ -1,2 +1,2 @@ -SHA256 (redis-py-2.10.6.tar.gz) = 4o4kU51lkKi4hJjy0w9/4+K+EXHXqR/h+mxbaYJRkBU= -SIZE (redis-py-2.10.6.tar.gz) = 94869 +SHA256 (redis-py-3.0.1.tar.gz) = 0hAZRs9YKu5y1zvu1egVzNpMitT8Kh1ZORMV+ucFnqM= +SIZE (redis-py-3.0.1.tar.gz) = 106780 diff --git pkg/PLIST pkg/PLIST index c73d0d89da2..2252caccca2 100644 --- pkg/PLIST +++ pkg/PLIST @@ -4,6 +4,7 @@ lib/python${MODPY_VERSION}/site-packages/redis-${MODPY_EGG_VERSION}-py${MODPY_VE lib/python${MODPY_VERSION}/site-packages/redis-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO lib/python${MODPY_VERSION}/site-packages/redis-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/SOURCES.txt lib/python${MODPY_VERSION}/site-packages/redis-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/dependency_links.txt +lib/python${MODPY_VERSION}/site-packages/redis-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/requires.txt lib/python${MODPY_VERSION}/site-packages/redis-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt lib/python${MODPY_VERSION}/site-packages/redis/__init__.py ${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/redis/${MODPY_PYCACHE}/
Re: UPDATE: databases/py-redis-3.0.1
Hi Stuart, It does look like the py-py requirement changed to mock as you noted. I didn't notice the warning initially, my mistake. Would you like me to submit a new diff this evening with that change? I see the same number of tests pass and be skipped. Thanks for the sqlite tip as well. I am going to update the application I wrote with that in mind, and add clarity to my output. On December 6, 2018 10:26:07 AM UTC, Stuart Henderson wrote: >On 2018/12/05 18:47, Edward Lopez-Acosta wrote: >> Backwards incompatible changes in this, but checking sqlports I found >> nothing that depends on this. I installed this package and ran a >series of >> tests on it using some of my old scripts and didn't hit issues. >> >> $ sqlite3 /usr/local/share/sqlports "select * from depends where >dependspath >> like 'databases/py-redis' or dependspath like >'databases/py-redis,python3'" >> | wc -l > >btw you can do "where dependspath like 'databases/py-redis%'" to cover >both flavours. > >Tests also require devel/py-mock: > >===> Regression tests for py-redis-3.0.1 >running test >Searching for mock >Reading https://pypi.org/simple/mock/ >Download error on https://pypi.org/simple/mock/: [Errno 65] No route to >host -- Some packages may not be found! >Couldn't find index page for 'mock' (maybe misspelled?) >Scanning index of all packages (this may take a while) >Reading https://pypi.org/simple/ >Download error on https://pypi.org/simple/: [Errno 65] No route to host >-- Some packages may not be found! >No local packages or working download links found for mock >error: Could not find suitable distribution for >Requirement.parse('mock') > >Otherwise looks good to me.
Re: UPDATE: databases/py-redis-3.0.1
On 2018/12/05 18:47, Edward Lopez-Acosta wrote: > Backwards incompatible changes in this, but checking sqlports I found > nothing that depends on this. I installed this package and ran a series of > tests on it using some of my old scripts and didn't hit issues. > > $ sqlite3 /usr/local/share/sqlports "select * from depends where dependspath > like 'databases/py-redis' or dependspath like 'databases/py-redis,python3'" > | wc -l btw you can do "where dependspath like 'databases/py-redis%'" to cover both flavours. Tests also require devel/py-mock: ===> Regression tests for py-redis-3.0.1 running test Searching for mock Reading https://pypi.org/simple/mock/ Download error on https://pypi.org/simple/mock/: [Errno 65] No route to host -- Some packages may not be found! Couldn't find index page for 'mock' (maybe misspelled?) Scanning index of all packages (this may take a while) Reading https://pypi.org/simple/ Download error on https://pypi.org/simple/: [Errno 65] No route to host -- Some packages may not be found! No local packages or working download links found for mock error: Could not find suitable distribution for Requirement.parse('mock') Otherwise looks good to me.
Re: [UPDATE] databases/py-redis
Il 15/nov/2015 16:28, "Remi Pointel"ha scritto: > > Hi, > > attached is the diff to update py-redis to latest release. > > Ok? Ok dcoppa@ > Cheers, > > Remi. Ciao! David
Re: [UPDATE] databases/py-redis
On Thu, 26 Sep 2013, Remi Pointel wrote: Hi, this is the diff to update to latest release of py-redis: 2.8.0. You need to have py-test version 2.3.5 to run the test suite. Ok? This has a problem with bad eggs I cannot find an easy solution for... /usr/ports/databases/py-redis$ make clean fake ... /usr/ports/databases/py-redis$ make test === py-redis-2.8.0 depends on: py-test-* - py-test-2.3.5 === py-redis-2.8.0 depends on: py-py-* - py-py-1.4.15p0 === Regression tests for py-redis-2.8.0 running test running egg_info writing redis.egg-info/PKG-INFO error: redis.egg-info/PKG-INFO: Permission denied *** Error 1 in . (/usr/ports/lang/python/python.port.mk:189 'do-test': @cd /usr/ports/pobj/py-redis-2.8.0/redis-py-2.8.0 /usr/bin/env -i ...) *** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2682 '/usr/ports/pobj/py-redis-2.8.0/.test_done') *** Error 1 in /usr/ports/databases/py-redis (/usr/ports/infrastructure/mk/bsd.port.mk:2383 'test')
Re: [UPDATE] databases/py-redis
On Thu, 26 Sep 2013 13:33:42 +0200 David Coppa dco...@gmail.com wrote: On Thu, 26 Sep 2013, Remi Pointel wrote: Hi, this is the diff to update to latest release of py-redis: 2.8.0. You need to have py-test version 2.3.5 to run the test suite. Ok? This has a problem with bad eggs I cannot find an easy solution for... /usr/ports/databases/py-redis$ make clean fake ... /usr/ports/databases/py-redis$ make test === py-redis-2.8.0 depends on: py-test-* - py-test-2.3.5 === py-redis-2.8.0 depends on: py-py-* - py-py-1.4.15p0 === Regression tests for py-redis-2.8.0 running test running egg_info writing redis.egg-info/PKG-INFO error: redis.egg-info/PKG-INFO: Permission denied *** Error 1 in . (/usr/ports/lang/python/python.port.mk:189 'do-test': @cd /usr/ports/pobj/py-redis-2.8.0/redis-py-2.8.0 /usr/bin/env -i ...) *** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2682 '/usr/ports/pobj/py-redis-2.8.0/.test_done') *** Error 1 in /usr/ports/databases/py-redis (/usr/ports/infrastructure/mk/bsd.port.mk:2383 'test') Yes, I had a problem with the bad egg this is why I removed this, and it worked for me. I will retest. Remi.
Re: [UPDATE] databases/py-redis
On Thu, Sep 26, 2013 at 1:36 PM, Remi Pointel remi.poin...@xiri.fr wrote: Yes, I had a problem with the bad egg this is why I removed this, and it worked for me. I will retest. If you remove MODPY_BADEGGS = redis, 'make clean' will also fail.
Re: [UPDATE] databases/py-redis
On Wed, Jul 27, 2011 at 8:33 AM, Remi Pointel remi.poin...@xiri.fr wrote: Hi, this is the diff to update py-redis to 2.4.9. Is it ok ? Sure. Go ahead. ciao, david
Re: [Update] databases/py-redis
On Thu, Jun 2, 2011 at 3:25 PM, wen heping wenhep...@gmail.com wrote: Hi, Here is an update of databases/py-redis to 2.4.1. Tested OK on Loongson and it has no regress tests. Comments ? OK ? yep. ok for me. ciao, david