-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow per-project pipenv configuration in Pipfile, ".pipenv.cfg", setup.cfg, or some other per-project configuration file #2778
Comments
This issue will need to go through the new enhancement proposal process -- nothing too fancy, just an organized way for triaging stuff with Kenneth See here for the initial description and then you can simply just create a PR with a markdown description for review Thanks! |
Hi guys, I do not know if this is related but, is there a way to set the path of my environment per project basis? Any help? |
I don't think that the rc file should be necessarily project specific. An rc file would have advantages globally as well (see e.g. #2949). I think if we are talking about package managers, a good model to follow would be .npmrc, which layers builtin, global, per-user and per-project config files on top of each other. I wouldn't add these settings to the Pipfile in any case because these settings are specific to Pipenv and not to Pipfile, which could be used by other tools too. |
In the discussion at pypa/pipfile#120 regarding adding a This means that This means that at the very least it would be good to support a A per-user config file would also make sense, for things like terminal interaction settings, PyPI mirror settings, etc. |
This is basically going to be supported as named category package groupings, which has a working prototype and is being tracked in: #4745 |
There are quite a few
pipenv
configuration options presented as environment variables. I would like to be able to set these on a per-project basis, committed to version control, loaded and understood bypipenv
itself and not by a secondary tool.The documentation section for them recommends using direnv. While I'm sure direnv is a lovely solution, it's another dependency for developer machines and for any infrastructure where we want to use
pipenv
.I don't think it's unreasonable to want
pipenv
to be able to have its own config file or read from an existing config likesetup.cfg
or even a special section ofPipfile
.I'd suggest even using a section of
pyproject.toml
, but that seems downright confusing to mix withPipfile
.One easy way out is to just load a special
.pipenv.cfg
with configparser.Allowing the use of
--config FILENAME
to use a custom config file location would be a logical added goody.More than anything else, I want to be able to set
PIPENV_VENV_IN_PROJECT=1
in my projects, especially since/.venv/
is in my.gitignore
.Apologies if this has been requested before, but I don't see it in any of the closed issues.
I'm happy to work on this in a PR if it gets the ol' 👍 from people.
The text was updated successfully, but these errors were encountered: