August 2019
Beginner
482 pages
12h 56m
English
Poetry, like flit, is one of the most recent packages aimed at helping with package development in Python. Among its features are the ability to write a pyproject.toml file, which is more secure and easy than the older approach with setup.py, and the ability to create a dedicated virtual environment for a project, with all dependencies pinned. Even more importantly, it has a thorough dependency resolution engine that makes sure all dependency versions fit with each other, and an interface to monitor and bump your dependency tree.
But first, we will start by creating a project template. First, type this:
poetry new --name=wikiwwii my-package
This will generate a new folder, my-package, with default files and folders ...