Skip to content

Commit

Permalink
Add huak-pyproject-toml
Browse files Browse the repository at this point in the history
  • Loading branch information
cnpryer committed Nov 19, 2023
1 parent 0fa05cb commit 35107a6
Show file tree
Hide file tree
Showing 23 changed files with 1,117 additions and 481 deletions.
12 changes: 12 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions crates/huak-package-manager/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ huak-toolchain = { path = "../huak-toolchain" }
hex.workspace = true
sha2.workspace = true
huak-workspace = { path = "../huak-workspace" }
huak-pyproject-toml = { path = "../huak-pyproject-toml" }

[dev-dependencies]
huak-dev = { path = "../huak-dev" }
Expand Down
2 changes: 2 additions & 0 deletions crates/huak-package-manager/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ pub enum Error {
#[error("a project already exists")]
ProjectFound,
#[error("{0}")]
PyProjectTomlError(#[from] huak_pyproject_toml::Error),
#[error("{0}")]
PythonManagerError(#[from] huak_python_manager::Error),
#[error("a python module could not be found: {0}")]
PythonModuleNotFound(String),
Expand Down
2 changes: 1 addition & 1 deletion crates/huak-package-manager/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ pub use fs::{copy_dir, last_path_component, CopyDirOptions};
pub use git::{default_python_gitignore, init as git_init};
pub use metadata::{
default_package_entrypoint_string, default_package_test_file_contents,
default_pyproject_toml_contents, LocalMetadata, PyProjectToml,
default_pyproject_toml_contents, LocalMetadata,
};
pub use package::{importable_package_name, Package};
pub use python_environment::{
Expand Down
Loading

0 comments on commit 35107a6

Please sign in to comment.