All Questions
Tagged with python-poetry package
29 questions
0
votes
1
answer
241
views
Module not found in poetry using poetry run
I’m working on a FastAPI project where I’m managing dependencies with Poetry. Here is my current pyproject.toml file:
[tool.poetry]
name = "navigo-backend"
version = "0.1.0"
...
2
votes
1
answer
719
views
Poetry: adding packages stored in Azure DevOps
I'm a bit of a beginner to working with Poetry and Azure, so forgive me in advance for any syntax errors and lack of terminology
I built a python package called 'npipack' stored in Azure DevOps: https:...
0
votes
0
answers
49
views
Python package with multiple requirement files
I am looking to create a python package but it contains multiple requirement files. different modules use different environments. for example:
What would be the optimal way to create a package. The ...
1
vote
0
answers
187
views
Obfuscating package using Pyarmor + Poetry Build does not seem to work
I want to obfuscate a package. My current file structure is:
game/
├── my_game/
│ ├── __init__.py
│ ├── play_game.py
│ └── other modules and directories
├── pyproject.toml
└── README.md
└── ...
0
votes
1
answer
46
views
Can't import custom python package in my project
I'm trying to create a package in Python using Poetry and then use it in another project. However after importing the package, I'm unable to use it. The project doesn't recognize it.
Library
pyproject....
0
votes
0
answers
179
views
Python monorepo packaging, using Poetry
I want to organize my Python source code into a monorepo, with the below basic structure:
projectrootdir
- libraryone
- pyproject.toml
- README
- src/orgname/libraryone
- __init__....
-2
votes
1
answer
96
views
problem activating virtual env inside project folder using poetry: cannot deactivate current virtual env
I have a global virtual env (my_env) and have been developing all my projects in it. Now I have developed a new project, also in my_env, and I want to use poetry to create a new, project-specific env ...
0
votes
2
answers
2k
views
How to uninstall partially installed package with poetry?
I tried installing a package with poetry for the first time. It worked on a machine and failed on another because the hardware is not compatible with TensorFlow. I should have installed in a virtual ...
2
votes
0
answers
468
views
Poetry - Install Package on Specific Python Versions
I have a project that can run on python 3.9 and 3.11, but some parts of it only work on python 3.9. This means that there are some dependencies that I want to install only if running on python 3.9 and ...
2
votes
1
answer
2k
views
Should I commit poetry.lock or pyproject.toml, or both?
I'm coming from this question from 2020 and I'm completely lost. What I could gather is that the official poetry docs' advise is to commit poetry.lock to the repo, but there are many developers ...
8
votes
2
answers
12k
views
Using poetry to install from a private repository with a token
I have published a package on packagecloud with a token. To install this package, this URL will be used:
https://{some-token}:@packagecloud.io/{some-domain}.
How do I configure poetry to download ...
2
votes
0
answers
1k
views
How can I use two different versions of the same package with Poetry?
I am using an external sdk in my python application, which is packaged with Poetry.
#pyproject.toml
[tool.poetry.dependencies]
python = ">=3.9, <4"
somesdk = "0.1.0"
I would ...
0
votes
0
answers
477
views
Poetry import local package to script in subfolder
I am unable to import my local package into a Python script (within a subfolder) in my Poetry project.
run.py
from abc import module1
When running python run.py from within the root folder using this ...
2
votes
0
answers
2k
views
Issue using poetry to package python code (No file/folder found for package ...)
I have written a number of functions that help to ingest raw data from research device.
There's two groups of functions
Those that help to normalise timestamps
Those that actually read in/reshape the ...
9
votes
4
answers
14k
views
Use poetry to create binary distributable with pyinstaller on 'package'?
I think I'm missing something simple
I have a python poetry application:
name = "my-first-api"
version = "0.1.0"
description = ""
readme = "README.md"
packages =...