Giter VIP home page Giter VIP logo

Comments (7)

spaceone avatar spaceone commented on June 8, 2024
# python --version
Python 2.7.9
# pip --version
pip 8.1.2 from /usr/local/lib/python2.7/dist-packages (python 2.7)

from flake8-bugbear.

untitaker avatar untitaker commented on June 8, 2024

https://github.com/ambv/flake8-bugbear#omg-this-is-python-3-only

from flake8-bugbear.

spaceone avatar spaceone commented on June 8, 2024

Well okay, then it shouln't be offered for pip2, right?

from flake8-bugbear.

untitaker avatar untitaker commented on June 8, 2024

How is it offered? There is only one package repo for all versions of Python.

from flake8-bugbear.

spaceone avatar spaceone commented on June 8, 2024

Oh, I thought one can specify dependencies/requirements in setup.py

from flake8-bugbear.

spaceone avatar spaceone commented on June 8, 2024

Otherwise if pip is not capable of such thing you could add to setup.py:

if __import__('sys').version_info.major < 3:
    raise RuntimeError('Only python 3 allowed')

from flake8-bugbear.

ambv avatar ambv commented on June 8, 2024

OK, graceful assertion failure added in 16.11.0.

from flake8-bugbear.

Related Issues (20)

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.