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

Update pep508_rs and pep440_rs #928

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Conversation

bluss
Copy link
Contributor

@bluss bluss commented Mar 23, 2024

Update pep508_rs and pep440_rs crates

Main reason is to use VerbatimUrl from pep508_rs and try to fix issues around file:///${PROJECT_ROOT}/etc dependencies.

Note that monotrail-utils is still using the older pep508_rs.

Fixes #912

@bluss bluss marked this pull request as draft March 23, 2024 12:40
@bluss
Copy link
Contributor Author

bluss commented Mar 23, 2024

This is in an attempt to solve #912. In this case by using the real absolute path as the Url part of VerbatimUrl and the ${PROJECT_ROOT}/../relative path as the "given" part of the URL, let's see how that works out.

Remains to be done

@bluss bluss force-pushed the update-pep508 branch 5 times, most recently from 33aa30d to 81ac63f Compare March 23, 2024 13:13
rye/src/cli/init.rs Outdated Show resolved Hide resolved
@bluss bluss force-pushed the update-pep508 branch 2 times, most recently from 69a8d4a to 1d89d54 Compare March 24, 2024 12:33
@bluss bluss marked this pull request as ready for review March 24, 2024 12:37
@bluss
Copy link
Contributor Author

bluss commented Mar 24, 2024

Now it's working, but it certainly does not feel solid around VerbatimUrl and ${}'s.

@bluss bluss force-pushed the update-pep508 branch 6 times, most recently from 2ce0036 to fc91d87 Compare March 24, 2024 13:10
@bluss bluss mentioned this pull request Mar 25, 2024
@bluss
Copy link
Contributor Author

bluss commented Mar 29, 2024

rebased x3

@bluss
Copy link
Contributor Author

bluss commented May 6, 2024

Feedback on this is welcome. Updating these crates is ok? Fixing relative paths is ok or a bad idea? We could go other ways, like adopting another convention for relative paths than the ${PROJECT_ROOT} stuff here, for example going all in on uv-style relative paths?

bluss added 5 commits May 6, 2024 21:56
Update pep508_rs and pep440_rs crates

Main reason is to use VerbatimUrl from pep508_rs.

Note that monotrail-utils is still using the older pep508_rs.
For test uniformity, set author name in test config.
bluss added 2 commits May 6, 2024 21:56
This is to explicitly use / for path separators.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't add relative path dependencies in virtual project
1 participant