Questions tagged [pip-tools]

Pip-tools is a set of command tools designed to keep your pinned Python dependencies up-to-date.

pip-tools is a set of command line tools to help you keep your pip-based packages fresh, even when you've pinned them. In building your Python application and its dependencies for production, you want to make sure that your builds are predictable and deterministic.

Resources

38 questions
2
votes
1 answer

Why pip-tools is unable to infer the correct version?

I try to use pip-compile to lock down my python dependency, so I wrote a very simple requirements.txt. future >= 0.16.0 dronekit >= 2.9.1 dronekit-sitl >= 3.2.0 pymavlink >= 2.2.8 MAVProxy == 1.6.4 simplejson >= 3.10.0 However when I compile it, I…
tribbloid
  • 4,026
  • 14
  • 64
  • 103
1
vote
1 answer

Why is pip reporting dependencies conflicts even though there are none?

pip is reporting dependencies conflicts when there are none: The conflict is caused by: apache-beam[gcp] 2.39.0 depends on numpy<1.23.0 and >=1.14.3 tensorflow-utils 0.0.18.dev1 depends on numpy==1.22.4 tensorflow-utils==0.0.18.dev1 is my…
1
vote
1 answer

How to update tox environments when requirements.txt files change?

Question Normally when I change the deps in my tox.ini file tox will notice the change and recreate the virtualenv with the new dependencies. But if I use deps = -r requirements.txt to read my dependencies from a requirements.txt file then tox…
Sean Hammond
  • 12,550
  • 5
  • 27
  • 35
1
vote
1 answer

pip-compile for setup.py's install_requires instead of requirements.txt

pip-compile enables traceability in pinning requirements inside a requirements.txt with an external requirements.in. I really like this My question is, can we somehow do the same, but for an install_requires list inside setup.py? In other words, if…
1
vote
1 answer

How to use setup.py and setup.cfg and pip-tools to obtain layered requirements.txt under different environment of a Django project?

I'm using https://github.com/jazzband/pip-tools to handle compiling the requirements.txt for a Django project. Previously, I was using without a setup.py and so i was using base.in, local.in, and production.in. When I needed a local requirements.txt…
Kim Stacks
  • 10,202
  • 35
  • 151
  • 282
1
vote
0 answers

Create "reverse engineered" python wheel from a package installed via pip that is not on a package index like PyPi

The question might sound a bit weird because creating wheels is standard Python knowledge. We have the special situation that we have numerous different Python environments with an unversioned package my_package that was installed some time ago. So…
Cord Kaldemeyer
  • 6,405
  • 8
  • 51
  • 81
1
vote
1 answer

Let pip-compile determine versions of tensorflow packages based on installed tensorflow version

I have the following Dockerfile: ARG TF_VERSION FROM tensorflow/tensorflow:${TF_VERSION}-gpu-jupyter AS base COPY requirements.in /opt/app/requirements.in WORKDIR /opt/app RUN python -m pip install pip-tools && \ pip-compile requirements.in &&…
BioGeek
  • 21,897
  • 23
  • 83
  • 145
1
vote
1 answer

pip-compile error: AttributeError: 'ParsedRequirement' object has no attribute 'editable'

I'm trying to use pip-compile to build my requirements.txt file and I get the following error. Traceback (most recent call last): File "/Users/foobar/.pyenv/versions/3.7.0/bin/pip-compile", line 11, in sys.exit(cli()) File…
mj_
  • 6,297
  • 7
  • 40
  • 80
1
vote
2 answers

pip-tools doesn't install dependencies to activated virtualenv

I wish to separate my requirement files into development (requirements-dev.txt) and production (requirements.txt) using pip-tools. I have installed pip-tools using pipx as I want it to be globally available but isolated. However, doing so causes my…
Josh
  • 1,357
  • 2
  • 23
  • 45
1
vote
0 answers

How to generate python pip dependency ranges?

I am working on a python library and we are currently using pip-tools to pin dependencies. E.g. a basic requirements.in: black pandas torch Running pip-compile on this file will generate a requirements.txt something like the following (which has…
amin_nejad
  • 989
  • 10
  • 22
1
vote
2 answers

Does pip-tools and/or new resolver prevent upgrading to a subdependency version that breaks a primary dependency?

I am using pip-tools 5.4.0, pip 20.3.1, and python3. I have looked at pip-tools source code and the pip blog post about the new resolver. I do not see an explicit answer to my question. If I run: pipdeptree flake8==3.8.4 - mccabe [required:…
Steve
  • 413
  • 2
  • 5
  • 17
0
votes
1 answer

Optional dependencies using test-requirements.txt in pyproject.toml with setuptools

A typical pyproject.toml using setuptools with optional dependencies looks like the following (unrelated sections removed): [build-system] requires = ["setuptools>=61.0"] build-backend = "setuptools.build_meta" [project] name =…
Moobie
  • 1,445
  • 14
  • 21
0
votes
2 answers

How to read top-level requirements (as from requirements.in) from setup.py and write back pinned requirements (as in requirements.txt)?

I have a package with a setup.py file and want to use pip-tools to pin my dependencies for production. Let's say my setup.py looks as follows: #!/usr/bin/env python import pathlib from setuptools import setup, find_packages setup( …
Cord Kaldemeyer
  • 6,405
  • 8
  • 51
  • 81
0
votes
2 answers

Loose version in requirements.in

I am writing a library A that is used by an application B, I am using pip-compile in the process for both library A and application B, and would like my requirements.txt to have a loose dependency such as # requirements.in for library…
Michel Hua
  • 1,614
  • 2
  • 23
  • 44
0
votes
0 answers

How to pip install different subdirectories from same repo?

I have an installation of Airflow in my requirements.in file -e git+git@github.com:apache/airflow.git#egg=apache-airflow and I want another line that will install the backport providers Google package with a cherry picked commit from my own fork. -e…
Paul
  • 1,101
  • 1
  • 11
  • 20