Last active
September 15, 2021 22:01
-
-
Save markgreene74/4a15dc703df8db3ed6fbb36a7f56814d to your computer and use it in GitHub Desktop.
pipenv workflow
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # https://github.com/pypa/pipenv | |
| pip install --upgrade pip --user | |
| pip install --upgrade pipenv --user | |
| # https://pipenv.pypa.io/en/latest/install/#installing-packages-for-your-project | |
| cd myproject | |
| # install packages | |
| pipenv install requests | |
| # run myscript.py with pipenv | |
| pipenv run python myscript.py | |
| # pipenv shell | |
| pipenv shell | |
| # workflow, useful snippets | |
| pipenv install pytest --dev | |
| pipenv lock | |
| pipenv install --dev | |
| pipenv check | |
| pipenv install --ignore-pipfile | |
| pipenv lock -r > requirements.txt | |
| pipenv lock -r -d > dev-requirements.txt | |
| # ref | |
| # https://realpython.com/pipenv-guide/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment