-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
67 lines (61 loc) · 2.4 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
import os
#from distutils.sysconfig import get_python_lib
from setuptools import setup, find_packages, Command
from importlib.machinery import SourceFileLoader
version = SourceFileLoader('birdsongs.version',
'birdsongs/version.py').load_module()
with open('README.md', 'r', encoding="utf8") as fdesc:
long_description = fdesc.read()
class CleanCommand(Command):
"""Custom clean command to tidy up the project root.
Deletes directories ./build, ./dist and ./*.egg-info
From the terminal type:
> python setup.py clean
"""
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
os.system('rm -vrf ./build ./dist ./*.egg-info')
#if __name__ == '__main__':
#packages=['birdsongs'],
setup(
name='birdsongs',
version = version.__version__,
packages = find_packages(),
author = 'Sebastian Aguilera Novoa',
maintainer = 'Sebastian Aguilera Novoa',
author_email = '[email protected]',
url = 'https://github.com/saguileran/birdsongs',
license = 'GPL-3.0',
keywords = ['numerical-optimization', 'bioacustics', 'syrinx', 'signal processing'],
description = 'A python package for analyzing, visualizing and generating synthetic bird songs from recorded audio.',
long_description = long_description,
long_description_content_type = 'text/markdown',
license_file = 'LICENSE',
cmdclass= {'clean': CleanCommand},
python_requires = '>=3.8',
install_requires = [
"librosa",
"lmfit",
"scipy",
"sympy",
"numpy",
"pandas",
"matplotlib",
"playsound",
"PeakUtils",
"mpl_pan_zoom",
"mpl_point_clicker",
"scikit_learn",
"scikit_maad",
"setuptools",
"ipython",
"ffmpeg"
]
)
# Allow editable install into user site directory.
# See https://github.com/pypa/pip/issues/7953.
#site.ENABLE_USER_SITE = "--user" in sys.argv[1:]