Skip to content

Commit

Permalink
feat: allow specifying whether you want sdists or not (prefix-dev#81)
Browse files Browse the repository at this point in the history
This adds the option to specify whether you want to use sdists, prefer
them or only use sdists.
  • Loading branch information
baszalmstra authored Nov 17, 2023
1 parent 65c7ac5 commit 66cd42a
Show file tree
Hide file tree
Showing 6 changed files with 484 additions and 70 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/rust-compile.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
on:
push:
branches: ["main"]
branches: [ "main" ]
pull_request:

name: Rust
Expand Down Expand Up @@ -103,8 +103,8 @@ jobs:
- name: Build
run: >
cargo build
--all-targets
cargo build
--all-targets
${{ steps.build-options.outputs.CARGO_BUILD_OPTIONS}}
- name: Disable testing the tools crate if cross compiling
Expand All @@ -116,9 +116,10 @@ jobs:
- name: Run tests
if: ${{ !matrix.skip-tests }}
run: >
cargo test
--workspace
${{ steps.build-options.outputs.CARGO_BUILD_OPTIONS}}
${{ steps.test-options.outputs.CARGO_TEST_OPTIONS}}
--
cargo test
--workspace
${{ steps.build-options.outputs.CARGO_BUILD_OPTIONS}}
${{ steps.test-options.outputs.CARGO_TEST_OPTIONS}}
--features resolvo
--
--nocapture
2 changes: 1 addition & 1 deletion crates/rattler_installs_packages/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ mod sdist;
mod system_python;

#[cfg(feature = "resolvo")]
pub use resolve::{resolve, PinnedPackage};
pub use resolve::{resolve, PinnedPackage, ResolveOptions, SDistResolution};

pub use file_store::{CacheKey, FileStore};
pub use package_database::PackageDb;
Expand Down
Loading

0 comments on commit 66cd42a

Please sign in to comment.