[MacPorts] #51659: Current versions of py27-flake8 and py27-pyflakes are not compatible
#51659: Current versions of py27-flake8 and py27-pyflakes are not compatible --------------------+-------------------------------- Reporter: mh@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Keywords: | Port: --------------------+-------------------------------- The current py27-flake8 version is 2.5.4_0. The current py27-pyflakes version is 1.2.3_0. But flake8 requires a version < 1.2. Traceback: {{{ Traceback (most recent call last): File "/opt/local/bin/flake8", line 5, in <module> from pkg_resources import load_entry_point File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/pkg_resources/__init__.py", line 2927, in <module> @_call_aside File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/pkg_resources/__init__.py", line 2913, in _call_aside f(*args, **kwargs) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/pkg_resources/__init__.py", line 2940, in _initialize_master_working_set working_set = WorkingSet._build_master() File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/pkg_resources/__init__.py", line 637, in _build_master return cls._build_from_requirements(__requires__) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/pkg_resources/__init__.py", line 650, in _build_from_requirements dists = ws.resolve(reqs, Environment()) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/pkg_resources/__init__.py", line 829, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'pyflakes<1.2,>=0.8.1' distribution was not found and is required by flake8 }}} -- Ticket URL: <https://trac.macports.org/ticket/51659> MacPorts <https://www.macports.org/> Ports system for OS X
#51659: Current versions of py27-flake8 and py27-pyflakes are not compatible ---------------------+-------------------------------- Reporter: mh@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: | ---------------------+-------------------------------- Comment (by rectalogic@…): This is similar to the issue with py27-flake8 and py27-pep8 that was fixed here https://trac.macports.org/ticket/47429 -- Ticket URL: <https://trac.macports.org/ticket/51659#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#51659: Current versions of py27-flake8 and py27-pyflakes are not compatible ------------------------------------+-------------------- Reporter: mh@… | Owner: petr@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: py-flake8 py-pyflakes | ------------------------------------+-------------------- Changes (by mf2k@…): * cc: stromnov@… (added) * owner: macports-tickets@… => petr@… * port: => py-flake8 py-pyflakes Comment: In the future, please fill in the Port field and Cc the port maintainers ({{{port info --maintainers py27-flake8 py27-pyflakes}}}), if any. -- Ticket URL: <https://trac.macports.org/ticket/51659#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#51659: Current versions of py27-flake8 and py27-pyflakes are not compatible ------------------------------------+-------------------- Reporter: mh@… | Owner: petr@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: py-flake8 py-pyflakes | ------------------------------------+-------------------- Comment (by rectalogic@…): It looks like upgrading py27-flake8 to 2.6.0 will fix this, it supports pyflakes < 1.3 https://gitlab.com/pycqa/flake8/blob/2.6.0/setup.py#L52 -- Ticket URL: <https://trac.macports.org/ticket/51659#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
#51659: Current versions of py27-flake8 and py27-pyflakes are not compatible --------------------------------------------+-------------------- Reporter: mh@… | Owner: petr@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: py-flake8 py-pyflakes py-pep8 | --------------------------------------------+-------------------- Changes (by petr@…): * cc: patrik.hartlen@… (added) * port: py-flake8 py-pyflakes => py-flake8 py-pyflakes py-pep8 Comment: Adding `py-pep8` maintainer to the discussion as this issue continues to emerge periodically. Yes, unfortunately this happens when the various related packages are update out of sync, because `flake8` imposes quite stringent constraints on the version of its dependencies. I was in discussion with the author if these constraints are really necessary, but he argues that this would be the only way to ensure consistency and quality of the software. I occasionally removed or bumped the constrain, if there was some evidence that nothing breaks (merge request or pre-release merge upstream), but the author explicitly does not support this. Therefore I would suggest, that before upgrading any of these packages (in particular the dependencies), it is checked that nothing breaks or wait for upstream support otherwise. This time it should be sufficient to version bump `flake8`, but experience shows that such upstream updates can be significantly delayed, and I really would like to avoid the need to handle these situations the way it became necessary in the cited ticket #47429. If it helps, I can drop maintainership so that all three packages are maintained by one single person. -- Ticket URL: <https://trac.macports.org/ticket/51659#comment:5> MacPorts <https://www.macports.org/> Ports system for OS X
#51659: Current versions of py27-flake8 and py27-pyflakes are not compatible --------------------------------------------+-------------------- Reporter: mh@… | Owner: petr@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: py-flake8 py-pyflakes py-pep8 | --------------------------------------------+-------------------- Comment (by petr@…): Anyway will prepare an upgrade ASAP, so that this gets fixed. -- Ticket URL: <https://trac.macports.org/ticket/51659#comment:6> MacPorts <https://www.macports.org/> Ports system for OS X
#51659: Current versions of py27-flake8 and py27-pyflakes are not compatible --------------------------------------------+-------------------- Reporter: mh@… | Owner: petr@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: py-flake8 py-pyflakes py-pep8 | --------------------------------------------+-------------------- Comment (by petr@…): Apparently packages `pep8` was renamed to `pycodestyle`. New port committed in r149437. Seems not to conflict with `pep8`. Maintainers of `py-pep8` and `py-pyflakes`, feel free to add yourself as maintainer. -- Ticket URL: <https://trac.macports.org/ticket/51659#comment:7> MacPorts <https://www.macports.org/> Ports system for OS X
#51659: Current versions of py27-flake8 and py27-pyflakes are not compatible --------------------------------------------+-------------------- Reporter: mh@… | Owner: petr@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: fixed | Keywords: Port: py-flake8 py-pyflakes py-pep8 | --------------------------------------------+-------------------- Changes (by petr@…): * status: new => closed * resolution: => fixed Comment: r149438 updates py-flake8 to @2.6.0 and and py-flake8-mccabe to @0.5.0. -- Ticket URL: <https://trac.macports.org/ticket/51659#comment:8> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts