-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathsetup.py
60 lines (51 loc) · 1.59 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
"""A simple Python 3 CLI to read your Things app data."""
import os
from setuptools import find_packages, setup # type: ignore
def package_files(directory):
"""Automatically add data resources."""
paths = []
# pylint: disable=unused-variable
for (path, _directories, filenames) in os.walk(directory):
for filename in filenames:
paths.append((directory, [os.path.join(path, filename)]))
return paths
APP = ["things-cli"]
APP_NAME = "Things CLI"
AUTHOR = "Alexander Willner"
AUTHOR_MAIL = "[email protected]"
DESCRIPTON = "A simple Python 3 CLI to read your Things app data."
URL = "https://github.com/thingsapi/things-cli"
DATA_FILES = package_files("")
OPTIONS = {
"argv_emulation": False,
}
with open("README.md", "r") as fh:
LONG_DESRIPTION = fh.read()
setup(
app=APP,
author=AUTHOR,
author_email=AUTHOR_MAIL,
name="things-cli",
description=DESCRIPTON,
long_description=LONG_DESRIPTION,
long_description_content_type="text/markdown",
url=URL,
packages=find_packages(),
classifiers=[
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: MacOS :: MacOS X",
"Natural Language :: English",
],
python_requires=">=3.6",
data_files=DATA_FILES,
options={"py2app": OPTIONS},
setup_requires=["py2app"],
entry_points={
"console_scripts": [
"things-cli = things_cli.cli:main",
]
},
install_requires=["things.py>=0.0.15", "argcomplete>=3.0.0"],
)