From e257f4d9e3b8647c3470a1450ccdcea33583419c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Thu, 28 Jul 2016 00:43:58 +0200 Subject: Use setuptools_scm to determinate project version --- .gitignore | 1 + documentation_fr.md | 2 +- music_sampler.spec | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index a313440..5e7aaa4 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ dist/ music_sampler/__pycache__/ __pycache__/ .pyinstaller_commit +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 | Kivy | 1.9.1 | | | Markdown | 2.6.6 | pour la documentation uniquement | | pydub | 0.16.4 | | -| Pygame | 1.9.2pre | utilisée par Kivy | +| Pygame | 1.9.2.dev1 | utilisée par Kivy | | Pygments | 2.1.3 | pour la documentation uniquement | | sounddevice | 0.3.3 | | | 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 @@ # -*- mode: python -*- import os +import setuptools_scm from kivy.tools.packaging.pyinstaller_hooks import get_deps_minimal,\ hookspath, runtime_hooks @@ -22,7 +23,7 @@ excluded_and_hidden_modules['hiddenimports'] += [ 'packaging.specifiers', 'packaging.requirements' ] -commit_message = os.popen('git log -1 --format="%h %ci"').read() +commit_message = setuptools_scm.get_version() pyinstaller_file = open(".pyinstaller_commit", "w") pyinstaller_file.write(commit_message) pyinstaller_file.close() -- cgit v1.2.3