-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
56 lines (51 loc) · 1.56 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
from setuptools import setup
import os
import sys
import re
install_requires = ["mutagen"]
if sys.version_info < (3, 10):
raise Exception("mytpu requires Python 3.10 or higher.")
# Load the version by reading prep.py, so we don't run into
# dependency loops by importing it into setup.py
version = None
with open(
os.path.join(
os.path.abspath(os.path.dirname(__file__)), "audiotools", "__init__.py"
)
) as file:
for line in file:
m = re.search(r"__version__\s*=\s*(.+?\n)", line)
if m:
version = eval(m.group(1))
break
setup_args = dict(
name="audiotools",
version=version,
author="Chris Petersen",
author_email="[email protected]",
url="https://github.com/ex-nerd/audiotools",
license="MIT",
description="",
long_description=open("README.md").read(),
install_requires=install_requires,
entry_points={
"console_scripts": [
"extract_overdrive_chapters = audiotools.extract_overdrive_chapters:main",
"buildm4b = audiotools.buildm4b:main",
"fixm4a = audiotools.fixm4a:main",
"fixm4b = audiotools.fixm4b:main",
],
},
classifiers=[
"Development Status :: 3 - Alpha",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Environment :: Console",
"Topic :: Utilities",
],
)
if __name__ == "__main__":
setup(**setup_args)