This repository has been archived by the owner on Dec 18, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Automatic generation of the version - Automatic completion of the about dialog Signed-off-by: Jerome Flesch <[email protected]>
- Loading branch information
Showing
14 changed files
with
334 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ repo/ | |
*.flatpak | ||
venv*/ | ||
*.pyo | ||
_version.py | ||
|
||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Code contributors is automatically completed by the Makefile | ||
|
||
authors_ui = """ | ||
Mathieu Jourdan <[email protected]> | ||
""" | ||
|
||
authors_translators = """ | ||
French: Jerome Flesch <[email protected]> | ||
German: Tristan Kohl (Mirodin) <[email protected]> | ||
Ukrainian: Daniel Korostil <[email protected]> | ||
""" | ||
|
||
authors_documentation = """ | ||
Alain <[email protected]> | ||
arthurlutz <[email protected]> | ||
Christophe Delaere <[email protected]> | ||
Christophe GERARDIN (RTDaemons) <[email protected]> | ||
Daniel Hahler <[email protected]> | ||
Davidbrcz <[email protected]> | ||
Jehan <[email protected]> | ||
lb1a <[email protected]> | ||
Ludo <[email protected]> | ||
Samuel Dorsaz <[email protected]> | ||
Santiago Castro <[email protected]> | ||
swap38 <[email protected]> | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
VERSION_FILE = paperwork_backend/_version.py | ||
|
||
build: build_c build_py | ||
|
||
install: install_py install_c | ||
|
||
uninstall: uninstall_py | ||
|
||
build_py: ${VERSION_FILE} | ||
python3 ./setup.py build | ||
|
||
build_c: | ||
|
||
version: ${VERSION_FILE} | ||
|
||
${VERSION_FILE}: | ||
echo -n "version = \"" >| $@ | ||
echo -n $(shell git describe --always) >> $@ | ||
echo "\"" >> $@ | ||
|
||
doc: | ||
|
||
check: | ||
flake8 paperwork_backend | ||
|
||
test: | ||
|
||
exe: | ||
|
||
release: | ||
ifeq (${RELEASE}, ) | ||
@echo "You must specify a release version (make release RELEASE=1.2.3)" | ||
else | ||
@echo "Will release: ${RELEASE}" | ||
@echo "Checking release is in ChangeLog ..." | ||
grep ${RELEASE} ChangeLog | ||
@echo "Releasing ..." | ||
git tag -a ${RELEASE} -m ${RELEASE} | ||
git push origin ${RELEASE} | ||
make clean | ||
make version | ||
python3 ./setup.py sdist upload | ||
@echo "All done" | ||
endif | ||
|
||
clean: | ||
rm -f ${VERSION_FILE} | ||
rm -rf build dist *.egg-info | ||
|
||
install_py: ${VERSION_FILE} | ||
python3 ./setup.py install | ||
paperwork-shell chkdeps paperwork_backend | ||
|
||
install_c: | ||
|
||
uninstall_py: | ||
pip3 uninstall -y paperwork-backend | ||
|
||
uninstall_c: | ||
|
||
help: | ||
@echo "make build || make build_py" | ||
@echo "make check" | ||
@echo "make help: display this message" | ||
@echo "make install || make install_py" | ||
@echo "make uninstall || make uninstall_py" | ||
@echo "make release" | ||
|
||
.PHONY: \ | ||
build \ | ||
build_c \ | ||
build_py \ | ||
check \ | ||
doc \ | ||
exe \ | ||
help \ | ||
install \ | ||
install_c \ | ||
install_py \ | ||
release \ | ||
test \ | ||
uninstall \ | ||
uninstall_c \ | ||
version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.