-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
64 lines (55 loc) · 1.98 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
from setuptools import setup, find_packages
import koogu
def build_long_description():
# Read in first two sections from README.md
# (without the page header & any links)
stop_point_found = False
readme = []
with open('README.md', 'r') as fd:
for line in fd: # Skip until first blank line is encountered
if line in ['\n', '\r\n']:
break
for line in fd: # Read everything up until the "How to" section
if line.startswith('How to use Koogu'):
stop_point_found = True
break
readme.append(line)
# Failsafe checks
assert (stop_point_found and
readme[0].startswith('A python package for')), \
'Contents of README.md appears to have changed. ' + \
'Might need to update setup.py'
# Add everything from HOWTO.md
with open('HOWTO.md', 'r') as fd:
how_to = fd.read()
return ( # Add header, and then join all the pieces
'Koogu\n======\n\n' + ''.join(readme) + '\n\n' + how_to)
setup(
name='koogu',
version=koogu.__version__,
description='Machine Learning for Bioacoustics',
long_description=build_long_description(),
long_description_content_type='text/markdown',
url='https://shyamblast.github.io/Koogu/',
author='Shyam Madhusudhana',
author_email='[email protected]',
license='GNU General Public License v3.0',
packages=find_packages(include=['koogu', 'koogu.*']),
python_requires='>=3.7',
install_requires=[
'numpy',
'scipy',
'soundfile',
'audioread',
'resampy',
'tensorflow>=2.7'
],
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering",
"Topic :: Multimedia :: Sound/Audio :: Analysis"
],
)