DAVRON_CODER Telegram 1355
pyproject.toml + Poetry 🔥

Ko'pchiligimiz Python loyihalarda (men ham)requirements.txt ishlatamiz. Lekin bilasizmi, bu usul eskirgan?)

requirements.txt faqat kutubxonalar ro‘yxatini saqlaydi, lekin Python versiyasi, qayerdan o'rnatilgani haqida malumot yuq.

Zamonaviy yechim esa pyproject.toml va Poetry.

Bu loyihani:
- barqaror qiladi
- har kimda bir xil muhit yaratadi
- dependency boshqaruvini yengillashtirar ekan

Masalan, pyproject.toml fayli shunday ko‘rinadi👇


[tool.poetry]
name = "myproject"
version = "0.1.0"
description = "Awesome Python project"
authors = ["Davronbek <[email protected]>"]

[tool.poetry.dependencies]
python = "^3.10"
flask = "^3.0.0"
requests = "^2.31.0"

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"


Poetry shu fayldan foydalanib, virtual environment yaratadi va kutubxonalarni to‘liq nazorat qiladi.
Bu - xuddi Node.js’dagi package.json va package-lock.json kabi ishlaydi.

Xullas:
requirements.txt --> kechagi kun
pyproject.toml --> bugun va ertangi kun "deyishmoqda"

More 👈
Please open Telegram to view this post
VIEW IN TELEGRAM
👍9🔥4🤝41



tgoop.com/davron_coder/1355
Create:
Last Update:

pyproject.toml + Poetry 🔥

Ko'pchiligimiz Python loyihalarda (men ham)requirements.txt ishlatamiz. Lekin bilasizmi, bu usul eskirgan?)

requirements.txt faqat kutubxonalar ro‘yxatini saqlaydi, lekin Python versiyasi, qayerdan o'rnatilgani haqida malumot yuq.

Zamonaviy yechim esa pyproject.toml va Poetry.

Bu loyihani:
- barqaror qiladi
- har kimda bir xil muhit yaratadi
- dependency boshqaruvini yengillashtirar ekan

Masalan, pyproject.toml fayli shunday ko‘rinadi👇


[tool.poetry]
name = "myproject"
version = "0.1.0"
description = "Awesome Python project"
authors = ["Davronbek <[email protected]>"]

[tool.poetry.dependencies]
python = "^3.10"
flask = "^3.0.0"
requests = "^2.31.0"

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"


Poetry shu fayldan foydalanib, virtual environment yaratadi va kutubxonalarni to‘liq nazorat qiladi.
Bu - xuddi Node.js’dagi package.json va package-lock.json kabi ishlaydi.

Xullas:
requirements.txt --> kechagi kun
pyproject.toml --> bugun va ertangi kun "deyishmoqda"

More 👈

BY Davronbek | SWE 🪐




Share with your friend now:
tgoop.com/davron_coder/1355

View MORE
Open in Telegram


Telegram News

Date: |

Channel login must contain 5-32 characters Hui said the messages, which included urging the disruption of airport operations, were attempts to incite followers to make use of poisonous, corrosive or flammable substances to vandalize police vehicles, and also called on others to make weapons to harm police. In handing down the sentence yesterday, deputy judge Peter Hui Shiu-keung of the district court said that even if Ng did not post the messages, he cannot shirk responsibility as the owner and administrator of such a big group for allowing these messages that incite illegal behaviors to exist. How to create a business channel on Telegram? (Tutorial) Image: Telegram.
from us


Telegram Davronbek | SWE 🪐
FROM American