Mercurial > hg > auditok
changeset 340:cfac5a7ec54c
Update python version in setup and travis config.
author | Amine Sehili <amine.sehili@gmail.com> |
---|---|
date | Sun, 27 Oct 2019 15:48:13 +0100 |
parents | 56c0394fdaba |
children | 6aa9a9efb19e |
files | .travis.yml setup.py |
diffstat | 2 files changed, 11 insertions(+), 19 deletions(-) [+] |
line wrap: on
line diff
--- 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/
--- 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", ],