]>
Commit | Line | Data |
---|---|---|
1 | install: | |
2 | poetry install | |
3 | ||
4 | build: | |
5 | msgfmt music_sampler/locales/fr/LC_MESSAGES/music_sampler.po -o music_sampler/locales/fr/LC_MESSAGES/music_sampler.mo | |
6 | ||
7 | run: install build | |
8 | poetry run python run.py | |
9 | ||
10 | BUNDLER ?= shiv | |
11 | bundle: install build | |
12 | $(MAKE) bundle-$(BUNDLER) | |
13 | ||
14 | bundle-shiv: | |
15 | if [ -f music_sampler.pyz ]; then rm music_sampler.pyz; fi | |
16 | git add -f music_sampler/locales/fr/LC_MESSAGES/music_sampler.mo | |
17 | poetry run shiv --output-file=music_sampler.pyz --site-packages=$(shell poetry env info -p)/lib/python3.9/site-packages --python="/usr/bin/env python3" --entry-point=music_sampler.app.main --no-deps ./. | |
18 | git restore --staged music_sampler/locales/fr/LC_MESSAGES/music_sampler.mo | |
19 | ||
20 | bundle-pyinstaller: | |
21 | poetry run pyinstaller music_sampler.spec | |
22 | ||
23 | PACKAGER ?= poetry | |
24 | ||
25 | package: install build | |
26 | git describe --exact-match --tags | |
27 | $(MAKE) package-$(PACKAGER) | |
28 | ||
29 | package-setup: | |
30 | poetry run python setup.py sdist | |
31 | ||
32 | package-poetry: | |
33 | poetry version $(shell git describe --exact-match --tags) | |
34 | poetry build | |
35 | ||
36 | publish: package publish-$(PACKAGER) | |
37 | ||
38 | publish-setup: | |
39 | poetry run python setup.py upload | |
40 | ||
41 | publish-poetry: | |
42 | poetry publish | |
43 | ||
44 | dump-readme: | |
45 | ssh gitolite@git.immae.eu readme perso/Immae/Projets/Python/MusicSampler | |
46 | ||
47 | update-readme: | |
48 | poetry run python build_readme.py | ssh gitolite@git.immae.eu readme perso/Immae/Projets/Python/MusicSampler set |