Python dependency management tool Poetry reaches version 1.0.0
Poetry 1.0.0 has been released. The Python tool for dependency management and packaging is designed to make these tasks easier. Poetry is compatible with Python 2.7 or 3.4 and above, and can be used multi-platform on Windows, Linux or macOS. The milestone version 1.0.0 adds some new features and commands.
As developer Sébastian Eustace announced in a blog post, Poetry has reached version 1.0.0. This “stepping stone” includes a change that may make it incompatible with previous versions. But first, let’s take a look at what this Python tool is all about.
Poetry aims to simplify Python packaging
As Poetry’s GitHub documentation reads, packaging and dependency management in Python may be hard to understand. Python projects require the files setup.py, requirements.txt, setup.cfg, MANIFEST.in and, since recently, Pipfile.
Poetry is designed to make this process easier by combining everything into a single configuration file, drawing inspiration from similar tools in other programming languages.
This gif from the GitHub repo shows Poetry in action:
What’s new in v1.0.0
Poetry will now try to find a Python environment that is compatible with the the pyproject.toml file if the currently specified environment is not. Version 1.0.0 also offers more control and easier switching between Python versions with the command
Another new command,
env info, provides basic information about the current environment. The output to
poetry env info will look something like this:
As the lock file has undergone slight changes, this may lead to incompatibilities with earlier Poetry versions. Additionally, the latest Poetry version adds the option to export the lock file to other formats via
export. The command currently only supports requirements.txt.
Further updates include improved support for private indices and new options for configuration management.