Add support for pipenv
See original GitHub issuePipenv is essentially a better pip. It handles dependency resolution (of course), but also handles your virtual environments for you. It integrates with pyenv if you’re using it to automatically get the correct python version for a project, and it auto-loads .env files (such as the ones masonite uses).
I’d love to see craft install run pipenv install under the hood.
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (6 by maintainers)
Top Results From Across the Web
Basic Usage of Pipenv - Read the Docs
$ pipenv install is used for installing packages into the pipenv virtual environment and updating your Pipfile. Along with the basic install command,...
Read more >Pipenv: Python Dev Workflow for Humans — pipenv 2022.12 ...
Automatically adds/removes packages to a Pipfile when they are installed or uninstalled. Automatically loads .env files to support customization and overrides.
Read more >Configure a Pipenv environment | PyCharm Documentation
PyCharm supports environment variables, for example, PIPENV_VENV_IN_PROJECT . You can add PIPENV_VENV_IN_PROJECT=true to your ~/.profile, or ~/.bash_profile or ...
Read more >Pipenv: A Guide to the New Python Packaging Tool
Pipenv is a packaging tool for Python that solves some common problems associated with the typical workflow using pip , virtualenv , and...
Read more >Pipenv
graph Displays currently-installed dependency graph information. install Installs provided packages and adds them to Pipfile, or (if no packages are given), ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

before the release of 2.0 it actually had full pipenv support. We could actually still add it back if you’d like. It would run pipenv if it was installed on the system. else it would default to pip.
After talking with the community we sort of decided to leave it until 2.1 because pipenv just sort of released a big version and started gettting a lot of attention so we weren’t sure if we should do poetry or pipenv.
I think ADDING pipenv support would be awesome for now. Eventually we have to make Masonite either default to pipenv or Poetry. Whichever one wins the battle. Pipenv vs Poetry is really 50/50 and I don’t want to force developers to have to choose one over the other but eventually we will have to make that decision.
I like poetry but pipenv plays MUCH better with Masonite and Craft.
If you want to work together to add pipenv support back to Craft then i’m open to talk about that for sure.
Pipenv allowed activating the virtual environment from a subprocess call so we were able to make the installation + virtual environment down to 2 commands:
yeah it’s about that time to open the issue back up. Masonite will be coming out with 3 beta releases before the release in december. Beta 2 will likely have full pipenv support and we will see how it works and either keep or remove it for Beta 3