Fix install with pip git+https

pip only uses the wheel target.

Save building the metadata twice as a result in GitHub workflows and
update documentation.md.
This commit is contained in:
Chris Mayo 2022-09-13 19:32:06 +01:00
parent b6a7f2d313
commit 38dea6b7f4
5 changed files with 8 additions and 8 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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