mricon / b4

Tool to help with email-based patch workflows
GNU General Public License v2.0
56 stars 18 forks source link

version 0.14.0 does not build the manpage #37

Open christian-heusel opened 1 month ago

christian-heusel commented 1 month ago

Hello everyone 👋🏻

With version 0.13.0 The manpage was automatically built and installed as part of the wheel:

$ pacman -Qlp /home/custompkgs/b4-0.13.0-1-any.pkg.tar.zst | grep "/man"
b4 /usr/share/man/
b4 /usr/share/man/man5/
b4 /usr/share/man/man5/b4.5.gz

While with version 0.14.0 this is not the case anymore:

$ pacman -Qlp /home/custompkgs/b4-0.14.0-1-any.pkg.tar.zst | grep "/man"
b4 /usr/lib/python3.12/site-packages/b4/man/
b4 /usr/lib/python3.12/site-packages/b4/man/b4.5.rst

We're just doing a PEP517 based install (see this link for the full build instructions):

build() {
    cd "$pkgname-$pkgver"
    python -m build --wheel --no-isolation
}

package() {
    cd "$pkgname-$pkgver"
    python -m installer --destdir="$pkgdir" dist/*.whl
}
christian-heusel commented 1 month ago

3cfb91a071cd3b029d9ebc4e92383236c4c9cee0 looks related 🤔

mricon commented 1 month ago

There isn't really a straightforward mechanism to "build" manpages with pyproject.toml. I'm happy if someone can show me the best approach.