-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
46 lines (37 loc) · 1.39 KB
/
Copy pathsetup.py
File metadata and controls
46 lines (37 loc) · 1.39 KB
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
from os import path
from setuptools import setup as _setup
from setuptools import find_packages as _find_packages
from audiorepr.version import __version__
# read the contents of your README file
__CWD__ = path.abspath(path.dirname(__file__))
with open(path.join(__CWD__, "README.md"), encoding="utf-8") as fp:
PACKAGE_LONG_DESCRIPTION = fp.read()
PACKAGE_NAME = "audiorepr"
PACKAGE_VERSION = __version__
PACKAGE_DESCRIPTION = "Audiolize your data"
PACKAGE_URL = "https://github.com/emptymalei/audiorepr"
def _requirements():
return [r for r in open("requirements.txt")]
def setup():
_setup(
name=PACKAGE_NAME,
version=PACKAGE_VERSION,
description=PACKAGE_DESCRIPTION,
long_description=PACKAGE_LONG_DESCRIPTION,
long_description_content_type="text/markdown",
url=PACKAGE_URL,
author="Lei Ma",
author_email="hi@leima.is",
license="MIT",
packages=_find_packages(exclude=("tests",)),
install_requires=_requirements(),
include_package_data=True,
extras_require={"docs": ["sphinx>=2.4.1", "sphinx-rtd-theme>=0.4.3"]},
entry_points={"console_scripts": ["audiorepr=audiorepr.command:audiorepr"]},
test_suite="nose.collector",
tests_require=["nose"],
zip_safe=False,
)
if __name__ == "__main__":
setup()
print("Packages: ", _find_packages(exclude=("tests",)))