Live data from Hacker News

What the Heck Is Pyproject.toml?

snarky.ca

121–130 of 199 posts

Re: What the Heck Is Pyproject.toml?

#121
post #22

Python desperately needs a better packaging solution than pip from Python Software Foundation. Stop all new features until this - the biggest pain point for Python across all expertise levels from newbies to experienced Python programmers - is officially solved. No pipenv, no poetry, no conda, etc from third party devs who sometimes get tired of the pressure [1]. It is immense. Combine all this virtualenv stuff with…

I teach Python to some middle school kids. Pip vs Pip3 and PYTHONPATH wasted entirety of two class sessions. By the way, Python should go beyond Go. It should single binary the someone can install without root privileges. The fact that I have hundreds of Chromebooks at my school and I can’t use any of them - school IT, correctly, doesn’t want me mucking with advanced settings.

You could consider teaching JavaScript is you want to use Chromebooks. They have built in support...

Re: What the Heck Is Pyproject.toml?

#122

Python desperately needs a better packaging solution than pip from Python Software Foundation. Stop all new features until this - the biggest pain point for Python across all expertise levels from newbies to experienced Python programmers - is officially solved. No pipenv, no poetry, no conda, etc from third party devs who sometimes get tired of the pressure [1]. It is immense. Combine all this virtualenv stuff with…

> Python is otherwise the most incredible language of our times

This is a strong claim. Ruby could arguably make the same claim. So could Elixir.

Re: What the Heck Is Pyproject.toml?

#123

Earlier quoted context omitted.

> There is no greater hell than talking them through installing a working Python environment. It’s impossible. I give a lot of Python professional trainings, and I get to do that regularly, in very diverse situations. It's indeed full of gotchas. Since it's not going to be solved quickly, meanwhile, here is what works if you need to help people setuping python: 1 - Install Python correctly The first version Python do…

That's a pretty solid guide! It's even useful for me that writes Python (non-exclusively) professionally. My company settled on pipenv, and we regret it. It's slow and buggy and has crazy behaviour. It's not bad enough that it's worth updating all projects (or rather, there's no good enough alternative) but I regret about once a week having advocated for it. Note: I think you made a mistake, you say that you can rena…

Thanks. Fixed.

Being stuck at home, I currently give training remotely. If you know people that need trained in anything Python (beginner, advanced, scripting, architecture, web, data analysis, etc.), think about me :)

Re: What the Heck Is Pyproject.toml?

#124

Earlier quoted context omitted.

Here's their justification for using it. It makes sense to me. https://www.python.org/dev/peps/pep-0518/#overview-of-file-f...

It makes sense to use toml. It makes zero sense not to bring pytoml in the stdlib before doing so. The way this was handled is a little absurd.

> The pytoml TOML parser is ~300 lines of pure Python code, so being outside the standard library didn't count heavily against it.

From the link. Makes sense I think.

Re: What the Heck Is Pyproject.toml?

#125

Python desperately needs a better packaging solution than pip from Python Software Foundation. Stop all new features until this - the biggest pain point for Python across all expertise levels from newbies to experienced Python programmers - is officially solved. No pipenv, no poetry, no conda, etc from third party devs who sometimes get tired of the pressure [1]. It is immense. Combine all this virtualenv stuff with…

python distribution is so annoying I always wrap it in docker and call it the day.

I can never trust pip for on-premise installations of python code. Even the npm toolchain madness is somewhat more consolidated and organized.

Re: What the Heck Is Pyproject.toml?

#126

Earlier quoted context omitted.

> There is no greater hell than talking them through installing a working Python environment. It’s impossible. I give a lot of Python professional trainings, and I get to do that regularly, in very diverse situations. It's indeed full of gotchas. Since it's not going to be solved quickly, meanwhile, here is what works if you need to help people setuping python: 1 - Install Python correctly The first version Python do…

this is an awesome summary; I use python occasionally, and have run into several of the issues you flag in your post, but would probably do it all over again next time I need to put something in production. So thank you for taking the time to summarize things so thoughtfully.

Well, with the covid 19 confinement, I'll give training remotely. So if you know companies that need their IT department trained in anything Python (intro, senior, syadmin, API design, flask/django, numpy/pandas, etc.), think about me :)

Re: What the Heck Is Pyproject.toml?

#127

Earlier quoted context omitted.

Poetry is a modern packaging system for Python. It's really good. I hope everyone converges on it. http://python-poetry.org/

Unfortunately, you need to: - discover it - install it properly - run it properly - make it create a venv with the proper python version - potentially import data from existing setup.py/cfg - make sure you are always in the right dir when you use it - not be on windows (poetry shell doesn't work there) - IDE integration is not great - people have to chose between this, pip, pip-tools, flit, pipenv, dephell, conda...…

> - not be on windows (poetry shell doesn't work there)

Ok that's a bug, probably fixed soon. Otherwise, most of these are true of many popular packaging tools in other languages.

Re: What the Heck Is Pyproject.toml?

#128

Earlier quoted context omitted.

Unfortunately, you need to: - discover it - install it properly - run it properly - make it create a venv with the proper python version - potentially import data from existing setup.py/cfg - make sure you are always in the right dir when you use it - not be on windows (poetry shell doesn't work there) - IDE integration is not great - people have to chose between this, pip, pip-tools, flit, pipenv, dephell, conda...…

> - not be on windows (poetry shell doesn't work there) Ok that's a bug, probably fixed soon. Otherwise, most of these are true of many popular packaging tools in other languages.

Well, not pip and venv. It's provided on windows and mac automatically. venv forces you to chose the version of python. venv doesn't care if you are in project mode or not. IDE integration is great.

Re: What the Heck Is Pyproject.toml?

#129
post #110

Earlier quoted context omitted.

Those are great when you need big or fast, but py is much better at the smaller, easier to write end.

Ah, so Python is for small and slow, doesn't seem to be the best in everything after all. Which brings us back to "nice scripting and introduction to programming language".

Yup.

Clearly no one is going to be able to convince you otherwise, so is there much point in you continuing to read this thread?

Re: What the Heck Is Pyproject.toml?

#130

Earlier quoted context omitted.

As a comment to your first paragraph, I've found pyenv combined with its virtualenv plugin to be a decently consistent experience.

I've never understood the need for pyenv-virtualenv when virtualenvwrapper exists. To add more confusion there is also pyenv-virtualenvwrapper.

And because those are all very confusing, there's Pipenv, which can interact with both, either or neither.
Post reply on HN