diff --git a/vizro-ai/changelog.d/20240828_100707_maximilian_schulz_add_uv_as_installer.md b/vizro-ai/changelog.d/20240828_100707_maximilian_schulz_add_uv_as_installer.md new file mode 100644 index 000000000..f1f65e73c --- /dev/null +++ b/vizro-ai/changelog.d/20240828_100707_maximilian_schulz_add_uv_as_installer.md @@ -0,0 +1,48 @@ + + + + + + + + + diff --git a/vizro-ai/hatch.toml b/vizro-ai/hatch.toml index 74a419c41..1d731c8a3 100644 --- a/vizro-ai/hatch.toml +++ b/vizro-ai/hatch.toml @@ -4,12 +4,14 @@ python = ["3.9", "3.10", "3.11", "3.12"] [envs.changelog] -dependencies = ["scriv"] +dependencies = ["pip", "scriv"] detached = true +installer = "uv" scripts = {add = "scriv create --add", collect = ["scriv collect --add", "- hatch run lint:lint --files=CHANGELOG.md"]} [envs.default] dependencies = [ + "pip", "devtools[pygments]", "coverage[toml]>=6.5", "pytest", @@ -24,6 +26,7 @@ dependencies = [ "chromedriver-autoinstaller>=0.6.4", "urllib3<2.0.0" # helps to resolve bug with urllib3 timeout from vizro-ai integration tests: https://bugs.launchpad.net/python-jenkins/+bug/2018567 ] +installer = "uv" [envs.default.env-vars] VIZRO_AI_LOG_LEVEL = "DEBUG" @@ -51,6 +54,7 @@ test-unit-coverage = [ [envs.docs] dependencies = [ + "pip", "mkdocs>=1.6", "mkdocs-material", "mkdocs-git-revision-date-localized-plugin", @@ -58,6 +62,7 @@ dependencies = [ "linkchecker" ] detached = true +installer = "uv" [envs.docs.scripts] build = "mkdocs build --strict" @@ -69,9 +74,11 @@ serve = "mkdocs serve --open" [envs.lint] dependencies = [ + "pip", "pre-commit" ] detached = true +installer = "uv" scripts = {lint = "SKIP=gitleaks pre-commit run {args:--all-files}"} [envs.lower-bounds] diff --git a/vizro-core/changelog.d/20240828_094811_maximilian_schulz_add_uv_as_installer.md b/vizro-core/changelog.d/20240828_094811_maximilian_schulz_add_uv_as_installer.md new file mode 100644 index 000000000..f1f65e73c --- /dev/null +++ b/vizro-core/changelog.d/20240828_094811_maximilian_schulz_add_uv_as_installer.md @@ -0,0 +1,48 @@ + + + + + + + + + diff --git a/vizro-core/hatch.toml b/vizro-core/hatch.toml index 29838e8d0..a4d7050fb 100644 --- a/vizro-core/hatch.toml +++ b/vizro-core/hatch.toml @@ -11,12 +11,14 @@ matrix.python.features = [ ] [envs.changelog] -dependencies = ["scriv"] +dependencies = ["pip", "scriv"] detached = true +installer = "uv" scripts = {add = "scriv create --add", collect = ["scriv collect --add", "- hatch run lint:lint --files=CHANGELOG.md"]} [envs.default] dependencies = [ + "pip", "devtools[pygments]", "coverage[toml]>=6.5", "pytest", @@ -29,6 +31,7 @@ dependencies = [ "openpyxl", "jupyter" ] +installer = "uv" [envs.default.scripts] example = "hatch run examples:example {args:scratch_dev}" # shortcut script to underlying example environment script. @@ -60,6 +63,7 @@ test-unit-coverage = [ [envs.docs] dependencies = [ + "pip", "mkdocs>=1.6", "mkdocs-material", "mkdocs-git-revision-date-localized-plugin", @@ -68,6 +72,7 @@ dependencies = [ "mkdocs-pycafe" ] detached = true +installer = "uv" [envs.docs.scripts] build = "mkdocs build --strict" @@ -78,11 +83,13 @@ serve = "mkdocs serve --open" [envs.examples] dependencies = [ + "pip", "pyyaml", # black is required to run the example _visual-vocabulary. This is completely independent of the black used in linting # our code. When this moves to HuggingFace we can remove the requirement from here. "black==24.4.2" ] +installer = "uv" scripts = {example = "cd examples/{args:scratch_dev}; python app.py"} # This environment doesn't inherit from default but does install Vizro. template = "examples" @@ -93,9 +100,11 @@ VIZRO_LOG_LEVEL = "DEBUG" [envs.lint] dependencies = [ + "pip", "pre-commit" ] detached = true +installer = "uv" scripts = {lint = "SKIP=gitleaks pre-commit run {args:--all-files}"} [envs.lower-bounds]