diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ca356c5e1..aa2eff62e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -22,7 +22,7 @@ jobs: - name: Install uv uses: astral-sh/setup-uv@v3 with: - version: "0.4.12" + version: "0.4.30" enable-cache: true - name: Set up Python 3.12 @@ -42,13 +42,13 @@ jobs: - name: Install uv uses: astral-sh/setup-uv@v3 with: - version: "0.4.12" + version: "0.4.30" enable-cache: true - name: Set up Python 3.12 run: uv python install 3.12 - - run: uv sync --python 3.12 --frozen + - run: uv sync --python 3.12 --frozen --group docs - run: uv pip install --upgrade mkdocs-material mkdocstrings-python griffe==0.48.0 env: UV_EXTRA_INDEX_URL: ${{ secrets.UV_EXTRA_INDEX_URL }} @@ -97,13 +97,13 @@ jobs: - name: Install uv uses: astral-sh/setup-uv@v3 with: - version: "0.4.12" + version: "0.4.30" enable-cache: true - name: Set up Python ${{ matrix.python-version }} run: uv python install ${{ matrix.python-version }} - - run: uv sync --python ${{ matrix.python-version }} --upgrade + - run: uv sync --python ${{ matrix.python-version }} - name: Install pydantic ${{ matrix.pydantic-version }} if: matrix.pydantic-version != 'main' @@ -130,7 +130,7 @@ jobs: - name: Install uv uses: astral-sh/setup-uv@v3 with: - version: "0.4.12" + version: "0.4.30" enable-cache: true - name: Set up Python 3.12 @@ -181,7 +181,7 @@ jobs: - name: Install uv uses: astral-sh/setup-uv@v3 with: - version: "0.4.12" + version: "0.4.30" enable-cache: true - name: Set up Python 3.12 diff --git a/Makefile b/Makefile index 12c340f52..2d8557dce 100644 --- a/Makefile +++ b/Makefile @@ -60,8 +60,8 @@ all: format lint test .PHONY: cf-pages-build # Build the docs for GitHub Pages cf-pages-build: - curl -LsSf https://astral.sh/uv/0.4.12/install.sh | sh + curl -LsSf https://astral.sh/uv/0.4.30/install.sh | sh ${HOME}/.cargo/bin/uv python install 3.12 - ${HOME}/.cargo/bin/uv sync --python 3.12 --frozen + ${HOME}/.cargo/bin/uv sync --python 3.12 --frozen --group docs ${HOME}/.cargo/bin/uv pip install --upgrade --extra-index-url $(PPPR_URL) mkdocs-material mkdocstrings-python griffe==0.48.0 ${HOME}/.cargo/bin/uv run --no-sync mkdocs build diff --git a/pyproject.toml b/pyproject.toml index 5712e3bfb..5b23c8c94 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -80,9 +80,8 @@ logfire-plugin = "logfire.integrations.pydantic:plugin" [project.entry-points."pytest11"] logfire = "logfire.testing" -[tool.uv] -managed = true -dev-dependencies = [ +[dependency-groups] +dev = [ "anyio < 4.4.0", "httpx >= 0.27.2", "aiohttp >= 3.10.9", @@ -148,16 +147,17 @@ dev-dependencies = [ "numpy<1.24.4; python_version < '3.9'", "pytest-recording>=0.13.2", "uvicorn>=0.30.6", - # Documentation + # Logfire API + "logfire-api", + "requests", +] +docs = [ "mkdocs>=1.5.0", "mkdocs-material>=9.5.17", - "mkdocs-glightbox>=0.3.7", + "mkdocs-glightbox>=0.4.0", "mkdocstrings-python>=1.8.0", "mkdocs-redirects>=1.2.1", "griffe", - # Logfire API - "logfire-api", - "requests", ] [tool.uv.sources] diff --git a/uv.lock b/uv.lock index 25149349b..ac8d0259f 100644 --- a/uv.lock +++ b/uv.lock @@ -1490,16 +1490,10 @@ dev = [ { name = "eval-type-backport" }, { name = "fastapi" }, { name = "flask" }, - { name = "griffe" }, { name = "httpx" }, { name = "inline-snapshot" }, { name = "logfire-api" }, { name = "loguru" }, - { name = "mkdocs" }, - { name = "mkdocs-glightbox" }, - { name = "mkdocs-material" }, - { name = "mkdocs-redirects" }, - { name = "mkdocstrings-python" }, { name = "mypy" }, { name = "mysql-connector-python" }, { name = "numpy", version = "1.24.3", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.9'" }, @@ -1548,6 +1542,14 @@ dev = [ { name = "testcontainers", version = "4.8.2", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.9'" }, { name = "uvicorn" }, ] +docs = [ + { name = "griffe" }, + { name = "mkdocs" }, + { name = "mkdocs-glightbox" }, + { name = "mkdocs-material" }, + { name = "mkdocs-redirects" }, + { name = "mkdocstrings-python" }, +] [package.metadata] requires-dist = [ @@ -1597,16 +1599,10 @@ dev = [ { name = "eval-type-backport" }, { name = "fastapi", specifier = ">=0.115.0" }, { name = "flask", specifier = ">=3.0.3" }, - { name = "griffe" }, { name = "httpx", specifier = ">=0.27.2" }, { name = "inline-snapshot" }, { name = "logfire-api", editable = "logfire-api" }, { name = "loguru" }, - { name = "mkdocs", specifier = ">=1.5.0" }, - { name = "mkdocs-glightbox", specifier = ">=0.3.7" }, - { name = "mkdocs-material", specifier = ">=9.5.17" }, - { name = "mkdocs-redirects", specifier = ">=1.2.1" }, - { name = "mkdocstrings-python", specifier = ">=1.8.0" }, { name = "mypy", specifier = ">=1.10.0" }, { name = "mysql-connector-python", specifier = "~=8.0" }, { name = "numpy", marker = "python_full_version < '3.9'", specifier = "<1.24.4" }, @@ -1655,12 +1651,25 @@ dev = [ { name = "testcontainers", marker = "python_full_version >= '3.9'", specifier = ">3.7.1" }, { name = "uvicorn", specifier = ">=0.30.6" }, ] +docs = [ + { name = "griffe" }, + { name = "mkdocs", specifier = ">=1.5.0" }, + { name = "mkdocs-glightbox", specifier = ">=0.4.0" }, + { name = "mkdocs-material", specifier = ">=9.5.17" }, + { name = "mkdocs-redirects", specifier = ">=1.2.1" }, + { name = "mkdocstrings-python", specifier = ">=1.8.0" }, +] [[package]] name = "logfire-api" version = "2.1.2" source = { editable = "logfire-api" } +[package.metadata] + +[package.metadata.requires-dev] +dev = [] + [[package]] name = "loguru" version = "0.7.2"