-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
71 lines (63 loc) · 2.19 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# Copyright (C) 2024 Mitsubishi Electric Research Laboratories (MERL)
#
# SPDX-License-Identifier: AGPL-3.0-or-later
"""A setuptools based setup module.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
from codecs import open
from os import path
import numpy as np
import setuptools as st
from Cython.Build import cythonize
ext_modules = cythonize(
[
"sebbs/change_detection.pyx",
]
)
here = path.abspath(path.dirname(__file__))
# Get the long description from the relevant file
with open(path.join(here, "README.md"), encoding="utf-8") as f:
long_description = f.read()
with open(path.join(here, "requirements.txt")) as f:
requirements = list(filter(lambda x: len(x) > 0 and not x.startswith("#"), f.read().split("\n")))
st.setup(
name="sebbs",
version="0.0.0",
description="Sound Event Bounding Boxes",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/merlresearch/sound_event_bounding_boxes",
author="Mitsubishi Electric Research Laboratories",
author_email="ebbers[at]merl[dot]com",
license="AGPL-3.0",
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Topic :: Software Development :: Build Tools",
"License :: OSI Approved :: AGPL-3.0 License",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
],
keywords="sound event detection, polyphonic sound detection, post processing, change detection",
packages=st.find_packages(exclude=["contrib", "docs", "tests*"]),
install_requires=[
"numpy",
"pandas",
"scipy",
"pathlib",
"sed_scores_eval",
"Cython",
],
extras_require={
"dev": ["check-manifest"],
"test": ["coverage", "jupyter", "matplotlib"],
},
ext_modules=ext_modules,
package_data={"sebbs": ["**/*.pyx"]}, # https://stackoverflow.com/a/60751886
include_dirs=[np.get_include()],
)