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 | |
parent | f13bbb9bddf95a9beb87e15ceb1543f79a0134a2 (diff) | |
download | MusicSampler-e257f4d9e3b8647c3470a1450ccdcea33583419c.tar.gz MusicSampler-e257f4d9e3b8647c3470a1450ccdcea33583419c.tar.zst MusicSampler-e257f4d9e3b8647c3470a1450ccdcea33583419c.zip |
Use setuptools_scm to determinate project version
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | documentation_fr.md | 2 | ||||
-rw-r--r-- | music_sampler.spec | 3 |
3 files changed, 4 insertions, 2 deletions
@@ -3,3 +3,4 @@ dist/ | |||
3 | music_sampler/__pycache__/ | 3 | music_sampler/__pycache__/ |
4 | __pycache__/ | 4 | __pycache__/ |
5 | .pyinstaller_commit | 5 | .pyinstaller_commit |
6 | music_sampler.egg-info/ | ||
diff --git a/documentation_fr.md b/documentation_fr.md index 377b69c..ccfcf9b 100644 --- a/documentation_fr.md +++ b/documentation_fr.md | |||
@@ -23,7 +23,7 @@ Si vous utilisez la version compilée de Music Sampler (cf. plus bas pour un lie | |||
23 | | Kivy | 1.9.1 | | | 23 | | Kivy | 1.9.1 | | |
24 | | Markdown | 2.6.6 | pour la documentation uniquement | | 24 | | Markdown | 2.6.6 | pour la documentation uniquement | |
25 | | pydub | 0.16.4 | | | 25 | | pydub | 0.16.4 | | |
26 | | Pygame | 1.9.2pre | utilisée par Kivy | | 26 | | Pygame | 1.9.2.dev1 | utilisée par Kivy | |
27 | | Pygments | 2.1.3 | pour la documentation uniquement | | 27 | | Pygments | 2.1.3 | pour la documentation uniquement | |
28 | | sounddevice | 0.3.3 | | | 28 | | sounddevice | 0.3.3 | | |
29 | | transitions | 0.4.1 | | | 29 | | transitions | 0.4.1 | | |
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() |