days
0
-30
-3
hours
-1
-6
minutes
-4
-7
seconds
0
0
search
Milestone release of Poetry has arrived

Python dependency management tool Poetry reaches version 1.0.0

Maika Möbus
python
© Shutterstock / BrAt82

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.

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.

Author
Maika Möbus
Maika Möbus has been an editor for Software & Support Media since January 2019. She studied Sociology at Goethe University Frankfurt and Johannes Gutenberg University Mainz.

Leave a Reply

avatar
400