diff --git a/.github/workflows/branch-man.yml b/.github/workflows/branch-man.yml index c7e3df4b..c154d36c 100644 --- a/.github/workflows/branch-man.yml +++ b/.github/workflows/branch-man.yml @@ -38,7 +38,7 @@ jobs: - name: Build man pages run: | - python3 -m hatchling build --hooks-only + python3 -m hatchling build -t sdist --hooks-only make -C doc locale git commit -a -m "Update doc translation catalogs" make -C doc man diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ab84869b..39dc7aeb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -67,7 +67,7 @@ jobs: - name: Run tests run: | - python -m hatchling build --hooks-only + python -m hatchling build -t sdist --hooks-only python -m tox -e py - name: Report to coveralls @@ -109,7 +109,7 @@ jobs: - name: Build run: | - python3 -m hatchling build --hooks-only + python3 -m hatchling build -t sdist --hooks-only make -C doc code make -C doc html make -C doc locale diff --git a/.github/workflows/publish-pages.yml b/.github/workflows/publish-pages.yml index 61191435..0ed6d2c8 100644 --- a/.github/workflows/publish-pages.yml +++ b/.github/workflows/publish-pages.yml @@ -35,7 +35,7 @@ jobs: - name: Build run: | - python3 -m hatchling build --hooks-only + python3 -m hatchling build -t sdist --hooks-only make -C doc code make -C doc html diff --git a/doc/documentation.md b/doc/documentation.md index 0050d32b..d21ec788 100644 --- a/doc/documentation.md +++ b/doc/documentation.md @@ -22,7 +22,7 @@ Configuration Before building either man pages or HTML, generate ``linkcheck/_release.py`` containing copyright, author and version with: -``hatchling build --hooks-only`` +``hatchling build -t sdist --hooks-only`` Man Pages diff --git a/pyproject.toml b/pyproject.toml index 781a07ef..1ab34d73 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -51,12 +51,12 @@ exclude = [ ".gitattributes", ] +[tool.hatch.build.hooks.custom] +path = "tools/hatch_build.py" + [tool.hatch.build.targets.sdist] strict-naming = false -[tool.hatch.build.targets.sdist.hooks.custom] -path = "tools/hatch_build.py" - [tool.hatch.build.targets.wheel] only-include = ["linkcheck"] strict-naming = false