Coder Social home page Coder Social logo

Comments (9)

notpushkin avatar notpushkin commented on August 23, 2024 6

I think, in fact, that this should be the only option (like in yarn) — Pipfile should always be up-to-date with installed packages. This is only an IMHO, though.

from pipfile.

reillysiemens avatar reillysiemens commented on August 23, 2024 6

@iamale: I, for one, would not like to see that behavior.

For example, let's say I'm working on a project that has some dependencies. I have an existing Pipfile that is aligned with those dependencies. Now I go ahead and install something like IPython for exploring my environment.

I don't want IPython listed in my dependencies. I don't even want it listed in my development or testing dependencies since I'm the only one using it. It should be perfectly acceptable to have packages installed into your environment that aren't reflected in the Pipfile.

from pipfile.

pradyunsg avatar pradyunsg commented on August 23, 2024 3

Since #47, this is mostly simpler to implement now. The package can be added pinned to the installed version.

Maybe allow --save to take an argument - the group to add the package into (default, dev etc)?

from pipfile.

kennethreitz avatar kennethreitz commented on August 23, 2024 2

@iamale that would be too much of a departure from current pip behavior, in my opinion.

from pipfile.

defnull avatar defnull commented on August 23, 2024

Yes please.

Unfortunately, this is only possible if Pipfile (not only Pipfile.lock) uses a parseable standard format and there exists a library that supports lossless editing (i.e. load->edit->save while preserving comments and whitespace). Similar to #8, and this would also solve #9 to some extend.

from pipfile.

kennethreitz avatar kennethreitz commented on August 23, 2024

Pipfiles are to be manually written, not generated.

from pipfile.

kennethreitz avatar kennethreitz commented on August 23, 2024

i will think about it, though. the lockfile being always up-to-date is the important mechanism here.

from pipfile.

kennethreitz avatar kennethreitz commented on August 23, 2024

Pipenv does this.

from pipfile.

brokenthorn avatar brokenthorn commented on August 23, 2024

Pipenv does this.

Let me rephrase that. Use pipenv install <package_name>, not pip install <package_name> for the equivalent of npm install <package_name> (--save is optional now with npm and implied by default).

from pipfile.

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.