ci: Set up asciidoc properly for releases
This commit is contained in:
parent
13ddb50170
commit
ab820fe8a0
|
|
@ -139,11 +139,12 @@ jobs:
|
|||
# - qutebrowser/browser/webengine/spell.py
|
||||
# - utils.message -> utils.usertypes -> utils.qtutils -> qt.gui
|
||||
# - PyQt6.QtGui
|
||||
# Some additional packages are needed for a2x to build manpage
|
||||
- name: Install apt dependencies
|
||||
if: ${{ startsWith(matrix.os, 'ubuntu-') }}
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install --no-install-recommends libegl1-mesa
|
||||
sudo apt-get install --no-install-recommends libegl1-mesa libxml2-utils docbook-xml xsltproc docbook-xsl
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install -U pip
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ ICONSIZES = 16 24 32 48 64 128 256 512
|
|||
DATAROOTDIR = $(PREFIX)/share
|
||||
DATADIR ?= $(DATAROOTDIR)
|
||||
MANDIR ?= $(DATAROOTDIR)/man
|
||||
A2X ?= a2x
|
||||
|
||||
ifdef DESTDIR
|
||||
SETUPTOOLSOPTS = --root="$(DESTDIR)"
|
||||
|
|
@ -14,7 +15,7 @@ all: man
|
|||
|
||||
man: doc/qutebrowser.1
|
||||
doc/qutebrowser.1: doc/qutebrowser.1.asciidoc
|
||||
a2x -f manpage $<
|
||||
$(A2X) -f manpage $<
|
||||
|
||||
install: man
|
||||
$(PYTHON) setup.py install --prefix="$(PREFIX)" --optimize=1 $(SETUPTOOLSOPTS)
|
||||
|
|
|
|||
|
|
@ -518,9 +518,17 @@ def build_sdist() -> List[Artifact]:
|
|||
def test_makefile() -> None:
|
||||
"""Make sure the Makefile works correctly."""
|
||||
utils.print_title("Testing makefile")
|
||||
a2x_path = pathlib.Path(sys.executable).parent / 'a2x'
|
||||
assert a2x_path.exists(), a2x_path
|
||||
with tempfile.TemporaryDirectory() as tmpdir:
|
||||
subprocess.run(['make', '-f', 'misc/Makefile',
|
||||
f'DESTDIR={tmpdir}', 'install'], check=True)
|
||||
subprocess.run(
|
||||
[
|
||||
'make', '-f', 'misc/Makefile',
|
||||
f'DESTDIR={tmpdir}', f'A2X={a2x_path}',
|
||||
'install'
|
||||
],
|
||||
check=True,
|
||||
)
|
||||
|
||||
|
||||
def read_github_token(
|
||||
|
|
|
|||
Loading…
Reference in New Issue