From 8829dfe3d1adbc596f062505f1207651e11ea16a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Mazzucotelli?= Date: Mon, 7 Mar 2022 17:12:03 +0100 Subject: [PATCH] fix: Fix packaging (missing `__init__` module) Issue #17: https://github.com/mkdocstrings/autorefs/issues/17 Issue mkdocstrings/mkdocstrings#398: https://github.com/mkdocstrings/mkdocstrings/issues/398 --- .github/workflows/ci.yml | 2 +- pyproject.toml | 1 + src/mkdocs_autorefs/__init__.py | 4 ++++ 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 src/mkdocs_autorefs/__init__.py diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fbead94..4240832 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -103,7 +103,7 @@ jobs: key: tests-cache-${{ runner.os }}-${{ matrix.python-version }} - name: Install dependencies - run: pdm install -G duty -G tests + run: pdm install --no-editable -G duty -G tests - name: Run the test suite run: pdm run duty test diff --git a/pyproject.toml b/pyproject.toml index 912f3d0..2565ba7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,6 +52,7 @@ autorefs = "mkdocs_autorefs.plugin:AutorefsPlugin" [tool.pdm] version = {use_scm = true} package-dir = "src" +editable-backend = "editables" [tool.pdm.dev-dependencies] duty = ["duty>=0.7"] diff --git a/src/mkdocs_autorefs/__init__.py b/src/mkdocs_autorefs/__init__.py new file mode 100644 index 0000000..9b951fd --- /dev/null +++ b/src/mkdocs_autorefs/__init__.py @@ -0,0 +1,4 @@ +"""mkdocs-autorefs package. + +Automatically link across pages in MkDocs. +"""