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

uv does not appear to parse multiple sources in pyproject.toml #6544

Closed
jauderho opened this issue Aug 23, 2024 · 2 comments
Closed

uv does not appear to parse multiple sources in pyproject.toml #6544

jauderho opened this issue Aug 23, 2024 · 2 comments
Labels
duplicate This issue or pull request already exists question Asking for clarification or support

Comments

@jauderho
Copy link

jauderho commented Aug 23, 2024

uv 0.3.2

The latest releases of uv looked interesting with lock support so I decided to try converting one of my repos. I currently use pipenv to generate a requirements.txt

This is what I have in the Pipfile

[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[[source]]
url = "https://www.piwheels.org/simple"
verify_ssl = true
name = "piwheels"

[packages]
ansible = "*"
ansible-lint = "*"
jmespath = "*"
pywinrm = {extras = ["kerberos", "credssp"], version = "*"}
requests-credssp = "*"
requests-kerberos = "*"
storops = "*"
wheel = "*"
#mitogen = { git = "https://github.com/mitogen-hq/mitogen.git", editable = true, ref = "bd3cfb4230a485c57a7ad63687ad15249ed341f8" }
#mitogen = { git = "https://github.com/mitogen-hq/mitogen.git", editable = true }
mitogen = "*"

[dev-packages]

[requires]
python_version = "3"

Based on what I could figure out, this should be a mostly equivalent pyproject.toml

[project]
name = "afiles"
version = "1.0.0"
description = "Private Ansible files"
authors = ["Jauder Ho <jauderho@users.noreply.github.com>"]
requires-python = ">=3.12"
dependencies = [
    "ansible",
    "ansible-lint",
    "jmespath",
    "mitogen",
    "pywinrm[kerberos,credssp]",
    "requests-credssp",
    "requests-kerberos",
    "storops",
    "wheel",
]

[[tool.poetry.source]]
name = "pypi"
url = "https://pypi.org/simple"
default = true

[[tool.poetry.source]]
name = "piwheels"
url = "https://www.piwheels.org/simple"

[tool.pip-tools]
generate-hashes = false

However, after running uv lock and uv pip compile pyproject.toml -o requirements.txt, the resulting requirements.txt file does not have what I was expecting to see.

-i https://pypi.org/simple
--extra-index-url https://www.piwheels.org/simple

Hopefully, someone can point out what I'm missing here. Thanks in advance.

@zanieb
Copy link
Member

zanieb commented Aug 23, 2024

I believe you're looking for #171 — which we want to do but haven't yet.

@zanieb zanieb added question Asking for clarification or support duplicate This issue or pull request already exists labels Aug 23, 2024
@charliermarsh
Copy link
Member

I'm gonna combine with the existing issue -- thanks!

@charliermarsh charliermarsh closed this as not planned Won't fix, can't repro, duplicate, stale Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists question Asking for clarification or support
Projects
None yet
Development

No branches or pull requests

3 participants