How to use Poetry to manage your Python projects on Fedora

Python developers often create a new virtual environment to separate project dependencies and then manage them with tools such as pip pipenv etc. Poetry is a tool for simplifying dependency management and packaging in Python. This post will show you how to use Poetry to manage your Python projects on Fedora.

Unlike other tools Poetry uses only a single configuration file for dependency management packaging and publishing. This eliminates the need for different files such as Pipfile MANIFEST.in setup.py etc. It is also faster than using multiple tools.

Detailed below is a brief overview of commands used when getting started with Poetry.

If you already use Fedora 32 or above you can install Poetry directly from the command line using this command.

Create a new project using the new command. .

The structure of a project created with Poetry looks like this.

...

Read Full Post

News Link: https://fedoramagazine.org/how-to-use-poetry-to-manage-your-python-projects-on-fedora/.
RSS Link: https://fedoramagazine.org/feed/.

Linux Chatter is a news aggregator service that curates some of the best Linux, Cloud, Technical Guides, Hardware and Security news. We display just enough content from the original post to spark your interest. If you like the topic, then click on the 'read full post' button to visit the author's website. Use Linux Chatter to find content from amazing authors!

Note: The content provided has been modified and is not displayed as intended by the author. Any trademarks, copyrights and rights remain with the source.

Disclaimer: Linux Chatter sources content from RSS feeds and personal content submissions. The views and opinions expressed in these articles are those of the authors and do not necessarily reflect those of Linux Chatter.