Git Product home page Git Product logo

flake8-feedstock's Introduction

About flake8-feedstock

Feedstock license: BSD-3-Clause

Home: http://flake8.pycqa.org/

Package license: MIT

Summary: Your Tool For Style Guide Enforcement

Development: https://github.com/PyCQA/flake8

Documentation: http://flake8.pycqa.org/

Current build status

All platforms:

Current release info

Name Downloads Version Platforms
Conda Recipe Conda Downloads Conda Version Conda Platforms

Installing flake8

Installing flake8 from the conda-forge channel can be achieved by adding conda-forge to your channels with:

conda config --add channels conda-forge
conda config --set channel_priority strict

Once the conda-forge channel has been enabled, flake8 can be installed with conda:

conda install flake8

or with mamba:

mamba install flake8

It is possible to list all of the versions of flake8 available on your platform with conda:

conda search flake8 --channel conda-forge

or with mamba:

mamba search flake8 --channel conda-forge

Alternatively, mamba repoquery may provide more information:

# Search all versions available on your platform:
mamba repoquery search flake8 --channel conda-forge

# List packages depending on `flake8`:
mamba repoquery whoneeds flake8 --channel conda-forge

# List dependencies of `flake8`:
mamba repoquery depends flake8 --channel conda-forge

About conda-forge

Powered by NumFOCUS

conda-forge is a community-led conda channel of installable packages. In order to provide high-quality builds, the process has been automated into the conda-forge GitHub organization. The conda-forge organization contains one repository for each of the installable packages. Such a repository is known as a feedstock.

A feedstock is made up of a conda recipe (the instructions on what and how to build the package) and the necessary configurations for automatic building using freely available continuous integration services. Thanks to the awesome service provided by Azure, GitHub, CircleCI, AppVeyor, Drone, and TravisCI it is possible to build and upload installable packages to the conda-forge anaconda.org channel for Linux, Windows and OSX respectively.

To manage the continuous integration and simplify feedstock maintenance conda-smithy has been developed. Using the conda-forge.yml within this repository, it is possible to re-render all of this feedstock's supporting files (e.g. the CI configuration files) with conda smithy rerender.

For more information please check the conda-forge documentation.

Terminology

feedstock - the conda recipe (raw material), supporting scripts and CI configuration.

conda-smithy - the tool which helps orchestrate the feedstock. Its primary use is in the construction of the CI .yml files and simplify the management of many feedstocks.

conda-forge - the place where the feedstock and smithy live and work to produce the finished article (built conda distributions)

Updating flake8-feedstock

If you would like to improve the flake8 recipe or build a new package version, please fork this repository and submit a PR. Upon submission, your changes will be run on the appropriate platforms to give the reviewer an opportunity to confirm that the changes result in a successful build. Once merged, the recipe will be re-built and uploaded automatically to the conda-forge channel, whereupon the built conda packages will be available for everybody to install and use from the conda-forge channel. Note that all branches in the conda-forge/flake8-feedstock are immediately built and any created packages are uploaded, so PRs should be based on branches in forks and branches in the main repository should only be used to build distinct package versions.

In order to produce a uniquely identifiable distribution:

  • If the version of a package is not being increased, please add or increase the build/number.
  • If the version of a package is being increased, please remember to return the build/number back to 0.

Feedstock Maintainers

flake8-feedstock's People

Contributors

aydinhan avatar beckermr avatar conda-forge-admin avatar conda-forge-curator[bot] avatar dhirschfeld avatar dopplershift avatar github-actions[bot] avatar goanpeca avatar jakirkham avatar mariusvniekerk avatar ocefpaf avatar regro-cf-autotick-bot avatar tschoonj avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

flake8-feedstock's Issues

Doesn't work with newer pyflakes from default channel

λ flake8.exe pypandoc
Traceback (most recent call last):
  File "C:\portabel\miniconda\lib\site-packages\setuptools-27.2.0-py3.5.egg\pkg_resources\__init__.py", line 660, in _build_master
  File "C:\portabel\miniconda\lib\site-packages\setuptools-27.2.0-py3.5.egg\pkg_resources\__init__.py", line 968, in require
  File "C:\portabel\miniconda\lib\site-packages\setuptools-27.2.0-py3.5.egg\pkg_resources\__init__.py", line 859, in resolve
pkg_resources.ContextualVersionConflict: (pyflakes 1.3.0 (c:\portabel\miniconda\lib\site-packages), Requirement.parse('pyflakes!=1.2.0,!=1.2.1,!=1.2.2,<1.3.0,>=0.8.1'), {'flake8'})

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\portabel\miniconda\Scripts\flake8-script.py", line 5, in <module>
    from pkg_resources import load_entry_point
  File "<frozen importlib._bootstrap>", line 969, in _find_and_load
  File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 664, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 634, in _load_backward_compatible
  File "C:\portabel\miniconda\lib\site-packages\setuptools-27.2.0-py3.5.egg\pkg_resources\__init__.py", line 2985, in <module>
  File "C:\portabel\miniconda\lib\site-packages\setuptools-27.2.0-py3.5.egg\pkg_resources\__init__.py", line 2971, in _call_aside
  File "C:\portabel\miniconda\lib\site-packages\setuptools-27.2.0-py3.5.egg\pkg_resources\__init__.py", line 2998, in _initialize_master_working_set
  File "C:\portabel\miniconda\lib\site-packages\setuptools-27.2.0-py3.5.egg\pkg_resources\__init__.py", line 662, in _build_master
  File "C:\portabel\miniconda\lib\site-packages\setuptools-27.2.0-py3.5.egg\pkg_resources\__init__.py", line 675, in _build_from_requirements
  File "C:\portabel\miniconda\lib\site-packages\setuptools-27.2.0-py3.5.egg\pkg_resources\__init__.py", line 854, in resolve
pkg_resources.DistributionNotFound: The 'pyflakes!=1.2.0,!=1.2.1,!=1.2.2,<1.3.0,>=0.8.1' distribution was not found and is required by flake8
λ conda list |grep flake
flake8                    3.0.4                    py35_0    conda-forge
pyflakes                  1.3.0                    py35_0    defaults

Downgrading fixed it for me:

λ conda install pyflakes=1.2
Fetching package metadata ...............
Solving package specifications: ..........

Package plan for installation in environment C:\portabel\miniconda:

The following packages will be SUPERCEDED by a higher-priority channel:

    pyflakes: 1.3.0-py35_0 defaults --> 1.2.3-py35_0 conda-forge

python 2.7 import error

Issue:
In python 2.7, flake8 v3.8.1 fails with an import error related to the typing module.

$ flake8 --config .flake8rc $(find . -name '*.py') --verbose
Traceback (most recent call last):
  File "/home/trst2284/miniconda3/envs/test4/bin/flake8", line 6, in <module>
    from flake8.main.cli import main
  File "/home/trst2284/miniconda3/envs/test4/lib/python2.7/site-packages/flake8/main/cli.py", line 3, in <module>
    from typing import List, Optional
ImportError: No module named typing


Environment (conda list):
$ conda list
# packages in environment at /home/trst2284/miniconda3/envs/test4:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                 conda_forge    conda-forge
_openmp_mutex             4.5                       0_gnu    conda-forge
backports                 1.0                        py_2    conda-forge
ca-certificates           2020.4.5.1           hecc5488_0    conda-forge
certifi                   2019.11.28       py27h8c360ce_1    conda-forge
configparser              4.0.2                    py27_0
contextlib2               0.6.0.post1                py_0    conda-forge
flake8                    3.8.1              pyh9f0ad1d_0    conda-forge
importlib-metadata        1.5.0            py27h8c360ce_1    conda-forge
libedit                   3.1.20181209         hc058e9b_0
libffi                    3.3                  he6710b0_1
libgcc-ng                 9.2.0                h24d8f2e_2    conda-forge
libgomp                   9.2.0                h24d8f2e_2    conda-forge
libstdcxx-ng              9.2.0                hdf63c60_2    conda-forge
mccabe                    0.6.1                      py_1    conda-forge
more-itertools            5.0.0                      py_0    conda-forge
ncurses                   6.2                  he6710b0_1
pathlib2                  2.3.5            py27h8c360ce_1    conda-forge
pip                       20.1               pyh9f0ad1d_0    conda-forge
pycodestyle               2.6.0              pyh9f0ad1d_0    conda-forge
pyflakes                  2.2.0              pyh9f0ad1d_0    conda-forge
python                    2.7.18               h15b4118_1
python_abi                2.7                    1_cp27mu    conda-forge
readline                  8.0                  h7b6447c_0
scandir                   1.10.0           py27hdf8410d_1    conda-forge
setuptools                44.0.0                   py27_0    conda-forge
six                       1.14.0                     py_1    conda-forge
sqlite                    3.31.1               h62c20be_1
tk                        8.6.10               hed695b0_0    conda-forge
wheel                     0.34.2                     py_1    conda-forge
zipp                      1.0.0                      py_0    conda-forge
zlib                      1.2.11            h516909a_1006    conda-forge


Details about conda and system ( conda info ):
$ conda info
     active environment : test4
    active env location : /home/trst2284/miniconda3/envs/test4
            shell level : 1
       user config file : /home/trst2284/.condarc
 populated config files : /home/trst2284/.condarc
          conda version : 4.7.12
    conda-build version : 3.18.9
         python version : 3.7.3.final.0
       virtual packages :
       base environment : /home/trst2284/miniconda3  (writable)
                          https://conda.anaconda.org/conda-forge/linux-64
                          https://conda.anaconda.org/conda-forge/noarch
                          https://repo.anaconda.com/pkgs/main/linux-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/free/linux-64
                          https://repo.anaconda.com/pkgs/free/noarch
                          https://repo.anaconda.com/pkgs/r/linux-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /home/trst2284/miniconda3/pkgs
                          /home/trst2284/.conda/pkgs
       envs directories : /home/trst2284/miniconda3/envs
                          /home/trst2284/.conda/envs
               platform : linux-64
             user-agent : conda/4.7.12 requests/2.22.0 CPython/3.7.3 Linux/4.15.0-99-generic ubuntu/16.04.6 glibc/2.23
                UID:GID : 1000:1000
             netrc file : /home/trst2284/.netrc
           offline mode : False

Incorrect version constraints on importlib-metadata

flake8 has recently changed the way it depends on importlib-metadata:

install_requires=
# We document the reasoning for using ranges here:
# http://flake8.pycqa.org/en/latest/faq.html#why-does-flake8-use-ranges-for-its-dependencies
# And in which releases we will update those ranges here:
# http://flake8.pycqa.org/en/latest/internal/releases.html#releasing-flake8
    pyflakes >= 2.3.0, < 2.4.0
    pycodestyle >= 2.7.0, < 2.8.0
    mccabe >= 0.6.0, < 0.7.0
    importlib-metadata<4.3; python_version<"3.8"

This is affecting pip check invocations in recipes that depend on flake8, such as molecule-docker, and is breaking builds.

Would it be possible to have a look at this? If necessary I will gladly open a PR myself. Note that this will mean getting rid of noarch: python 😢

Error with "the 'configparser' distribution was not found and is required by flake8"

We got this error by adding conda-forge to the channels on pandas' travis CI. See pandas-dev/pandas#13662 (comment). The error when using flake8:

pkg_resources.DistributionNotFound: The 'configparser' distribution was not found and is required by flake8

Not installing flake8 from conda-forge solved the problem (by not adding the channel conda-wide, but only install the specific packages from conda-forge with -c conda-forge, in our case we installed the matplotlib beta from conda-forge).

Not sure what is going on, and I also did not yet try to reproduce this error locally.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.