Skip to content

Commit 83d1687

Browse files
committed
Build manpages on pr label
1 parent f51e471 commit 83d1687

File tree

8 files changed

+65
-40
lines changed

8 files changed

+65
-40
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Build new manpages on every release. To avoid too complicated workflows, we
2+
# will generate the manpages when we add the label "manpages" in our pull request,
3+
# indicating that this pull request will be one that will be released.
4+
5+
name: "Build manpages"
6+
7+
on:
8+
push:
9+
tags: ["*"]
10+
11+
permissions:
12+
contents: write
13+
14+
jobs:
15+
build:
16+
name: Build manpage
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- uses: actions/setup-python@v5
22+
23+
- name: Install dependencies
24+
run: |
25+
# TODO(r0x0d): Refactor this https://issues.redhat.com/browse/RSPEED-339
26+
sudo apt update -y
27+
sudo apt install libgirepository1.0-dev gcc libcairo2-dev pkg-config python3-dev gir1.2-gtk-4.0 -y
28+
make install
29+
30+
- name: Generate manpages
31+
run: |
32+
echo "$(poetry env info -p)/bin" >> $GITHUB_PATH
33+
SPHINXBUILD=$(poetry env info -p)/bin/sphinx-build make man
34+
35+
- name: Commit & push
36+
run: |
37+
git config user.name "Rodolfo Olivieri"
38+
git config user.email "rolivier@redhat.com"
39+
git add data/release/man && git commit -m "New generated manpages"
40+
git push --tags

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ SYSTEMD_USER_UNITS := ~/.config/systemd/user
2929
# Path to local XDG_CONFIG_DIRS to load config file
3030
XDG_CONFIG_DIRS := $(subst /,\/,$(DATA_DEVELOPMENT_PATH)/config)
3131

32+
PKGNAME := command-line-assistant
33+
VERSION := 0.2.2
34+
3235
default: help
3336

3437
install-tools: ## Install required utilities/tools

docs/source/config/schemas/index.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,4 @@ Schemas
77
backend
88
history
99
logging
10-
output
1110
database

docs/source/config/schemas/output.rst

Lines changed: 0 additions & 8 deletions
This file was deleted.

docs/source/handlers.rst

Lines changed: 0 additions & 8 deletions
This file was deleted.

docs/source/index.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ Welcome to Command Line Assistant documentation
1919
terminal/index
2020
utils/index
2121
constants
22-
handlers
2322
initialize
2423
logger
2524
meta

poetry.lock

Lines changed: 16 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ dependencies = [
1414
'tomli; python_version<"3.11"',
1515
"requests",
1616
"dasbus",
17-
"sqlalchemy>=2.0.37",
17+
"sqlalchemy==2.0.37",
1818
]
1919
requires-python = ">=3.9,<4.0" # RHEL 9 and 10
2020
readme = "README.md"
@@ -29,21 +29,21 @@ requires = ["setuptools", "wheel"]
2929
build-backend = "setuptools.build_meta"
3030

3131
[project.optional-dependencies]
32-
db = ["psycopg2>=2.9.10", "mysqlclient>=2.2.7"]
32+
db = ["psycopg2==2.9.10", "mysqlclient==2.2.7"]
3333
tests = [
3434
"pytest==8.3.4",
3535
"pytest-cov==6.0.0",
3636
"pytest-randomly==3.16.0",
3737
"coverage==7.6.10",
3838
"pytest-sugar==1.0.0",
3939
"pytest-clarity==1.0.1",
40-
"tox>=4.23.2",
41-
"responses>=0.25.3",
40+
"tox==4.23.2",
41+
"responses==0.25.3",
4242
]
4343
dev = [
44-
"PyGObject>=3.50.0",
44+
"PyGObject==3.50.0",
4545
# added here mainly for editor happines
46-
"ruff>=0.9.4"
46+
"ruff==0.9.4"
4747
]
4848

4949
# ----- Tooling specifics

0 commit comments

Comments
 (0)