Take version from git tag

This commit is contained in:
Lars Immisch
2015-05-11 22:13:02 +02:00
parent a83979a71e
commit 526bd05eaf
3 changed files with 10 additions and 6 deletions

View File

@@ -11,8 +11,6 @@ PAPEROPT_a4 = -D latex_paper_size=a4
PAPEROPT_letter = -D latex_paper_size=letter
ALLSPHINXOPTS = -d doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
SFUSER = larsimmisch
.PHONY: help clean html web pickle htmlhelp latex changes linkcheck install
all: html
@@ -77,4 +75,4 @@ gh-pages: html
cp -r ./html/* gh-pages
publish: gh-pages
cd gh-pages; git commit -a; git push; cd ..
cd gh-pages; git commit -a; git push; cd ..

View File

@@ -5,7 +5,7 @@ Introduction
:Author: Casper Wilstrup <cwi@aves.dk>
:Author: Lars Immisch <lars@ibp.de>
.. |release| replace:: 0.8
.. |release| replace:: version
.. % At minimum, give your name and an email address. You can include a
.. % snail-mail address if you like.
@@ -116,7 +116,7 @@ First of all, run::
This is a small test suite that mostly performs consistency tests. If
it fails, please file a `bug report
<http://sourceforge.net/tracker/?group_id=120651>`_.
<https://github.com/larsimmisch/pyalsaaudio/issues>`_.
To test PCM recordings (on your default soundcard), verify your
microphone works, then do::

View File

@@ -4,11 +4,17 @@
It is fairly complete for PCM devices and Mixer access.
'''
import subprocess
from distutils.core import setup
from distutils.extension import Extension
from sys import version
pyalsa_version = '0.8'
def gitrev():
rev = subprocess.check_output(['git', 'describe', '--tags', '--dirty=-dev',
'--always'])
return rev.decode('utf-8').strip()
pyalsa_version = gitrev()
# patch distutils if it's too old to cope with the "classifiers" or
# "download_url" keywords