Questions tagged [python-poetry]

Poetry is a Python tool to handle dependency installation, as well as the building and packaging of Python packages. Do NOT use this tag for poems written in the Python language, since this is off-topic on Stack Overflow.

Poetry is a Python tool to handle dependency installation as well as building and packaging of Python packages. Do not use this tag for poems written in Python language since this is off-topic on Stack Overflow.

What are the advantages of Poetry compared to other types of package management? From the documentation:

Packaging systems and dependency management in Python are rather convoluted and hard to understand for newcomers. Even for seasoned developers it might be cumbersome at times to create all files needed in a Python project: setup.py, requirements.txt, setup.cfg, MANIFEST.in and the newly added Pipfile.

So I wanted a tool that would limit everything to a single configuration file to do: dependency management, packaging and publishing.

It takes inspiration in tools that exist in other languages, like Composer (PHP) or Cargo (Rust).

And, finally, there is no reliable tool to properly resolve dependencies in Python, so I started poetry to bring an exhaustive dependency resolver to the Python community.

1108 questions
0
votes
0 answers

Why did python poetry download different packages compared to the project's repository?

I installed jupyter using poetry. Typing the command 'jupyter' returns a list options I have available, so the installation was a success, but when I run the command 'jupyter notebook' an error appears saying some modules cannot be found. On further…
Aaron Lee
  • 1
  • 1
0
votes
1 answer

How to configure vimspector.json to work with poetry run

I'm building a CLI in python using poetry and have used vimspector separately in the past for python debugging. When I test a normal python file, I can set up my vimspector.json like { "configurations": { "run": { "adapter": "debugpy", …
hselbie
  • 1,749
  • 9
  • 24
  • 40
0
votes
1 answer

Google Cloud Build Bitbucket integration does not support git tags

Just as you can see in the title, if you configure a CloudBuild trigger to pull a repository from Bitbucket, it will be a mirror and it won't have tags, so build setups that use for example poetry dynamic versions will build packages with version =…
0
votes
1 answer

Package my python project into exe file that requires nothing to be installed on customer side

I have developed a python application that records the users' actions on the web using the following packages python==3.7.9 selenium==4.0.0 seleniumbase==2.1.9 Tinkerer==1.7.2 tqdm==4.62.3 validators==0.18.2 I have tried to use a lot of different…
ElSheikh
  • 321
  • 6
  • 28
0
votes
1 answer

what's the poetry equivalent of pip install 'python-lsp-server[all]'?

In the page about the python lsp server there are examples about how to install it in an env based on pip; like pip install 'python-lsp-server[all]' or pip install 'python-lsp-server[yapf]' How do I get the same with Poetry ?
user1632812
  • 431
  • 3
  • 16
0
votes
1 answer

What does it mean if poetry.lock contains the same package twice?

I've just discovered after a poetry update that the generated package.lock file contains the block [[package]] name = "black" version = "21.8b0" description = "The uncompromising code formatter." category = "dev" optional = false python-versions =…
Martin Thoma
  • 124,992
  • 159
  • 614
  • 958
0
votes
0 answers

poetry: command not found

I have Poetry installed, and have a poetry.lock in the same cwd. I want to perform poetry update/install. Why can I not install poetry…
StressedBoi69420
  • 1,376
  • 1
  • 12
  • 40
0
votes
2 answers

I have broken my poetry installation, and I don't know where to begin to fix it

I was using poetry in combination with pyenv for some hobby projects. I created some virtualenvs with pyenv inside some poetry hobby projects. For some reason, I deleted some of these python installs that broke the virtualenvs within these projects…
SWHJ
  • 344
  • 2
  • 10
0
votes
1 answer

Sync Poetry with PIP

I have a virtual environment created with Poetry where I had installed some packages with pip (Airflow and their dependencies). When I execute pip list, I see all the packages installed. I didn't install Airflow with Poetry because is not supported:…
0
votes
1 answer

Why does poetry install windows only dependency on macOS and linux?

I have tried listing the following dependency in pyproject.toml to have this particular torch only be installed when on Windows platforms. torch = { url = "https://download.pytorch.org/whl/cpu/torch-1.7.0%2Bcpu-cp36-cp36m-win_amd64.whl", platform =…
conner.xyz
  • 6,273
  • 8
  • 39
  • 65
0
votes
1 answer

Cannot find the package in python-poetry and it listed 9 at most

The old project was build by Conda and I need to migrate it to using poetry. One can use Poetry Init command to set up the toml configuration file. sphinx library was listed in the old Conda enviroment.yml file. And I need to add it by using…
SLN
  • 4,772
  • 2
  • 38
  • 79
0
votes
1 answer

Poetry fails whenever I try to run cicd in GitHub Actions

I'm facing a problem with Poetry and GitHub actions in the last days. Maybe because Poetry has an updated version. Information Poetry version 1.1.9 I'm using the following .yml file for the CICD jobs: execute-linters: runs-on: ubuntu-latest …
Henrique Branco
  • 1,778
  • 1
  • 13
  • 40
0
votes
1 answer

Installing Poetry fails on Docker

I have a Django project and I'm trying to set it up with Docker. I use Poetry, so I have to install Poetry in the container. Below is my Dockerfile. FROM python:3.9.7-alpine WORKDIR /usr/src/app ENV PYTHONDONTWRITEBYTECODE 1 ENV PYTHONUNBUFFERED…
Eray Erdin
  • 2,633
  • 1
  • 32
  • 66
0
votes
1 answer

How to handle development of nested graph python libraries

Imagine I have: Library Z Library Y, which depends on Library Z Application A, which depends on Library Y To fully test out changes to Library Z, I'd like to run the tests of Application A with any Development releases of Library Z. To do this I…
Alex Latchford
  • 655
  • 1
  • 9
  • 17
0
votes
0 answers

Why do I have to reinstall dependencies using pip instead of Poetry when using Celery

I tried to start my Celery worker like this celery -A backend worker -l info but I got this error ModuleNotFoundError: No module named 'rest_framework' I'm using Poetry and I already have my virtual environment activated and it was included in my…
A.K.M. Adib
  • 517
  • 1
  • 7
  • 22