aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@fretlink.com>2021-08-16 22:27:12 +0200
committerIsmaël Bouya <ismael.bouya@fretlink.com>2021-08-17 02:14:46 +0200
commit7b4791cfb73136db35160989c08660db55c3c34e (patch)
treecf82e793ded811abc23e793734a3628a7f22cbcd /Makefile
parentb45837641542cf18e2410dcbaa7ecba1bdc3905d (diff)
downloadMusicSampler-7b4791cfb73136db35160989c08660db55c3c34e.tar.gz
MusicSampler-7b4791cfb73136db35160989c08660db55c3c34e.tar.zst
MusicSampler-7b4791cfb73136db35160989c08660db55c3c34e.zip
Upgrade to latest versions1.6.0
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile42
1 files changed, 42 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..cc5723b
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,42 @@
1install:
2 poetry install
3
4build:
5 msgfmt music_sampler/locales/fr/LC_MESSAGES/music_sampler.po -o music_sampler/locales/fr/LC_MESSAGES/music_sampler.mo
6
7run: install build
8 poetry run python run.py
9
10BUNDLER ?= shiv
11bundle: install build
12 $(MAKE) bundle-$(BUNDLER)
13
14bundle-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
20bundle-pyinstaller:
21 poetry run pyinstaller music_sampler.spec
22
23PACKAGER ?= poetry
24
25package: install build
26 git describe --exact-match --tags
27 $(MAKE) package-$(PACKAGER)
28
29package-setup:
30 poetry run python setup.py sdist
31
32package-poetry:
33 poetry version $(shell git describe --exact-match --tags)
34 poetry build
35
36publish: package publish-$(PACKAGER)
37
38publish-setup:
39 poetry run python setup.py upload
40
41publish-poetry:
42 poetry publish