From 573f373cc21a1408370cb60ee65cc6658f5bba0b Mon Sep 17 00:00:00 2001 From: OscarL Date: Thu, 14 Nov 2024 03:59:13 -0300 Subject: [PATCH] flake8: drop the pip installable flake8 recipe and its dependencies. (#11334) These tools are easily installed via pip (they are "any" and not require any patching). Instead of maintaning packages for them, let users install the version they need, for the Python version they want. After removal, only one recipe (youtube_dl) mentions, in a comment, flake8. None of these recipes should actually ever be needed as BUILD_REQUIERES either, as they are linter/code-formatting tools. If tests "require" them, as the youtube_dl seems to imply, those test should be disabled. --- dev-python/flake8/flake8-5.0.4.recipe | 66 ----------------- dev-python/mccabe/mccabe-0.7.0.recipe | 62 ---------------- .../pycodestyle/pycodestyle-2.9.1.recipe | 72 ------------------- dev-python/pyflakes/pyflakes-2.5.0.recipe | 61 ---------------- 4 files changed, 261 deletions(-) delete mode 100644 dev-python/flake8/flake8-5.0.4.recipe delete mode 100644 dev-python/mccabe/mccabe-0.7.0.recipe delete mode 100644 dev-python/pycodestyle/pycodestyle-2.9.1.recipe delete mode 100644 dev-python/pyflakes/pyflakes-2.5.0.recipe diff --git a/dev-python/flake8/flake8-5.0.4.recipe b/dev-python/flake8/flake8-5.0.4.recipe deleted file mode 100644 index ea36d553f..000000000 --- a/dev-python/flake8/flake8-5.0.4.recipe +++ /dev/null @@ -1,66 +0,0 @@ -SUMMARY="Modular source code checker" -DESCRIPTION="flake8 is a python tool that glues together pycodestyle, pyflakes, mccabe, and \ -third-party plugins to check the style and quality of some python code. " -HOMEPAGE="https://github.com/PyCQA/flake8" -COPYRIGHT="2011-2013 Tarek Ziade - 2012-2016 Ian Cordasco" -LICENSE="MIT" -REVISION="3" -SOURCE_URI="$HOMEPAGE/archive/refs/tags/$portVersion.tar.gz" -CHECKSUM_SHA256="31bcbe068edcb150503957bfa58a912f865ef4c75ea5d81e903cdde9be03b089" - -ARCHITECTURES="any" - -PROVIDES=" - $portName = $portVersion - " -REQUIRES=" - haiku - " - -BUILD_REQUIRES=" - haiku_devel - " - -PYTHON_PACKAGES=(python39 python310) -PYTHON_VERSIONS=(3.9 3.10) -for i in "${!PYTHON_PACKAGES[@]}"; do -pythonPackage=${PYTHON_PACKAGES[i]} -pythonVersion=${PYTHON_VERSIONS[$i]} -eval "PROVIDES_${pythonPackage}=\"\ - ${portName}_$pythonPackage = $portVersion\n\ - cmd:flake8\ - \"; \ -REQUIRES_$pythonPackage=\"\ - haiku\n\ - cmd:python$pythonVersion\n\ - importlib_metadata_$pythonPackage\n\ - mccabe_$pythonPackage\n\ - pycodestyle_$pythonPackage\n\ - pyflakes_$pythonPackage\ - \"" -BUILD_REQUIRES="$BUILD_REQUIRES - setuptools_$pythonPackage" -BUILD_PREREQUIRES="$BUILD_PREREQUIRES - cmd:python$pythonVersion" -done - -INSTALL() -{ - for i in "${!PYTHON_PACKAGES[@]}"; do - pythonPackage=${PYTHON_PACKAGES[i]} - pythonVersion=${PYTHON_VERSIONS[$i]} - - python=python$pythonVersion - installLocation=$prefix/lib/$python/vendor-packages/ - export PYTHONPATH=$installLocation:$PYTHONPATH - mkdir -p $installLocation - rm -rf build - $python setup.py build install \ - --root=/ --prefix=$prefix - - packageEntries $pythonPackage \ - $prefix/lib/python* \ - $prefix/bin - done -} diff --git a/dev-python/mccabe/mccabe-0.7.0.recipe b/dev-python/mccabe/mccabe-0.7.0.recipe deleted file mode 100644 index c05115e92..000000000 --- a/dev-python/mccabe/mccabe-0.7.0.recipe +++ /dev/null @@ -1,62 +0,0 @@ -SUMMARY="Complexity checker for Python" -DESCRIPTION="Ned's script to check McCabe complexity. - -This module provides a plugin for flake8, the Python code checker." -HOMEPAGE="https://github.com/PyCQA/mccabe" -COPYRIGHT=" Ned Batchelder - 2011-2013 Tarek Ziade - 2013 Florent Xicluna" -LICENSE="MIT" -REVISION="3" -SOURCE_URI="$HOMEPAGE/archive/refs/tags/$portVersion.tar.gz" -CHECKSUM_SHA256="f4f7fa5ed8b7f77601fea3e748d6238928323a291fcde0fddbbe6cb2d0cb2da2" - -ARCHITECTURES="any" - -PROVIDES=" - $portName = $portVersion - " -REQUIRES=" - haiku - " - -BUILD_REQUIRES=" - haiku_devel - " - -PYTHON_PACKAGES=(python39 python310) -PYTHON_VERSIONS=(3.9 3.10) -for i in "${!PYTHON_PACKAGES[@]}"; do -pythonPackage=${PYTHON_PACKAGES[i]} -pythonVersion=${PYTHON_VERSIONS[$i]} -eval "PROVIDES_${pythonPackage}=\"\ - ${portName}_$pythonPackage = $portVersion\ - \"; \ -REQUIRES_$pythonPackage=\"\ - haiku\n\ - cmd:python$pythonVersion\ - \"" -BUILD_REQUIRES="$BUILD_REQUIRES - setuptools_$pythonPackage" -BUILD_PREREQUIRES="$BUILD_PREREQUIRES - cmd:python$pythonVersion" -done - -INSTALL() -{ - for i in "${!PYTHON_PACKAGES[@]}"; do - pythonPackage=${PYTHON_PACKAGES[i]} - pythonVersion=${PYTHON_VERSIONS[$i]} - - python=python$pythonVersion - installLocation=$prefix/lib/$python/vendor-packages/ - export PYTHONPATH=$installLocation:$PYTHONPATH - mkdir -p $installLocation - rm -rf build - $python setup.py build install \ - --root=/ --prefix=$prefix - - packageEntries $pythonPackage \ - $prefix/lib/python* - done -} diff --git a/dev-python/pycodestyle/pycodestyle-2.9.1.recipe b/dev-python/pycodestyle/pycodestyle-2.9.1.recipe deleted file mode 100644 index b03c5e30c..000000000 --- a/dev-python/pycodestyle/pycodestyle-2.9.1.recipe +++ /dev/null @@ -1,72 +0,0 @@ -SUMMARY="Python style guide checker" -DESCRIPTION="pycodestyle is a tool to check your Python code against some of the style conventions \ -in PEP 8. -This package used to be called pep8 but was renamed to pycodestyle to reduce confusion. -Further discussion can be found in the issue where Guido requested this change. -Features -* Plugin architecture: Adding new checks is easy. -* Parseable output: Jump to error location in your editor. -* Small: Just one Python file, requires only stdlib. You can use just the pycodestyle.py file for \ -this purpose. -* Comes with a comprehensive test suite." -HOMEPAGE="https://pypi.org/project/gitdb/" -COPYRIGHT="2006-2009 Johann C. Rocholl - 2009-2014 Florent Xicluna - 2014-2020 Ian Lee" -LICENSE="MIT" -REVISION="3" -pypiVersion="b6/83/5bcaedba1f47200f0665ceb07bcb00e2be123192742ee0edfb66b600e5fd" -SOURCE_URI="https://files.pythonhosted.org/packages/$pypiVersion/pycodestyle-$portVersion.tar.gz" -CHECKSUM_SHA256="2c9607871d58c76354b697b42f5d57e1ada7d261c261efac224b664affdc5785" - -ARCHITECTURES="any" - -PROVIDES=" - $portName = $portVersion - " -REQUIRES=" - haiku - " - -BUILD_REQUIRES=" - haiku_devel - " - -PYTHON_PACKAGES=(python39 python310) -PYTHON_VERSIONS=(3.9 3.10) -for i in "${!PYTHON_PACKAGES[@]}"; do -pythonPackage=${PYTHON_PACKAGES[i]} -pythonVersion=${PYTHON_VERSIONS[$i]} -eval "PROVIDES_${pythonPackage}=\"\ - ${portName}_$pythonPackage = $portVersion\n\ - cmd:pycodestyle\ - \"; \ -REQUIRES_$pythonPackage=\"\ - haiku\n\ - cmd:python$pythonVersion\ - \"" -BUILD_REQUIRES="$BUILD_REQUIRES - setuptools_$pythonPackage" -BUILD_PREREQUIRES="$BUILD_PREREQUIRES - cmd:python$pythonVersion" -done - -INSTALL() -{ - for i in "${!PYTHON_PACKAGES[@]}"; do - pythonPackage=${PYTHON_PACKAGES[i]} - pythonVersion=${PYTHON_VERSIONS[$i]} - - python=python$pythonVersion - installLocation=$prefix/lib/$python/vendor-packages/ - export PYTHONPATH=$installLocation:$PYTHONPATH - mkdir -p $installLocation - rm -rf build - $python setup.py build install \ - --root=/ --prefix=$prefix - - packageEntries $pythonPackage \ - $prefix/lib/python* \ - $prefix/bin - done -} diff --git a/dev-python/pyflakes/pyflakes-2.5.0.recipe b/dev-python/pyflakes/pyflakes-2.5.0.recipe deleted file mode 100644 index 7ac5d6981..000000000 --- a/dev-python/pyflakes/pyflakes-2.5.0.recipe +++ /dev/null @@ -1,61 +0,0 @@ -SUMMARY="Passive checker for Python programs" -DESCRIPTION="A simple program which checks Python source files for errors." -HOMEPAGE="https://github.com/PyCQA/pyflakes" -COPYRIGHT="2005-2011 Divmod, Inc. - 2013-2014 Florent Xicluna" -LICENSE="MIT" -REVISION="3" -SOURCE_URI="$HOMEPAGE/archive/refs/tags/$portVersion.tar.gz" -CHECKSUM_SHA256="0b71a63ab57f5cc9c4a3032460b850da86af8afc63b1888f77527d98b5323a37" - -ARCHITECTURES="any" - -PROVIDES=" - $portName = $portVersion - " -REQUIRES=" - haiku - " - -BUILD_REQUIRES=" - haiku_devel - " - -PYTHON_PACKAGES=(python39 python310) -PYTHON_VERSIONS=(3.9 3.10) -for i in "${!PYTHON_PACKAGES[@]}"; do -pythonPackage=${PYTHON_PACKAGES[i]} -pythonVersion=${PYTHON_VERSIONS[$i]} -eval "PROVIDES_${pythonPackage}=\"\ - ${portName}_$pythonPackage = $portVersion\n\ - cmd:pyflakes\ - \"; \ -REQUIRES_$pythonPackage=\"\ - haiku\n\ - cmd:python$pythonVersion\ - \"" -BUILD_REQUIRES="$BUILD_REQUIRES - setuptools_$pythonPackage" -BUILD_PREREQUIRES="$BUILD_PREREQUIRES - cmd:python$pythonVersion" -done - -INSTALL() -{ - for i in "${!PYTHON_PACKAGES[@]}"; do - pythonPackage=${PYTHON_PACKAGES[i]} - pythonVersion=${PYTHON_VERSIONS[$i]} - - python=python$pythonVersion - installLocation=$prefix/lib/$python/vendor-packages/ - export PYTHONPATH=$installLocation:$PYTHONPATH - mkdir -p $installLocation - rm -rf build - $python setup.py build install \ - --root=/ --prefix=$prefix - - packageEntries $pythonPackage \ - $prefix/lib/python* \ - $prefix/bin - done -}