4 ms·
Python workflows have gotten way better in the last few years: * Poetry for dependency management * pyenv for Python version * Black for automated code forma
by MrPowers 6y ago
Python workflows have gotten way better in the last few years:
* Poetry for dependency management
* pyenv for Python version
* Black for automated code formatting
The .python-version file automatically sets my Python version. I run black . to format the entire project. I can run poetry add XYZ to add a dependency to the project. poetry publish deploys my open source projects to PyPi.
I wrote this blog post that explains how to use Poetry + Pandas + Jupyter if you're interested in learning more: https://mungingdata.com/python/jupyter-workflow-poetry-pandas/ https://mungingdata.com/python/jupyter-workflow-poetry-panda...
Poetry-like programs have existed for a long time. I used Bundler with Ruby when I started programming in 2012 and was shocked with the state of Python dependency management when I was experimenting with the language a few years ago.
The ecosystem has made huge advances and now mypy is making it even better. It's great to see all these languages adopting all the amazing Scala language features!
- woile 6y agoI've been using the same setup, I'd add only `python -m venv .venv` I find it way simpler than before, it was worth learning to use those tools.