-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
executable file
·51 lines (44 loc) · 1.29 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
#!/usr/bin/env python
"""
package setup.
"""
import sys
from pathlib import Path
from setuptools import find_packages, setup
# Need the * to include extra folders
PACKAGES = find_packages(exclude=("tests",), include=["radio*"])
# Get version and release info
ver_file = Path("radio", "version.py")
with ver_file.open() as fid:
exec(fid.read())
# Give setuptools a hint to complain if it's too old a version
# 24.2.0 added the python_requires option
# Should match pyproject.toml
SETUP_REQUIRES = ["setuptools >= 24.2.0"]
# This enables setuptools to install wheel on-the-fly
SETUP_REQUIRES += ["wheel"] if "bdist_wheel" in sys.argv else []
ENTRY_POINTS = {"console_scripts": ["radio=radio.app:app"]}
opts = dict(
name=NAME,
maintainer=MAINTAINER,
maintainer_email=MAINTAINER_EMAIL,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
url=URL,
download_url=DOWNLOAD_URL,
license=LICENSE,
classifiers=CLASSIFIERS,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
platforms=PLATFORMS,
version=VERSION,
packages=PACKAGES,
package_data=PACKAGE_DATA,
entry_points=ENTRY_POINTS,
install_requires=REQUIRES,
python_requires=PYTHON_REQUIRES,
setup_requires=SETUP_REQUIRES,
requires=REQUIRES,
)
if __name__ == "__main__":
setup(**opts)