Replies: 3 comments 5 replies
-
Do you guys ever use Poetry? For pure Python packages it's pretty neat and does away with the need for a separate |
Beta Was this translation helpful? Give feedback.
-
Hi Sam, Yes, I'm using Poetry as well for two Python-based rapid assessment tools (D-FAST Morphological Impact and D-FAST Bank Erosion) to make sure that all developers (and build/test agents) are using the same environment. Since I'm compiling the tools before distribution using Nuitka, I don't care too much about end users, but for advanced users (semi-developers) that want to run the tools inside Python it's equally useful. |
Beta Was this translation helpful? Give feedback.
-
@samharrison7 I tried poetry a while ago but decided it was a solution to a problem I didn't have. My current workflow with pip seems to work just fine. Then when I discovered that poetry uses a random number generator to decide if it's going to succeed when running in CI (it's set to fail 5% of the time), I bailed. Maybe that's not the case anymore, I don't know, but it was (is) an odd decision by their developers. I've also heard that poetry is slow when run in CI environments but I can neither confirm nor deny that claim. Another option, which people these days seem to like, is uv. It's developed by Astral (the folks behind ruff), who I am not a fan of, so I'll probably continue to stick with my current workflow. |
Beta Was this translation helpful? Give feedback.
-
The best way to share Python code with others is to package it. Here are two references for Python packaging.
Here are two real-world examples: one from Eric, and one from me. Eric tends to do the right thing. I tend to do the least work possible.
If you'd like help packaging a Python project, please visit us at CSDMS Office Hours!
Beta Was this translation helpful? Give feedback.
All reactions