dependency-management

How do I install packages from test.pypi.org using poetry?

How do I install packages from test.pypi.org using poetry? Question: I want to use a pre-release version of a package (https://test.pypi.org/project/delta-spark/2.1.0rc1/) in my project. I’m using poetry to manage my pyproject.toml. How do I do this? In other words what is the poetry equivalent of: pip install -i https://test.pypi.org/simple/ delta-spark==2.1.0rc1 I tried: poetry add delta-spark==2.1.0rc1 …

Total answers: 1

Why can't I install a Python package with the Python requirement ">=3.8,<3.11" into a Poetry project with the Python version "^3.9"?

Why can't I install a Python package with the Python requirement ">=3.8,<3.11" into a Poetry project with the Python version "^3.9"? Question: I’m having an issue installing dependencies into my Poetry project. If I run poetry new (as described in https://python-poetry.org/docs/basic-usage/), I can create a new project: $ poetry new scipy-test Created package scipy_test in …

Total answers: 1

How to use poetry with docker?

How to use poetry with docker? Question: How do I install poetry in my image? (should I use pip?) Which version of poetry should I use? Do I need a virtual environment? There are many examples and opinions in the wild which offer different solutions. Asked By: Soof Golan || Source Answers: TL;DR Install poetry …

Total answers: 3

Python dependency hell: A compromise between virtualenv and global dependencies?

Python dependency hell: A compromise between virtualenv and global dependencies? Question: I’ve tested various ways to manage my project dependencies in Python so far: Installing everything global with pip (saves spaces, but sooner or later gets you in trouble) pip & venv or virtualenv (a bit of a pain to manage, but ok for many …

Total answers: 4

What do square brackets mean in pip install?

What do square brackets mean in pip install? Question: I see more and more commands like this: $ pip install “splinter[django]” What do these square brackets do? Asked By: Babken Vardanyan || Source Answers: The syntax that you are using is: pip install “project[extra]” In your case, you are installing the splinter package which has …

Total answers: 6

Creating Dependency Graphs in Python

Creating Dependency Graphs in Python Question: I have inherited a huge codebase that I need to make some small changes into. I was wondering if there are utilities that would parse python code and give dependencies between functions, as in if I make changes to a function I want to be sure that I dont …

Total answers: 1

Maven equivalent for python

Maven equivalent for python Question: I’m a java developer/python beginner, and I’m missing my maven features, particularly dependency management and build automation (I mean you don’t build, but how to create a package for deployment?) Is there a python equivalent to achieve these features? Note: I use python 2.x Thanks. Asked By: Enno Shioji || …

Total answers: 5