# HG changeset patch # User Amine Sehili # Date 1572187693 -3600 # Node ID cfac5a7ec54cd55be4415226e3bef54879778bbe # Parent 56c0394fdaba852f0ff460b8bd4734c23338bd8e Update python version in setup and travis config. diff -r 56c0394fdaba -r cfac5a7ec54c .travis.yml --- a/.travis.yml Sun Oct 27 15:32:24 2019 +0100 +++ b/.travis.yml Sun Oct 27 15:48:13 2019 +0100 @@ -1,15 +1,16 @@ before_install: - sudo apt-get update --fix-missing install: - - pip install six + - pip install numpy - pip install genty language: python python: - - "2.7" - "3.2" - "3.3" - "3.4" - "3.5" - "3.6" + - "3.7" + - "3.8" script: - python -m unittest discover tests/ diff -r 56c0394fdaba -r cfac5a7ec54c setup.py --- a/setup.py Sun Oct 27 15:32:24 2019 +0100 +++ b/setup.py Sun Oct 27 15:48:13 2019 +0100 @@ -6,26 +6,15 @@ _version_re = re.compile(r"__version__\s+=\s+(.*)") -if sys.version_info >= (3, 0): - with open("auditok/__init__.py", "rt") as f: - version = str(ast.literal_eval(_version_re.search(f.read()).group(1))) - long_desc = open("doc/index.rst", "rt").read() - -else: - with open("auditok/__init__.py", "rb") as f: - version = str( - ast.literal_eval( - _version_re.search(f.read().decode("utf-8")).group(1) - ) - ) - long_desc = open("doc/index.rst", "rt").read().decode("utf-8") - +with open("auditok/__init__.py", "rt") as f: + version = str(ast.literal_eval(_version_re.search(f.read()).group(1))) + long_desc = open("README.rst", "rt").read() setup( name="auditok", version=version, url="http://github.com/amsehili/auditok/", - license="GNU General Public License v3 (GPLv3)", + license="MIT", author="Amine Sehili", author_email="amine.sehili@gmail.com", description="A module for Audio/Acoustic Activity Detection", @@ -36,7 +25,6 @@ zip_safe=False, platforms="ANY", provides=["auditok"], - requires=["PyAudio"], classifiers=[ "Development Status :: 3 - Alpha", "Environment :: Console", @@ -47,11 +35,14 @@ "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Operating System :: OS Independent", "Programming Language :: Python", - "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", + "Programming Language :: Python :: 3.5", + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", "Topic :: Multimedia :: Sound/Audio :: Analysis", "Topic :: Scientific/Engineering :: Information Analysis", ],