-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
40 lines (27 loc) · 1.02 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
SOURCE_DIR=src
REQUIREMENTS_TXT=requirements.txt
install-dev-requirements:
pipenv sync --dev --verbose
generate-python-gtk-symbols: install-dev-requirements
pipenv run gengir --gtk 4
setup-dev-environment: install-dev-requirements generate-python-gtk-symbols
dev-shell:
pipenv shell
generate-pot-file:
meson setup build
ninja -C build monitorets-pot
test:
pipenv run pytest
check-linting:
pipenv run black --check $(SOURCE_DIR)
linting:
pipenv run black $(SOURCE_DIR)
_generate-requirements-txt:
pipenv requirements > $(REQUIREMENTS_TXT)
_delete-requirements-txt:
rm $(REQUIREMENTS_TXT)
_generate-dependencies-json-file:
python ./build_helper/flatpak-pip-generator.py --requirements-file=$(REQUIREMENTS_TXT) --output pypi-dependencies
update-dependencies-manifest: _generate-requirements-txt _generate-dependencies-json-file _delete-requirements-txt
validate-app-data:
flatpak run --env=G_DEBUG=fatal-criticals --command=appstream-util org.flatpak.Builder validate data/io.github.jorchube.monitorets.appdata.xml.in