Giter Club home page Giter Club logo

Comments (4)

strk avatar strk commented on May 29, 2024

pip 1.5.4 from /usr/lib/python3/dist-packages (python 3.4) successfully installs warrant-ext so I guess this issue should go to pip, not here...

from warrant.

OliverHofkens avatar OliverHofkens commented on May 29, 2024

This is not pip's fault. The official docs warn against using pip's internals, such as pip.req in this case. Version 10 of pip was just released and broke most code using their internal APIs, as announced here: Announcement: Pip 10 is coming, and will move all internal APIs.

One solution would be to manually list the requirements in setup.py instead of parsing them from requirements.txt. Another solution would be to use the packaging package and their Requirements API: https://packaging.pypa.io/en/latest/requirements/

from warrant.

OliverHofkens avatar OliverHofkens commented on May 29, 2024

A more direct fix would be this simple function to replace the pip.req.parse_requirements():

def parse_requirements(filename):
    """ load requirements from a pip requirements file """
    lineiter = (line.strip() for line in open(filename))
    return [line for line in lineiter if line and not line.startswith("#")]

from warrant.

bjinwright avatar bjinwright commented on May 29, 2024

This is fixed in develop and will be in v0.7.

from warrant.

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.