this post was submitted on 01 Aug 2026
121 points (99.2% liked)

Programmer Humor

43838 readers
106 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 7 years ago
MODERATORS
 

I was just editing my Dockerfile and suddenly IntelliJ showed me the message "No" without any context.

you are viewing a single comment's thread
view the rest of the comments
[–] eager_eagle@lemmy.world 37 points 2 months ago (23 children)

It's right, you shouldn't be using requirements.txt in 2026

[–] Mickkc@lmy.ndu.wtf 14 points 2 months ago (22 children)

What should I use instead? pyproject.toml?

I am pretty new to Python so I'm not very familiar with the ecosystem yet...

[–] eager_eagle@lemmy.world 20 points 2 months ago (8 children)

yes, and give uv a try

https://docs.astral.sh/uv/getting-started/installation/

uv init + project management commands uv add, uv remove, uv sync, uv run my_spaghetti.py, ...

you probably don't need pip or uv pip commands

and here's how to use it in docker

https://docs.astral.sh/uv/guides/integration/docker/

[–] Mickkc@lmy.ndu.wtf 4 points 2 months ago* (last edited 2 months ago)

That looks really convenient, especially when installing and switching Python versions. I'll keep that in mind. Thanks!

load more comments (7 replies)
load more comments (20 replies)
load more comments (20 replies)