News for hackers. Stuff that matters.
Re:A Poetic Apology: Or Why Should You Use Poetry to Manage ... by MrPowers on Wednesday February 10, 2021 @10:23PM (#26097914)
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-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!

Re:A Poetic Apology: Or Why Should You Use Poetry to Manage ... by woile on Thursday February 11, 2021 @04:13AM (#26099673)
I'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.