Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow git dependencies in pyproject.toml format #1849

Closed
crclark opened this issue Apr 10, 2023 · 2 comments
Closed

Allow git dependencies in pyproject.toml format #1849

crclark opened this issue Apr 10, 2023 · 2 comments
Labels
duplicate Duplicate of an existing issue/PR

Comments

@crclark
Copy link

crclark commented Apr 10, 2023

What's the problem this feature will solve?

While adding a git dependency is undocumented, it seems to supported according to this issue.

However, when I try to use that format in pyproject.toml, I get an uninformative error message:

$ pip-compile --no-emit-index-url --output-file=requirements.txt --resolver=backtracking pyproject.toml                                            
Backend subprocess exited when trying to invoke get_requires_for_build_wheel
Failed to parse pyproject.toml

Describe the solution you'd like

  • Allow git dependencies in the above format.
  • Document that this is allowed.

Alternative Solutions

I have not been able to find a workaround.

Additional context

Minimal repro pyproject.toml

[project]
name = "foo"
description = ""
authors = [
    { name = "foo", email = "foo@example.com"}
]
version = "0.1.0"
requires-python = ">=3.8"
dependencies = [
    "numpy",
    # uncomment the following to see the failure
    # "git+https://github.com/jazzband/django-axes@0eecff2e57dd1748ce561b9d1340f079feb278f9",
]
@atugushev
Copy link
Member

atugushev commented Apr 15, 2023

pip-tools support git dependencies. The issue is that the given pyproject.toml is invalid. Try pip install -e . to see the error. We're working on a better error log, see #1711.

@atugushev atugushev added the duplicate Duplicate of an existing issue/PR label Apr 15, 2023
@atugushev
Copy link
Member

Closing this as a duplicate of #1711.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Duplicate of an existing issue/PR
Projects
None yet
Development

No branches or pull requests

2 participants