News for hackers. Stuff that matters.
Re:My Python Development Environment, 2020 Edition by heyoni on Monday November 11, 2019 @09:59PM (#21511166)
What does npm do that python can’t? I’m curious.
Re:My Python Development Environment, 2020 Edition by Too on Tuesday November 12, 2019 @01:01AM (#21511863)
npm is equivalent to combining pip and virtualenv into a single tool. This gives better ergonomics when switching between projects since you never have to "activate" your environment, it's always activated when standing in the project directory.
Re:My Python Development Environment, 2020 Edition by Pandabob on Tuesday November 12, 2019 @01:45AM (#21512043)
Isn't this what Pipenv does? What has been a downer for me is that many of the cloud providers do not support pipfiles in their serverless app services (Elastic Beanstalk, App Engine etc.)
Re:My Python Development Environment, 2020 Edition by Pandabob on Tuesday November 12, 2019 @06:53AM (#21513386)
On second thought, at least on GCP I should be able to put the pipfiles into .gcloudignore and just update the requirements.txt file with each new commit using git hooks, build scripts or a ci/cd tool.
Re:My Python Development Environment, 2020 Edition by EdwardDiego on Tuesday November 12, 2019 @05:06AM (#21512949)
Yep, correct. Unfortunately I had quite a few issues with pipenv - mainly around its relationship with pip.
Re:My Python Development Environment, 2020 Edition by maksimum on Tuesday November 12, 2019 @01:12AM (#21511903)
That does sound convenient. I wonder if the virtualenv aspect is relevant though, i.e. do people really deploy npm apps outside of a container/isolation layer?

I imagine if you're deploying docker, you probably should be developing in docker (e.g. using PyCharm's remote interpreter/docker interpreter integration).