-
Notifications
You must be signed in to change notification settings - Fork 19
/
setup.py
51 lines (43 loc) · 1.47 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
from setuptools import setup
from os import path
def get_wavio_version():
"""
Find the value assigned to __version__ in wavio.py.
This function assumes that there is a line of the form
__version__ = "version-string"
in wavio.py. It returns the string version-string, or None if such a
line is not found.
"""
with open("wavio.py", "r") as f:
for line in f:
s = [w.strip() for w in line.split("=", 1)]
if len(s) == 2 and s[0] == "__version__":
return s[1][1:-1]
# Get the long description from README.md.
_here = path.abspath(path.dirname(__file__))
with open(path.join(_here, 'README.md')) as f:
_long_description = f.read()
setup(
name='wavio',
version=get_wavio_version(),
author='Warren Weckesser',
description=("A Python module for reading and writing WAV files using "
"numpy arrays."),
long_description=_long_description,
license="BSD",
url="https://github.com/WarrenWeckesser/wavio",
classifiers=[
"License :: OSI Approved :: BSD License",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
],
keywords="wav numpy",
py_modules=["wavio"],
install_requires=[
'numpy >= 1.21.3',
],
)