Giter Site home page Giter Site logo

Comments (4)

uranusjr avatar uranusjr commented on August 30, 2024

I believe it already does it by default. PinReuseProvider (used by the upgrade command by default) tries to reuse the versions specified in Pipfile.lock, and does not change them if possible. Try it out and see if it works as you’d expect (I can’t be 100% sure whether my understanding of this issue fits yours), and report anything that seems wrong to you.

from passa.

brettdh avatar brettdh commented on August 30, 2024

Interesting. 🤔

That's great to hear, but I was sort of expecting that a resolver used by pipenv would have to also support the upgrade-everything workflow, per discussions on that same issue.

I imagine, though, since you mentioned "by default" a couple times, there's a way to override this to eagerly upgrade everything?

from passa.

uranusjr avatar uranusjr commented on August 30, 2024

Yeah there are currently two “strategies” you can choose from the command line, “eager” and “only-if-needed”.

https://github.com/sarugaku/passa/blob/master/src/passa/cli/upgrade.py#L25

If you don’t choose one, only-if-needed is used (hence “by default”). The difference if that say if package A depends on B, passa upgrade A only upgrades A (unless the new version requires an upgrade of B), while passa upgrade A --strategy=eager also tries to upgrade B.

(The idea is borrowed from pip install --upgrade; it has a similar flag.)

from passa.

uranusjr avatar uranusjr commented on August 30, 2024

The reminds me, there really needs some write up on how the whole system is designed…

from passa.

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.