Python dependency management tool Poetry reaches version 1.0.0

Share
  • December 18, 2019

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.

SEE ALSO: Python is on its way to become the top programming language of 2019

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:

Python

Source: Poetry


 

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 env use.

Another new command, env info, provides basic information about the current environment. The output to poetry env info will look something like this:

Python

Source: Poetry

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.

SEE ALSO: Programming Alexa Skills with Python – how does it work?

Further updates include improved support for private indices and new options for configuration management.

The GitHub changelog and the official website offer more details on Poetry 1.0.0.

The post Python dependency management tool Poetry reaches version 1.0.0 appeared first on JAXenter.

Source : JAXenter