Mercurial > hg > auditok
view setup.py @ 331:9741b52f194a
Reformat code and documentation
author | Amine Sehili <amine.sehili@gmail.com> |
---|---|
date | Thu, 24 Oct 2019 20:49:51 +0200 |
parents | 308c89235a2e |
children | cfac5a7ec54c |
line wrap: on
line source
import sys import re import ast from setuptools import setup _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") setup( name="auditok", version=version, url="http://github.com/amsehili/auditok/", license="GNU General Public License v3 (GPLv3)", author="Amine Sehili", author_email="amine.sehili@gmail.com", description="A module for Audio/Acoustic Activity Detection", long_description=long_desc, packages=["auditok"], include_package_data=True, package_data={"auditok": ["data/*"]}, zip_safe=False, platforms="ANY", provides=["auditok"], requires=["PyAudio"], classifiers=[ "Development Status :: 3 - Alpha", "Environment :: Console", "Intended Audience :: Science/Research", "Intended Audience :: Developers", "Intended Audience :: Information Technology", "Intended Audience :: Telecommunications Industry", "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", "Topic :: Multimedia :: Sound/Audio :: Analysis", "Topic :: Scientific/Engineering :: Information Analysis", ], entry_points={"console_scripts": ["auditok = auditok.cmdline:main"]}, )