diff --git a/doc/Makefile b/doc/Makefile index 30c9c0a..1a39cb7 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -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 .. \ No newline at end of file + cd gh-pages; git commit -a; git push; cd .. diff --git a/doc/pyalsaaudio.rst b/doc/pyalsaaudio.rst index 1dc21cd..136429d 100644 --- a/doc/pyalsaaudio.rst +++ b/doc/pyalsaaudio.rst @@ -5,7 +5,7 @@ Introduction :Author: Casper Wilstrup :Author: Lars Immisch -.. |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 -`_. +`_. To test PCM recordings (on your default soundcard), verify your microphone works, then do:: diff --git a/setup.py b/setup.py index 0b87d93..9e73f8e 100755 --- a/setup.py +++ b/setup.py @@ -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