Pyproject.toml: The modern Python project definition file, explained

  Рет қаралды 13,270

InfoWorld

InfoWorld

Жыл бұрын

Modern Python projects use pyproject.toml files to describe a project's metadata, dependencies, and other valuable attributes. Learn in this video the basics of how pyproject.toml works -- how it can be used to describe a simple project, install its dependencies, and define other things such as command-line scripts used with the project.
-----------------------------­---
SUBSCRIBE: kzbin.info_c...
FACEBOOK: / infoworld
TWITTER: / infoworld
WEBSITE: www.infoworld.com/

Пікірлер: 17
@user-bk4wk2fe5b
@user-bk4wk2fe5b 3 ай бұрын
Thanks! I've been using an older setup.py approach, but I found pyproject.toml much more convenient.
@felipealvarez1982
@felipealvarez1982 4 ай бұрын
Very useful for newbs like me, to do things following best practices. Thanks
@davidpaez_co
@davidpaez_co 2 ай бұрын
This was an excellent explanation. Thank you so much Serdar!
@ayeameen
@ayeameen 8 ай бұрын
Thanks so much for such a concise introduction!
@xzenor
@xzenor 8 ай бұрын
That was useful. Thanks. Great explanation
@bryanrosiles899
@bryanrosiles899 5 ай бұрын
You are a saint, thank you!
@serufim
@serufim 7 ай бұрын
God dam. i have learn python when an actual version was 3.5 and since python project have changed so much, that i think that python today and 7 years ago its quite different languages and i have to learn it again
@DominikJagoda
@DominikJagoda 4 ай бұрын
Thanks, for help
@pettymanny6487
@pettymanny6487 3 ай бұрын
Useful, thanks
@InfoWorld
@InfoWorld 2 ай бұрын
You're welcome. -Serdar
@tascsolutions6483
@tascsolutions6483 3 ай бұрын
Thanks, you helped explain things as I have been trying out poetry in my new apps. Curious if you use it. I find it cumbersome up front but will keep using to see if more usage will streamline things. Where exactly does your .egg folder reside?
@InfoWorld
@InfoWorld 2 ай бұрын
When you use pyproject.toml and create an editable install of your package, the .egg-info directory is side by side with the directory where the source for the package is. E.g., if you have /src/myapp, it'll be /src/myapp.egg-info -Serdar
@johncompassion9054
@johncompassion9054 7 ай бұрын
Thank you so much. Can you please explain what are .venv, .gitignore, input.md? And the general directory structure. Thank you again.
@ashrasmun1
@ashrasmun1 7 ай бұрын
.venv is a directory created when you create a python virtual environment using virtualenv module. It basically ensures, that whatever you install, it's only available within that environment instead of whole system. You may want to read about it in detail more. .gitignore is a file in which you list which files you would like to ignore when commiting to your git repository. You may want to read more about "git" to understand context a bit better.
@xzenor
@xzenor 8 ай бұрын
So you don't need a requirements.txt anymore but 'can' you add one anyway for people that prefer it? Or would that cause conflicts?
@InfoWorld
@InfoWorld 8 ай бұрын
You can use a requirements.txt side by side with a pyproject.toml file, but it would be your responsibility to keep the requirements in sync with each other in both files. My own personal feeling is to use one or the other, as a signal to the user about how to handle things.
@jamieo8307
@jamieo8307 11 ай бұрын
🙋 'PromoSM'
Python 3.13's new JIT and no-GIL modes
6:54
InfoWorld
Рет қаралды 2,2 М.
تجربة أغرب توصيلة شحن ضد القطع تماما
00:56
صدام العزي
Рет қаралды 56 МЛН
100❤️
00:19
MY💝No War🤝
Рет қаралды 23 МЛН
Heartwarming moment as priest rescues ceremony with kindness #shorts
00:33
Fabiosa Best Lifehacks
Рет қаралды 33 МЛН
Learn TOML in 10 Minutes (Tutorial)
10:51
Indently
Рет қаралды 24 М.
The most important Python script I ever wrote
19:58
John Watson Rooney
Рет қаралды 168 М.
why I will never use python-poetry
9:09
anthonywritescode
Рет қаралды 56 М.
Intermediate Python Tutorial: How to Use the __init__.py File
6:22
Eric O Meehan
Рет қаралды 129 М.
Modern Graphical User Interfaces in Python
11:12
NeuralNine
Рет қаралды 1,5 МЛН
How to Use Poetry in Python to avoid Dependency Hell
20:21
Earthly
Рет қаралды 12 М.
Pydantic Tutorial • Solving Python's Biggest Problem
11:07
pixegami
Рет қаралды 251 М.
Python 101: Learn the 5 Must-Know Concepts
20:00
Tech With Tim
Рет қаралды 1,1 МЛН
git rebase - Why, When & How to fix conflicts
9:45
Philomatics
Рет қаралды 33 М.
Смартфон УЛУЧШАЕТ ЗРЕНИЕ!?
0:41
ÉЖИ АКСЁНОВ
Рет қаралды 1,1 МЛН
Какой ноутбук взять для учёбы? #msi #rtx4090 #laptop #юмор #игровой #apple #shorts
0:18
$1 vs $100,000 Slow Motion Camera!
0:44
Hafu Go
Рет қаралды 24 МЛН
S24 Ultra and IPhone 14 Pro Max telephoto shooting comparison #shorts
0:15
Photographer Army
Рет қаралды 8 МЛН
iPhone 15 Pro в реальной жизни
24:07
HUDAKOV
Рет қаралды 397 М.