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

Export editable subpackage to requirements.txt with relative path instead of full file url #3294

Open
1 task
dayongxie opened this issue Nov 15, 2024 · 0 comments
Labels
⭐ enhancement Improvements for existing features

Comments

@dayongxie
Copy link

Feature Description

When exporting requirements, it is desired that dependencies of subpackages within the project directory use relative paths, such as:
-e ./packages/pkg-core

Problem and Solution

Using the current latest version 2.20.1 in a monorepo-style project, when exporting requirements.txt, the dependencies of subprojects are full paths:
-e file:///D:/opensource/pdm-example-monorepo/packages/pkg-core#egg=pkg-core
This requirements.txt file cannot be used elsewhere, and it is hoped that it can be changed to use relative paths.

Additional Context

No response

Are you willing to contribute to the development of this feature?

  • Yes, I am willing to contribute to the development of this feature.
@dayongxie dayongxie added the ⭐ enhancement Improvements for existing features label Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⭐ enhancement Improvements for existing features
Projects
None yet
Development

No branches or pull requests

1 participant