annotate setup.py @ 404:08a7af37f2e9

Update code with new pre-commit hooks
author Amine Sehili <amine.sehili@gmail.com>
date Sun, 26 May 2024 23:29:33 +0200
parents 30f276d1bddf
children 0f8f60771784
rev   line source
amine@404 1 import ast
amine@404 2 import re
amine@19 3 import sys
amine@404 4
amine@2 5 from setuptools import setup
amine@2 6
amine@331 7 _version_re = re.compile(r"__version__\s+=\s+(.*)")
amine@2 8
amine@340 9 with open("auditok/__init__.py", "rt") as f:
amine@340 10 version = str(ast.literal_eval(_version_re.search(f.read()).group(1)))
amine@340 11 long_desc = open("README.rst", "rt").read()
amine@2 12
amine@2 13 setup(
amine@331 14 name="auditok",
amine@2 15 version=version,
amine@331 16 url="http://github.com/amsehili/auditok/",
amine@340 17 license="MIT",
amine@331 18 author="Amine Sehili",
amine@331 19 author_email="amine.sehili@gmail.com",
amine@331 20 description="A module for Audio/Acoustic Activity Detection",
amine@331 21 long_description=long_desc,
amine@391 22 long_description_content_type="text/x-rst",
amine@331 23 packages=["auditok"],
amine@2 24 include_package_data=True,
amine@331 25 package_data={"auditok": ["data/*"]},
amine@2 26 zip_safe=False,
amine@331 27 platforms="ANY",
amine@331 28 provides=["auditok"],
amine@2 29 classifiers=[
amine@331 30 "Development Status :: 3 - Alpha",
amine@331 31 "Environment :: Console",
amine@331 32 "Intended Audience :: Science/Research",
amine@331 33 "Intended Audience :: Developers",
amine@331 34 "Intended Audience :: Information Technology",
amine@331 35 "Intended Audience :: Telecommunications Industry",
amine@391 36 "License :: OSI Approved :: MIT License",
amine@331 37 "Operating System :: OS Independent",
amine@331 38 "Programming Language :: Python",
amine@331 39 "Programming Language :: Python :: 3.4",
amine@340 40 "Programming Language :: Python :: 3.5",
amine@340 41 "Programming Language :: Python :: 3.6",
amine@340 42 "Programming Language :: Python :: 3.7",
amine@340 43 "Programming Language :: Python :: 3.8",
amine@376 44 "Programming Language :: Python :: 3.9",
amine@331 45 "Topic :: Multimedia :: Sound/Audio :: Analysis",
amine@331 46 "Topic :: Scientific/Engineering :: Information Analysis",
amine@2 47 ],
amine@331 48 entry_points={"console_scripts": ["auditok = auditok.cmdline:main"]},
amine@2 49 )