Coder Social home page Coder Social logo

.freeze renamed to .lock? about pipfile HOT 11 CLOSED

pypa avatar pypa commented on July 21, 2024
.freeze renamed to .lock?

from pipfile.

Comments (11)

sethmlarson avatar sethmlarson commented on July 21, 2024 1

@kennethreitz Remember that pipenv and pipfile are separate projects though. Pipenv depending on things for this (still somewhat in design stage?) project shouldn't really be an argument for anything relating to pipfile.

from pipfile.

sethmlarson avatar sethmlarson commented on July 21, 2024

I think the reason we stuck with .lock is because it's kind of a standard for packaging (Cargo.lock etc)

from pipfile.

jacebrowning avatar jacebrowning commented on July 21, 2024

This probably isn't the place to discuss it, but I would really like to see:

pip.toml and pipfreeze.json

The filenames tells you one is the input for pip and the other is a "frozen" set of requirements. The extensions tell you the format of the file and automatically trigger syntax highlighting in editors.

from pipfile.

sethmlarson avatar sethmlarson commented on July 21, 2024

@jacebrowning Most IDEs can be configured to see a file-name and automatically interpret the structure properly. Also some are smart enough to recognize what the file format is without any name hinting at all. I can confirm that PyCharm and friends do this.

from pipfile.

mahmoud avatar mahmoud commented on July 21, 2024

@SethMichaelLarson You say "etc." but in my years of experience with packages, I'm not familiar with another, whereas I'm quite used to seeing ".lock" used for lockfiles. I'm also concerned that this sudden change in direction occurred without a tracking issue or announcement.

from pipfile.

sethmlarson avatar sethmlarson commented on July 21, 2024

@mahmoud Yarn.lock? Golang uses the name lock.json for dep? Using 'lock' isn't exactly unheard of.

from pipfile.

mahmoud avatar mahmoud commented on July 21, 2024

Considering the audience is primarily Python programmers, you may want to consider your audience. People have been pip freeze-ing long before any of these managers existed.

from pipfile.

sethmlarson avatar sethmlarson commented on July 21, 2024

But pip freeze is already sub-par because Pipfiles are so much more than module name and version. It may as well be pip list.

I see your point and I actually agree that .lock may be undesirable (for the reasons I already listed in the linked issue) but I don't think it's that big of a deal to use it. That's just my opinion. :)

from pipfile.

mahmoud avatar mahmoud commented on July 21, 2024

Cool, thanks for closing this @kennethreitz, glad you could chime in. ☮️

from pipfile.

kennethreitz avatar kennethreitz commented on July 21, 2024

literally every community calls it locking, so it makes sense to call it a lockfile. pipenv is already using this, and it works well.

from pipfile.

kennethreitz avatar kennethreitz commented on July 21, 2024

anything's up to change as the project evolves though, no need to discuss it here.

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.