Skip to content

Commit c40d2f2

Browse files
New uv version
1 parent d766a8d commit c40d2f2

File tree

4 files changed

+3844
-628
lines changed

4 files changed

+3844
-628
lines changed

Makefile

Lines changed: 3 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,17 @@
11
# === USER PARAMETERS
22

33
ifdef OS
4-
export PYTHON_COMMAND=python
5-
export UV_INSTALL_CMD=powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
64
export VENV_BIN=.venv/Scripts
75
else
8-
export PYTHON_COMMAND=python3.12
9-
export UV_INSTALL_CMD=curl -LsSf https://astral.sh/uv/install.sh | sh
106
export VENV_BIN=.venv/bin
117
endif
128

13-
export SRC_DIR=ml3_platform_docs
14-
15-
DEPLOY_ENVIRONMENT=$(shell if [ $(findstring main, $(BRANCH_NAME)) ]; then \
16-
echo 'prod'; \
17-
elif [ $(findstring pre, $(BRANCH_NAME)) ]; then \
18-
echo 'pre'; \
19-
else \
20-
echo 'dev'; \
21-
fi)
22-
# If use deploy_environment in the tag system
23-
# `y` => yes
24-
# `n` => no
25-
USE_DEPLOY_ENVIRONMENT=n
26-
279
# == SETUP REPOSITORY AND DEPENDENCIES
2810

29-
install-uv:
30-
# install uv package manager
31-
$(UV_INSTALL_CMD)
32-
# create environment
33-
uv venv -p $(PYTHON_COMMAND)
34-
35-
compile:
36-
# install extra dev group
37-
uv pip compile pyproject.toml -o requirements.txt --extra dev --cache-dir .uv_cache
38-
39-
install:
40-
uv pip sync requirements.txt --cache-dir .uv_cache
11+
dev-sync:
12+
uv sync --cache-dir .uv_cache --all-extras
4113

42-
setup: install-uv compile install
14+
setup: dev-sync
4315

4416
build-docs:
4517
. $(VENV_BIN)/activate && mkdocs build

pyproject.toml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
[build-system]
2-
requires = ["setuptools >= 61.0"]
3-
build-backend = "setuptools.build_meta"
4-
51
[project]
62
name = "ml3-platform-docs"
73
version = "0.0.1"
@@ -23,7 +19,7 @@ dependencies = [
2319
"pandas",
2420
]
2521

26-
[project.optional-dependencies]
22+
[dependency-groups]
2723
dev = [
2824
"ml3-platform-sdk==0.0.22",
2925
"polars>=0.19.3",

0 commit comments

Comments
 (0)