Hi Jeremie, On Mon, May 10, 2021 at 7:10 PM Jeremie Courreges-Anglas <[email protected]> wrote:
> On Mon, May 10 2021, K R <[email protected]> wrote: > > Hi ports@, > > > > After an upgrade to OpenBSD 6.9, flake8 no longer works: > > > > --- > > [...] > > File > "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", > > line 3264, in _initialize_master_working_set > > working_set = WorkingSet._build_master() > > File > "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", > > line 585, in _build_master > > return cls._build_from_requirements(__requires__) > > File > "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", > > line 598, in _build_from_requirements > > dists = ws.resolve(reqs, Environment()) > > File > "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", > > line 786, in resolve > > raise DistributionNotFound(req, requirers) > > pkg_resources.DistributionNotFound: The 'pyflakes<2.3.0,>=2.2.0' > > distribution was not found and is required by flake8 > > --- > > packages installed: > > > > flake8-3.8.4 modular python code checker wrapping pep8 and > pyflakes > > pyflakes-2.3.1 passive checker of Python programs > > python-3.8.8p0 interpreted object-oriented programming language > > > > A problem with my machine or perhaps a flake8 package problem? > > This can be reproduced in -current. It seems that just adapting the > version check is enough to get a working (but lightly tested) flake8. > For -stable the diff below looks like the safest approach. > I've just tested the diff on -stable and it worked! Thanks a lot. Best, --Kor > For -current an update to 3.9.0 or newer could be attempted. > > > Index: Makefile > =================================================================== > RCS file: /cvs/ports/devel/flake8/Makefile,v > retrieving revision 1.22 > diff -u -p -r1.22 Makefile > --- Makefile 23 Feb 2021 19:39:14 -0000 1.22 > +++ Makefile 10 May 2021 21:59:22 -0000 > @@ -3,6 +3,7 @@ > COMMENT = modular python code checker wrapping pep8 and > pyflakes > > MODPY_EGG_VERSION = 3.8.4 > +REVISION = 0 > DISTNAME = flake8-${MODPY_EGG_VERSION} > > CATEGORIES = devel > Index: patches/patch-setup_cfg > =================================================================== > RCS file: patches/patch-setup_cfg > diff -N patches/patch-setup_cfg > --- /dev/null 1 Jan 1970 00:00:00 -0000 > +++ patches/patch-setup_cfg 10 May 2021 21:59:22 -0000 > @@ -0,0 +1,16 @@ > +$OpenBSD$ > + > +Loosen dep on devel/pyflakes > + > +Index: setup.cfg > +--- setup.cfg.orig > ++++ setup.cfg > +@@ -36,7 +36,7 @@ package_dir = > + =src > + packages = find: > + install_requires = > +- pyflakes >= 2.2.0, < 2.3.0 > ++ pyflakes >= 2.2.0, <= 2.3.1 > + pycodestyle >= 2.6.0a1, < 2.7.0 > + mccabe >= 0.6.0, < 0.7.0 > + enum34; python_version<"3.4" > > -- > jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF DDCC 0DFA 74AE 1524 E7EE >
