-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: refactor pixi::consts and pixi::config into separate crates (…
…#1684) Refactors these types into their seperate crates. --------- Co-authored-by: Bas Zalmstra <[email protected]>
- Loading branch information
1 parent
da88f41
commit 5295190
Showing
62 changed files
with
367 additions
and
207 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
[package] | ||
authors.workspace = true | ||
description = "Contains the global configuration for use in a pixi project" | ||
edition.workspace = true | ||
homepage.workspace = true | ||
license.workspace = true | ||
name = "pixi_config" | ||
readme.workspace = true | ||
repository.workspace = true | ||
version = "0.1.0" | ||
|
||
[dependencies] | ||
clap = { workspace = true, features = ["std", "derive", "env"] } | ||
console = { workspace = true } | ||
dirs = { workspace = true } | ||
itertools = { workspace = true } | ||
miette = { workspace = true } | ||
pixi_consts = { workspace = true } | ||
rattler = { workspace = true } | ||
rattler_conda_types = { workspace = true } | ||
serde = { workspace = true } | ||
serde_ignored = { workspace = true } | ||
serde_json = { workspace = true } | ||
toml_edit = { workspace = true, features = ["serde"] } | ||
tracing = { workspace = true } | ||
url = { workspace = true } | ||
|
||
[dev-dependencies] | ||
insta = { workspace = true, features = ["yaml"] } | ||
rstest = { workspace = true } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ts/pixi__config__tests__config_merge.snap → ...ots/pixi_config__tests__config_merge.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
source: src/config.rs | ||
source: crates/pixi_config/src/lib.rs | ||
expression: debug | ||
--- | ||
Config { | ||
|
2 changes: 1 addition & 1 deletion
2
...__config__tests__version_constraints.snap → ...i_config__tests__version_constraints.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
source: src/config.rs | ||
source: crates/pixi_config/src/lib.rs | ||
expression: results | ||
--- | ||
### Strategy: 'Semver' | ||
|
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[package] | ||
authors.workspace = true | ||
edition.workspace = true | ||
homepage.workspace = true | ||
license.workspace = true | ||
name = "pixi_consts" | ||
readme.workspace = true | ||
repository.workspace = true | ||
version = "0.1.0" | ||
|
||
|
||
[dependencies] | ||
console = { workspace = true } | ||
lazy_static = { workspace = true } | ||
pixi_manifest = { workspace = true } | ||
url = { workspace = true } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pub mod consts; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
use url::Url; | ||
|
||
pub const PYPI_DEPENDENCIES: &str = "pypi-dependencies"; | ||
pub const DEFAULT_ENVIRONMENT_NAME: &str = "default"; | ||
pub const PROJECT_MANIFEST: &str = "pixi.toml"; | ||
pub const PYPROJECT_MANIFEST: &str = "pyproject.toml"; | ||
pub const DEFAULT_FEATURE_NAME: &str = DEFAULT_ENVIRONMENT_NAME; | ||
pub const PYPROJECT_PIXI_PREFIX: &str = "tool.pixi"; | ||
|
||
pub const DEFAULT_PYPI_INDEX_URL: &str = "https://pypi.org/simple"; | ||
lazy_static::lazy_static! { | ||
pub static ref DEFAULT_PYPI_INDEX_URL: Url = Url::parse("https://pypi.org/simple").unwrap(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 0 additions & 5 deletions
5
...ixi__project__manifest__pypi__pypi_options__tests__error_on_multiple_primary_indexes.snap
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
...ypi/snapshots/pixi__project__manifest__pypi__pypi_options__tests__merge_pypi_options.snap
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
...c/pypi/snapshots/pixi__project__manifest__pypi__pypi_requirement__tests__from_args-2.snap
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
...src/pypi/snapshots/pixi__project__manifest__pypi__pypi_requirement__tests__from_args.snap
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.