diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2016-07-28 00:43:58 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2016-07-28 00:56:05 +0200 |
commit | e257f4d9e3b8647c3470a1450ccdcea33583419c (patch) | |
tree | 46ec947935c1660c96d3233191a2100ec8c7bef0 /music_sampler.spec | |
parent | f13bbb9bddf95a9beb87e15ceb1543f79a0134a2 (diff) | |
download | MusicSampler-e257f4d9e3b8647c3470a1450ccdcea33583419c.tar.gz MusicSampler-e257f4d9e3b8647c3470a1450ccdcea33583419c.tar.zst MusicSampler-e257f4d9e3b8647c3470a1450ccdcea33583419c.zip |
Use setuptools_scm to determinate project version
Diffstat (limited to 'music_sampler.spec')
-rw-r--r-- | music_sampler.spec | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/music_sampler.spec b/music_sampler.spec index 791cd68..5549b76 100644 --- a/music_sampler.spec +++ b/music_sampler.spec | |||
@@ -1,5 +1,6 @@ | |||
1 | # -*- mode: python -*- | 1 | # -*- mode: python -*- |
2 | import os | 2 | import os |
3 | import setuptools_scm | ||
3 | from kivy.tools.packaging.pyinstaller_hooks import get_deps_minimal,\ | 4 | from kivy.tools.packaging.pyinstaller_hooks import get_deps_minimal,\ |
4 | hookspath, runtime_hooks | 5 | hookspath, runtime_hooks |
5 | 6 | ||
@@ -22,7 +23,7 @@ excluded_and_hidden_modules['hiddenimports'] += [ | |||
22 | 'packaging.specifiers', | 23 | 'packaging.specifiers', |
23 | 'packaging.requirements' ] | 24 | 'packaging.requirements' ] |
24 | 25 | ||
25 | commit_message = os.popen('git log -1 --format="%h %ci"').read() | 26 | commit_message = setuptools_scm.get_version() |
26 | pyinstaller_file = open(".pyinstaller_commit", "w") | 27 | pyinstaller_file = open(".pyinstaller_commit", "w") |
27 | pyinstaller_file.write(commit_message) | 28 | pyinstaller_file.write(commit_message) |
28 | pyinstaller_file.close() | 29 | pyinstaller_file.close() |