Coder Social home page Coder Social logo

Comments (11)

defnull avatar defnull commented on August 23, 2024 27

Pipfile (a file) isn't meant to be run as a script. Why would you want to use it in a commandline?

$ vi Pipfile

from pipfile.

monkpit avatar monkpit commented on August 23, 2024 12

At this point it seems like a pretty common convention. Makefile, Vagrantfile, Dockerfile, and most similarly Gemfile. I think having Pipfile with a capital P makes sense - if you don't like hitting shift, that's more of a personal preference, and there are options to customize your terminal to make tab completion case-insensitive.

from pipfile.

kseistrup avatar kseistrup commented on August 23, 2024 9

Just for the reference, here's what make(1) says about [Mm]akefile:

make executes commands in the makefile to update one or more target names, where name is typically a program. If no -f option is present, make will look for the makefiles GNUmakefile, makefile, and Makefile, in that order.
Normally you should call your makefile either makefile or Makefile. (We recommend Makefile because it appears prominently near the beginning of a directory listing, right near other important files such as README.) The first name checked, GNUmakefile, is not recommended for most makefiles. You should use this name if you have a makefile that is specific to GNU make, and will not be understood by other versions of make.

from pipfile.

kseistrup avatar kseistrup commented on August 23, 2024 7

@monkpit please notice the order of preference for make. Having pipfile ignore the case out of the box would not harm those who swear by capitalization and would help those who don't.

from pipfile.

dstufft avatar dstufft commented on August 23, 2024 2

I don't see any reason not to support the lower case variants, we wouldn't combine them, we'd just use the first one we found.

from pipfile.

pradyunsg avatar pradyunsg commented on August 23, 2024 1

@dstufft or @kennethreitz - Could one of you say what you think about this?

AFAICS, it's going to be pretty easy (and transparent) to support the lower case variant with Pipfile taking higher precedence than pipfile.

from pipfile.

idlesign avatar idlesign commented on August 23, 2024 1

PEP-518 mentiones pyproject.toml lowercased, some consistency is expected.

from pipfile.

kennethreitz avatar kennethreitz commented on August 23, 2024 1

I think having one obvious way to do it is the best path moving forward, e.g. just supporting one filename, but once this library gets more robust, it'll be easier to support other filenames.

from pipfile.

notpushkin avatar notpushkin commented on August 23, 2024

Pipfile (a file) isn't meant to be run as a script. Why would you want to use it in a commandline?

from pipfile.

notpushkin avatar notpushkin commented on August 23, 2024

Oh, makes sense.

from pipfile.

kennethreitz avatar kennethreitz commented on August 23, 2024

Closing for now — will definitely keep this in mind for the future.

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.