question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add support for pipenv

See original GitHub issue

https://docs.pipenv.org/

Pipenv 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:closed
  • Created 5 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
josephmancusocommented, Jul 17, 2018

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:

$ craft install
$ craft serve
1reaction
josephmancusocommented, Aug 15, 2018

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found