Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into js/feat/solve
Browse files Browse the repository at this point in the history
  • Loading branch information
baszalmstra committed Feb 27, 2025
2 parents 65e8b75 + 3947d72 commit e773499
Show file tree
Hide file tree
Showing 23 changed files with 1,103 additions and 184 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pixi.lock merge=binary linguist-language=YAML linguist-generated=true
Cargo.lock merge=binary linguist-generated=true
4 changes: 4 additions & 0 deletions .github/workflows/python-bindings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
- uses: prefix-dev/setup-pixi@v0.8.3
with:
manifest-path: py-rattler/pixi.toml
environments: test
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: clippy, rustfmt
Expand All @@ -44,6 +45,9 @@ jobs:
pixi run -e test lint
pixi run -e test fmt-check
- name: Run tests
env:
RATTLER_TEST_R2_ACCESS_KEY_ID: ${{ secrets.RATTLER_TEST_R2_ACCESS_KEY_ID }}
RATTLER_TEST_R2_SECRET_ACCESS_KEY: ${{ secrets.RATTLER_TEST_R2_SECRET_ACCESS_KEY }}
run: |
cd py-rattler
pixi run -e test test --color=yes
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ chrono = { version = "0.4.39", default-features = false, features = [
"alloc",
] }
clap = { version = "4.5.29", features = ["derive"] }
clap-verbosity-flag = "3.0.1"
cmake = "0.1.54"
console = { version = "0.15.10", features = ["windows-console-colors"] }
criterion = "0.5"
Expand Down Expand Up @@ -104,6 +105,7 @@ memmap2 = "0.9.5"
netrc-rs = "0.1.2"
nom = "7.1.3"
num_cpus = "1.16.0"
opendal = { version = "0.51.2", default-features = false }
once_cell = "1.20.3"
parking_lot = "0.12.3"
pathdiff = "0.2.3"
Expand Down Expand Up @@ -160,6 +162,7 @@ tokio-util = "0.7.13"
tower = { version = "0.5.2", default-features = false }
tower-http = { version = "0.6.2", default-features = false }
tracing = "0.1.41"
tracing-log = "0.2.0"
tracing-subscriber = { version = "0.3.19", default-features = false }
tracing-test = { version = "0.2.5" }
trybuild = { version = "1.0.103" }
Expand Down
27 changes: 21 additions & 6 deletions crates/rattler_conda_types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,33 +24,48 @@ itertools = { workspace = true }
lazy-regex = { workspace = true }
nom = { workspace = true }
purl = { workspace = true, features = ["serde"] }
rattler_digest = { path = "../rattler_digest", version = "1.0.6", default-features = false, features = ["serde"] }
rattler_digest = { path = "../rattler_digest", version = "1.0.6", default-features = false, features = [
"serde",
] }
rattler_macros = { path = "../rattler_macros", version = "1.0.6", default-features = false }
rattler_redaction = { version = "0.1.6", path = "../rattler_redaction", default-features = false }
regex = { workspace = true }
simd-json = { workspace = true , features = ["serde_impl"]}
simd-json = { workspace = true, features = ["serde_impl"] }
serde = { workspace = true, features = ["derive", "rc"] }
serde_json = { workspace = true }
serde_repr = { workspace = true }
serde_with = { workspace = true, features = ["indexmap_2"] }
serde-untagged = { workspace = true }
serde_yaml = { workspace = true }
smallvec = { workspace = true, features = ["serde", "const_new", "const_generics", "union"] }
smallvec = { workspace = true, features = [
"serde",
"const_new",
"const_generics",
"union",
] }
strum = { workspace = true, features = ["derive"] }
tempfile = { workspace = true }
thiserror = { workspace = true }
tracing = { workspace = true }
typed-path = { workspace = true }
url = { workspace = true, features = ["serde"] }
indexmap = { workspace = true }
rattler_redaction = { version = "0.1.6", path = "../rattler_redaction" }
dirs = { workspace = true }
rayon = { workspace = true, optional = true }
fs-err = { workspace = true }

[dev-dependencies]
rand = { workspace = true }
insta = { workspace = true, features = ["yaml", "redactions", "toml", "glob", "filters"] }
rattler_package_streaming = { path = "../rattler_package_streaming", default-features = false, features = ["rustls-tls"] }
insta = { workspace = true, features = [
"yaml",
"redactions",
"toml",
"glob",
"filters",
] }
rattler_package_streaming = { path = "../rattler_package_streaming", default-features = false, features = [
"rustls-tls",
] }
rstest = { workspace = true }
assert_matches = { workspace = true }
hex-literal = { workspace = true }
Expand Down
55 changes: 48 additions & 7 deletions crates/rattler_index/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,64 @@ name = "rattler_index"
version = "0.20.13"
edition.workspace = true
authors = []
description = "A crate that indexes directories containing conda packages to create local conda channels"
description = "A crate to index conda channels and create a repodata.json file."
categories.workspace = true
homepage.workspace = true
repository.workspace = true
license.workspace = true
readme.workspace = true
default-run = "rattler-index"

[features]
default = ["rustls-tls"]
native-tls = [
"reqwest/native-tls",
"reqwest/native-tls-alpn",
"rattler_package_streaming/native-tls",
"rattler_networking/native-tls",
"tools/native-tls",
]
rustls-tls = [
"reqwest/rustls-tls",
"reqwest/rustls-tls-native-roots",
"rattler_package_streaming/rustls-tls",
"rattler_networking/rustls-tls",
"tools/rustls-tls",
]

[[bin]]
name = "rattler-index"
path = "src/main.rs"

[dependencies]
anyhow = { workspace = true }
clap = { workspace = true, features = ["derive", "env"] }
clap-verbosity-flag = { workspace = true }
console = { workspace = true }
fs-err = { workspace = true }
rattler_conda_types = { path="../rattler_conda_types", version = "0.31.0", default-features = false }
rattler_digest = { path="../rattler_digest", version = "1.0.6", default-features = false }
rattler_package_streaming = { path="../rattler_package_streaming", version = "0.22.29", default-features = false }
fxhash = { workspace = true }
futures = { workspace = true }
indicatif = { workspace = true }
opendal = { workspace = true, features = [
"services-s3",
"services-fs",
], default-features = false }
rattler_networking = { path = "../rattler_networking", version = "0.22.4", default-features = false }
rattler_conda_types = { path = "../rattler_conda_types", version = "0.31.0" }
rattler_digest = { path = "../rattler_digest", version = "1.0.6", default-features = false }
rattler_package_streaming = { path = "../rattler_package_streaming", version = "0.22.29", default-features = false }
reqwest = { workspace = true, default-features = false, features = [
"http2",
"macos-system-configuration",
"charset",
] }
serde_json = { workspace = true }
tempfile = { workspace = true }
tokio = { workspace = true, features = ["full"] }
tracing = { workspace = true }
walkdir = { workspace = true }
tracing-subscriber = { workspace = true, features = ["env-filter", "fmt"] }
tracing-log = { workspace = true }
url = { workspace = true }

[dev-dependencies]
tempfile = { workspace = true }
tools = { path = "../tools" }
tools = { path = "../tools", default-features = false }
Loading

0 comments on commit e773499

Please sign in to comment.