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

pdm export requirements does not use --find-links #2342

Closed
1 task done
ethanluoyc opened this issue Oct 28, 2023 · 0 comments · Fixed by #2343
Closed
1 task done

pdm export requirements does not use --find-links #2342

ethanluoyc opened this issue Oct 28, 2023 · 0 comments · Fixed by #2343
Labels
🐛 bug Something isn't working

Comments

@ethanluoyc
Copy link
Contributor

ethanluoyc commented Oct 28, 2023

  • I have searched the issue tracker and believe that this is not a duplicate.

Steps to reproduce

I would like to export a requirements.txt file for installation. In my pyproject.toml I have

[project]
dependencies = ['jax[cuda12_pip']
[[tool.pdm.source]]
name = "jax_cuda"
url = "https://storage.googleapis.com/jax-releases/jax_cuda_releases.html"
verify_ssl = true
type = "find_links"

However when I export requirements file, these are exposed as --extra-index-url as opposed to --find-links.

Actual behavior

At the end of my exported requirements I get

--extra-index-url https://storage.googleapis.com/jax-releases/jax_cuda_releases.html

Expected behavior

I expect the find links in sources to be preserved during export. The above should be

--find-links https://storage.googleapis.com/jax-releases/jax_cuda_releases.html

Environment Information

# Paste the output of `pdm info && pdm info --env` below:
PDM version:
  2.10.0
Python Interpreter:
  /home/yicheng/project/.venv/bin/python (3.10)
Project Root:
  /home/yicheng/project/
Local Packages:

{
  "implementation_name": "cpython",
  "implementation_version": "3.10.5",
  "os_name": "posix",
  "platform_machine": "x86_64",
  "platform_release": "5.15.0-87-generic",
  "platform_system": "Linux",
  "platform_version": "#97~20.04.1-Ubuntu SMP Thu Oct 5 08:25:28 UTC 2023",
  "python_full_version": "3.10.5",
  "platform_python_implementation": "CPython",
  "python_version": "3.10",
  "sys_platform": "linux"
}
@ethanluoyc ethanluoyc added the 🐛 bug Something isn't working label Oct 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant