Upload target, documentation reads version from setup.py.

git-svn-id: svn://svn.code.sf.net/p/pyalsaaudio/code/trunk@38 ec2f30ec-7544-0410-870e-f70ca00c83f0
This commit is contained in:
larsimmisch
2009-12-18 23:34:54 +00:00
parent 3c0469c0fc
commit 5fc5918e01
5 changed files with 44 additions and 31 deletions

View File

@@ -1,3 +1,8 @@
Version 0.6:
- mostly reverted patch 2594366: alsapcm_setup did not do complete error
checking for good reasons; some ALSA functions in alsapcm_setup may fail without
rendering the device unusable
Version 0.5:
- applied patch 2777035: Fixed setrec method in alsaaudio.c
This included a mixertest with more features

View File

@@ -73,5 +73,5 @@ linkcheck:
@echo "Link check complete; look for any errors in the above output " \
"or in linkcheck/output.txt."
install:
upload: html
scp -r ./html/* $(SFUSER),pyalsaaudio@web.sourceforge.net:htdocs

View File

@@ -13,6 +13,9 @@
import sys, os
sys.path.append('..')
from setup import pyalsa_version
# If your extensions are in another directory, add it here. If the directory
# is relative to the documentation root, use os.path.abspath to make it
# absolute, like shown here.
@@ -36,15 +39,15 @@ master_doc = 'index'
# General substitutions.
project = u'alsaaudio'
copyright = u'2008, Casper Wilstrup, Lars Immisch'
copyright = u'2008-2009, Casper Wilstrup, Lars Immisch'
# The default replacements for |version| and |release|, also used in various
# other places throughout the built documents.
#
# The short X.Y version.
version = '0.4'
version = pyalsa_version
# The full version, including alpha/beta/rc tags.
release = '0.4'
release = pyalsa_version
# There are two options for replacing |today|: either, you set today to some
# non-false value, then it is used:

View File

@@ -8,6 +8,8 @@ from distutils.core import setup
from distutils.extension import Extension
from sys import version
pyalsa_version = '0.6'
# patch distutils if it's too old to cope with the "classifiers" or
# "download_url" keywords
from sys import version
@@ -15,30 +17,32 @@ if version < '2.2.3':
from distutils.dist import DistributionMetadata
DistributionMetadata.classifiers = None
DistributionMetadata.download_url = None
setup(
name = 'pyalsaaudio',
version = '0.5',
description = 'ALSA bindings',
long_description = __doc__,
author = 'Casper Wilstrup',
author_email='cwi@aves.dk',
maintainer = 'Lars Immisch',
maintainer_email = 'lars@ibp.de',
license='PSF',
platforms=['posix'],
url='http://pyalsaaudio.sourceforge.net/',
classifiers = [
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: Python Software Foundation License',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Multimedia :: Sound/Audio',
'Topic :: Multimedia :: Sound/Audio :: Mixers',
'Topic :: Multimedia :: Sound/Audio :: Players',
'Topic :: Multimedia :: Sound/Audio :: Capture/Recording',
],
ext_modules=[Extension('alsaaudio',['alsaaudio.c'], libraries=['asound'])]
if __name__ == '__main__':
setup(
name = 'pyalsaaudio',
version = pyalsa_version,
description = 'ALSA bindings',
long_description = __doc__,
author = 'Casper Wilstrup',
author_email='cwi@aves.dk',
maintainer = 'Lars Immisch',
maintainer_email = 'lars@ibp.de',
license='PSF',
platforms=['posix'],
url='http://pyalsaaudio.sourceforge.net/',
classifiers = [
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: Python Software Foundation License',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Multimedia :: Sound/Audio',
'Topic :: Multimedia :: Sound/Audio :: Mixers',
'Topic :: Multimedia :: Sound/Audio :: Players',
'Topic :: Multimedia :: Sound/Audio :: Capture/Recording',
],
ext_modules=[Extension('alsaaudio',['alsaaudio.c'],
libraries=['asound'])]
)

View File

@@ -67,7 +67,8 @@ class MixerTest(unittest.TestCase):
mixer.close()
def testMixerClose(self):
"Run common Mixer methods on a closed object and verify it raises an error"
"""Run common Mixer methods on a closed object and verify it raises an
error"""
mixers = alsaaudio.mixers()
mixer = alsaaudio.Mixer(mixers[0])