News for hackers. Stuff that matters.
Re:Repl.it raises $4.5M from A16Z, Paul Graham, and others by landon32 on Monday October 22, 2018 @10:11PM (#18280243)
I use pipenv for this. I found it sometimes annoying but generally sufficient. Pyenv and pip both seemed too weak or complex. Pipenv was just simple. I would only write code within my pipenv environment, and then when I deployed the code pipenv would handle package management safely.

Never did anything huge with it though. Just small web apps hosted on pythonanywhere.

Re:Repl.it raises $4.5M from A16Z, Paul Graham, and others by dserodio on Monday October 22, 2018 @10:37PM (#18280337)
Specifying dependencies when you're writing a library is still a mess, because pipenv isn't recommended for libraries. npm works the same way for both apps and libraries.
Re:Repl.it raises $4.5M from A16Z, Paul Graham, and others by mcintyre1994 on Tuesday October 23, 2018 @01:16AM (#18280886)
I saw poetry mentioned a few days ago. Haven't tried it yet but it tries to fix this: https://github.com/sdispater/poetry
Re:Repl.it raises $4.5M from A16Z, Paul Graham, and others by mintplant on Tuesday October 23, 2018 @01:56AM (#18281029)
Yes, I've uses poetry and it's great. I think it and the pyproject.toml standard will become the solutions to all the problems stated above.
Re:Repl.it raises $4.5M from A16Z, Paul Graham, and others by dserodio on Tuesday October 23, 2018 @12:11PM (#18284638)
Thanks, I'll give it a try. That's still a mess compared to npm, which is a single tool you can use for app and libs, in constrast with easy_install/setup.py/pip/pipenv/poetry/...
Re:Repl.it raises $4.5M from A16Z, Paul Graham, and others by mintplant on Tuesday October 23, 2018 @09:51PM (#18289056)
The benefit of Poetry is that it is a single tool for apps and libs, like npm.