Changes in / [cc4987a:6448d31]


Ignore:
Files:
1 deleted
7 edited

Legend:

Unmodified
Added
Removed
  • .gitignore

    rcc4987a r6448d31  
    3939python/*.wav
    4040
    41 pip-delete-this-directory.txt
    42 
    4341aubio-*.tar.bz2
    4442aubio-*.zip
    45 dist/*.tar.gz
    4643
    4744# test sounds
  • MANIFEST.in

    rcc4987a r6448d31  
    11include AUTHORS COPYING README.md VERSION ChangeLog
    22include python/README.md
    3 include this_version.py
    43include Makefile wscript */wscript_build
    54include waf waflib/* waflib/*/*
  • README.md

    rcc4987a r6448d31  
    11aubio library
    22=============
    3 [![Travis build status](https://travis-ci.org/aubio/aubio.svg?branch=master)](https://travis-ci.org/aubio/aubio "Travis build status")
    4 [![Appveyor build status](https://ci.appveyor.com/api/projects/status/f3lhy3a57rkgn5yi?svg=true)](https://ci.appveyor.com/project/aubio/aubio/branch/master "Appveyor build status")
    5 [![Landscape code health](https://landscape.io/github/aubio/aubio/master/landscape.svg?style=flat)](https://landscape.io/github/aubio/aubio/master "Landscape code health")
    6 [![Documentation Status](https://readthedocs.org/projects/aubio/badge/?version=latest)](http://aubio.readthedocs.io/en/latest/?badge=latest "Documentation status")
    7 [![Commits since last release](https://img.shields.io/github/commits-since/aubio/aubio/0.4.4.svg?maxAge=2592000)](https://github.com/aubio/aubio "Commits since last release")
    83
    94aubio is a library to label music and sounds. It listens to audio signals and
  • doc/conf.py

    rcc4987a r6448d31  
    1313
    1414import sys, os
    15 
    16 # get version using this_version.py
    17 sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), '..'))
    18 from this_version import get_aubio_version
    1915
    2016# If extensions (or modules to document with autodoc) are in another directory,
     
    5349#
    5450# The short X.Y version.
    55 
    56 version = get_aubio_version()[:3]
     51version = '0.4'
    5752# The full version, including alpha/beta/rc tags.
    58 release = get_aubio_version()
     53release = '0.4.5~alpha'
    5954
    6055# The language for content autogenerated by Sphinx. Refer to documentation
  • python/lib/moresetuptools.py

    rcc4987a r6448d31  
    55from .gen_external import generate_external, header, output_path
    66
    7 from this_version import get_aubio_version
     7def get_aubio_version():
     8    # read from VERSION
     9    this_file_dir = os.path.dirname(os.path.abspath(__file__))
     10    version_file = os.path.join(this_file_dir, '..', '..', 'VERSION')
     11
     12    if not os.path.isfile(version_file):
     13        raise SystemError("VERSION file not found.")
     14
     15    for l in open(version_file).readlines():
     16        #exec (l.strip())
     17        if l.startswith('AUBIO_MAJOR_VERSION'):
     18            AUBIO_MAJOR_VERSION = int(l.split('=')[1])
     19        if l.startswith('AUBIO_MINOR_VERSION'):
     20            AUBIO_MINOR_VERSION = int(l.split('=')[1])
     21        if l.startswith('AUBIO_PATCH_VERSION'):
     22            AUBIO_PATCH_VERSION = int(l.split('=')[1])
     23        if l.startswith('AUBIO_VERSION_STATUS'):
     24            AUBIO_VERSION_STATUS = l.split('=')[1].strip()[1:-1]
     25
     26    if AUBIO_MAJOR_VERSION is None or AUBIO_MINOR_VERSION is None \
     27            or AUBIO_PATCH_VERSION is None:
     28        raise SystemError("Failed parsing VERSION file.")
     29
     30    verstr = '.'.join(map(str, [AUBIO_MAJOR_VERSION,
     31                                     AUBIO_MINOR_VERSION,
     32                                     AUBIO_PATCH_VERSION]))
     33
     34    if AUBIO_VERSION_STATUS is not None:
     35        verstr += AUBIO_VERSION_STATUS
     36    return verstr
     37
     38def get_aubio_pyversion():
     39    # convert to version for python according to pep 440
     40    # see https://www.python.org/dev/peps/pep-0440/
     41    verstr = get_aubio_version()
     42    if '~alpha' in verstr:
     43        verstr = verstr.split('~')[0] + 'a1'
     44    # TODO: add rc, .dev, and .post suffixes, add numbering
     45    return verstr
    846
    947# inspired from https://gist.github.com/abergmeier/9488990
     
    178216                add_local_aubio_sources(extension)
    179217        # generate files python/gen/*.c, python/gen/aubio-generated.h
    180         extension.include_dirs += [ output_path ]
    181218        extension.sources += generate_external(header, output_path, overwrite = False,
    182219                usedouble=enable_double)
  • setup.py

    rcc4987a r6448d31  
    33import sys, os.path, glob
    44from setuptools import setup, Extension
    5 from python.lib.moresetuptools import build_ext, CleanGenerated
     5from python.lib.moresetuptools import *
    66# function to generate gen/*.{c,h}
    7 from this_version import get_aubio_version, get_aubio_pyversion
     7from python.lib.gen_external import generate_external, header, output_path
    88
    99__version__ = get_aubio_pyversion()
    10 __aubio_version__ = get_aubio_version()
    1110
    1211include_dirs = []
    1312library_dirs = []
    14 define_macros = [('AUBIO_VERSION', '%s' % __aubio_version__)]
     13define_macros = [('AUBIO_VERSION', '%s' % __version__)]
    1514extra_link_args = []
    1615
    1716include_dirs += [ 'python/ext' ]
     17include_dirs += [ output_path ] # aubio-generated.h
    1818try:
    1919    import numpy
  • wscript

    rcc4987a r6448d31  
    1515APPNAME = 'aubio'
    1616
    17 from this_version import *
    18 
    19 VERSION = get_aubio_version()
    20 LIB_VERSION = get_libaubio_version()
     17# source VERSION
     18for l in open('VERSION').readlines(): exec (l.strip())
     19
     20VERSION = '.'.join ([str(x) for x in [
     21    AUBIO_MAJOR_VERSION,
     22    AUBIO_MINOR_VERSION,
     23    AUBIO_PATCH_VERSION
     24    ]]) + AUBIO_VERSION_STATUS
     25
     26LIB_VERSION = '.'.join ([str(x) for x in [
     27    LIBAUBIO_LT_CUR,
     28    LIBAUBIO_LT_REV,
     29    LIBAUBIO_LT_AGE]])
    2130
    2231top = '.'
Note: See TracChangeset for help on using the changeset viewer.