-
Notifications
You must be signed in to change notification settings - Fork 5
Conversation
Does not include poetry integration
monotrail-utils/Cargo.toml
Outdated
[dependencies] | ||
anyhow = "1.0.65" | ||
fs-err = "2.8.1" | ||
pep508_rs = { git = "https://github.com/konstin/pep508_rs", rev = "df87d4ff0f0f3554780ab82680539cb190b0a585", features = ["serde"] } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this use a released version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added in d64b333
@@ -0,0 +1,3 @@ | |||
pub use requirements_txt::RequirementsTxt; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should get some module level (or rather crate level) doc comment about what this crate is
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to hold off on fleshing it out? Added in 97987ad
Could you use the monotrail_util We also need updated CI workflows to publish monotrail-utils to crates.io, not necessarily now but before it blocks downstream crates from publishing to crates.io |
I'll check it out. |
I can look into making a PR for the CI after if that's alright with you. I'm planning on getting astral-sh/rye#265 ready for a review next. Then I can loop around to the CI. |
let requirements = RequirementsTxt::parse(&requirements_txt, ¤t_dir()?)? | ||
.into_poetry(&requirements_txt)?; | ||
let requirements = read_requirements_for_poetry(&requirements_txt, ¤t_dir()?)?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe I'm adding an allocation here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tbh i'm not to concerned about allocations here, i don't think requirements.txt parsing will take any noticeable amount of time, especially when compared to network requests, deserialization and package installation (those three i've seen as bottlenecks in flamegraphs)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cargo test --workspace
and cargo clippy --tests --all-features --workspace
are still failing, otherwise looks good
monotrail-utils/Cargo.toml
Outdated
anyhow = "1.0.65" | ||
fs-err = "2.8.1" | ||
pep508_rs = { version = "0.2.1", features = ["serde"] } | ||
serde = { version = "1.0.145", features = ["derive"] } | ||
serde_json = "1.0.85" | ||
toml = "0.7.2" | ||
tracing = "0.1.36" | ||
unscanny = "0.1.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here we can inherit the versions for the shared dependencies from the workspace root: https://doc.rust-lang.org/cargo/reference/workspaces.html#the-package-table
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you like to use shared deps in install-wheel-rs
? I can make that a follow up PR if you want.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's be great!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I couldn't find anything about dev deps. Started with 175f7b3. Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IIUC I'd want to use [workspace.dependencies] for dev dependencies as well. Added in ee7a182
I have the same 12 pass 1 failure (wheel::test::installed_paths_relative) on UPDATE: #56 |
I can create an issue for this, but on
I'm on macos. UPDATE: #55 |
Thanks! |
UPDATED:
This PR moves
RequirementsTxt
to a newmonotrail-utils
crate.Summary of changes:
monotrail-utils
crateRequirementsTxt
overRequirementsTxt
inpoetry_integration
Tag astral-sh/rye#265
Closes #56