Tuesday, March 31, 2020

Re: Maintainer update & move py-twitter to py3

> > > the diff below updates py-twitter to the latest version and moves it
> > > to py3-only. Tested on amd64.
> > >
> > Thank you for this diff! I did not test it so far but I did notice two
> > things:
> >
> > 1. Instead of commenting out the IRC functionality you could opt for
> > another solution: There is a fork of python-irclib that adds Python 3
> > support. Actually py-twitter refers to this fork [0]. Of course this
> > means that net/py-irclib will need some additional love;
> > 2. You need to add a @pkgpath- and @conflict-marker to PLIST
>
> Bjorn sent me a diff for updating py-irclib to the fork that supports
> python3 - thanks!.
>
> I will see if it works with py-twitter and come back with a revised
> diff...

Updated diff including suggestions from bket@ and using the updated
py-irclib port that I just sent.

Cheers,
Daniel

Index: Makefile
===================================================================
RCS file: /cvs/ports/net/py-twitter/Makefile,v
retrieving revision 1.14
diff -u -p -u -p -r1.14 Makefile
--- Makefile 12 Jul 2019 20:48:46 -0000 1.14
+++ Makefile 31 Mar 2020 13:18:12 -0000
@@ -2,10 +2,9 @@

COMMENT= twitter python module

-MODPY_EGG_VERSION= 1.17.1
+MODPY_EGG_VERSION= 1.18.0
DISTNAME= twitter-${MODPY_EGG_VERSION}
PKGNAME= py-twitter-${MODPY_EGG_VERSION}
-REVISION= 0

CATEGORIES= net www

@@ -15,11 +14,13 @@ MAINTAINER= Daniel Winters <daniel@tydi
# MIT
PERMIT_PACKAGE= Yes

-MODPY_PI = Yes
+MODPY_PI= Yes

MODULES= lang/python

MODPY_SETUPTOOLS= Yes
+FLAVORS= python3
+FLAVOR= python3

RUN_DEPENDS= net/py-irclib
BUILD_DEPENDS= ${RUN_DEPENDS}
Index: distinfo
===================================================================
RCS file: /cvs/ports/net/py-twitter/distinfo,v
retrieving revision 1.6
diff -u -p -u -p -r1.6 distinfo
--- distinfo 8 Sep 2015 11:38:04 -0000 1.6
+++ distinfo 31 Mar 2020 13:18:12 -0000
@@ -1,2 +1,2 @@
-SHA256 (twitter-1.17.1.tar.gz) = npmNzogWFdXGJXlGKtftl1HdrtiAcvJo7fnA5Y9tcAs=
-SIZE (twitter-1.17.1.tar.gz) = 44023
+SHA256 (twitter-1.18.0.tar.gz) = rNyF5b7qdSlnu2TGO96LkVxJoxoB2xsv7Mz58sHVxE0=
+SIZE (twitter-1.18.0.tar.gz) = 47695
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/net/py-twitter/pkg/PLIST,v
retrieving revision 1.4
diff -u -p -u -p -r1.4 PLIST
--- pkg/PLIST 8 Sep 2015 11:38:04 -0000 1.4
+++ pkg/PLIST 31 Mar 2020 13:18:12 -0000
@@ -1,4 +1,6 @@
@comment $OpenBSD: PLIST,v 1.4 2015/09/08 11:38:04 jca Exp $
+@conflict py-twitter-*
+@pkgpath net/py-twitter
bin/twitter
bin/twitter-archiver
bin/twitter-follow
@@ -14,36 +16,39 @@ lib/python${MODPY_VERSION}/site-packages
lib/python${MODPY_VERSION}/site-packages/twitter-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt
lib/python${MODPY_VERSION}/site-packages/twitter-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/zip-safe
lib/python${MODPY_VERSION}/site-packages/twitter/__init__.py
-lib/python${MODPY_VERSION}/site-packages/twitter/__init__.pyc
+${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/twitter/${MODPY_PYCACHE}/
+lib/python${MODPY_VERSION}/site-packages/twitter/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc
+lib/python${MODPY_VERSION}/site-packages/twitter/${MODPY_PYCACHE}ansi.${MODPY_PYC_MAGIC_TAG}pyc
+lib/python${MODPY_VERSION}/site-packages/twitter/${MODPY_PYCACHE}api.${MODPY_PYC_MAGIC_TAG}pyc
+lib/python${MODPY_VERSION}/site-packages/twitter/${MODPY_PYCACHE}archiver.${MODPY_PYC_MAGIC_TAG}pyc
+lib/python${MODPY_VERSION}/site-packages/twitter/${MODPY_PYCACHE}auth.${MODPY_PYC_MAGIC_TAG}pyc
+lib/python${MODPY_VERSION}/site-packages/twitter/${MODPY_PYCACHE}cmdline.${MODPY_PYC_MAGIC_TAG}pyc
+lib/python${MODPY_VERSION}/site-packages/twitter/${MODPY_PYCACHE}corrupt.${MODPY_PYC_MAGIC_TAG}pyc
+lib/python${MODPY_VERSION}/site-packages/twitter/${MODPY_PYCACHE}follow.${MODPY_PYC_MAGIC_TAG}pyc
+lib/python${MODPY_VERSION}/site-packages/twitter/${MODPY_PYCACHE}ircbot.${MODPY_PYC_MAGIC_TAG}pyc
+lib/python${MODPY_VERSION}/site-packages/twitter/${MODPY_PYCACHE}logger.${MODPY_PYC_MAGIC_TAG}pyc
+lib/python${MODPY_VERSION}/site-packages/twitter/${MODPY_PYCACHE}oauth.${MODPY_PYC_MAGIC_TAG}pyc
+lib/python${MODPY_VERSION}/site-packages/twitter/${MODPY_PYCACHE}oauth2.${MODPY_PYC_MAGIC_TAG}pyc
+lib/python${MODPY_VERSION}/site-packages/twitter/${MODPY_PYCACHE}oauth_dance.${MODPY_PYC_MAGIC_TAG}pyc
+lib/python${MODPY_VERSION}/site-packages/twitter/${MODPY_PYCACHE}stream.${MODPY_PYC_MAGIC_TAG}pyc
+lib/python${MODPY_VERSION}/site-packages/twitter/${MODPY_PYCACHE}stream_example.${MODPY_PYC_MAGIC_TAG}pyc
+lib/python${MODPY_VERSION}/site-packages/twitter/${MODPY_PYCACHE}timezones.${MODPY_PYC_MAGIC_TAG}pyc
+lib/python${MODPY_VERSION}/site-packages/twitter/${MODPY_PYCACHE}twitter_globals.${MODPY_PYC_MAGIC_TAG}pyc
+lib/python${MODPY_VERSION}/site-packages/twitter/${MODPY_PYCACHE}util.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/twitter/ansi.py
-lib/python${MODPY_VERSION}/site-packages/twitter/ansi.pyc
lib/python${MODPY_VERSION}/site-packages/twitter/api.py
-lib/python${MODPY_VERSION}/site-packages/twitter/api.pyc
lib/python${MODPY_VERSION}/site-packages/twitter/archiver.py
-lib/python${MODPY_VERSION}/site-packages/twitter/archiver.pyc
lib/python${MODPY_VERSION}/site-packages/twitter/auth.py
-lib/python${MODPY_VERSION}/site-packages/twitter/auth.pyc
lib/python${MODPY_VERSION}/site-packages/twitter/cmdline.py
-lib/python${MODPY_VERSION}/site-packages/twitter/cmdline.pyc
+lib/python${MODPY_VERSION}/site-packages/twitter/corrupt.py
lib/python${MODPY_VERSION}/site-packages/twitter/follow.py
-lib/python${MODPY_VERSION}/site-packages/twitter/follow.pyc
lib/python${MODPY_VERSION}/site-packages/twitter/ircbot.py
-lib/python${MODPY_VERSION}/site-packages/twitter/ircbot.pyc
lib/python${MODPY_VERSION}/site-packages/twitter/logger.py
-lib/python${MODPY_VERSION}/site-packages/twitter/logger.pyc
lib/python${MODPY_VERSION}/site-packages/twitter/oauth.py
-lib/python${MODPY_VERSION}/site-packages/twitter/oauth.pyc
lib/python${MODPY_VERSION}/site-packages/twitter/oauth2.py
-lib/python${MODPY_VERSION}/site-packages/twitter/oauth2.pyc
lib/python${MODPY_VERSION}/site-packages/twitter/oauth_dance.py
-lib/python${MODPY_VERSION}/site-packages/twitter/oauth_dance.pyc
lib/python${MODPY_VERSION}/site-packages/twitter/stream.py
-lib/python${MODPY_VERSION}/site-packages/twitter/stream.pyc
lib/python${MODPY_VERSION}/site-packages/twitter/stream_example.py
-lib/python${MODPY_VERSION}/site-packages/twitter/stream_example.pyc
lib/python${MODPY_VERSION}/site-packages/twitter/timezones.py
-lib/python${MODPY_VERSION}/site-packages/twitter/timezones.pyc
lib/python${MODPY_VERSION}/site-packages/twitter/twitter_globals.py
-lib/python${MODPY_VERSION}/site-packages/twitter/twitter_globals.pyc
lib/python${MODPY_VERSION}/site-packages/twitter/util.py
-lib/python${MODPY_VERSION}/site-packages/twitter/util.pyc

No comments:

Post a Comment