-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
41 lines (35 loc) · 1.14 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
#!/usr/bin/env python
import pathlib
from setuptools import setup, convert_path
def load_package_meta():
meta_path = convert_path("./pytivity/__meta__.py")
meta_ns = {}
with open(meta_path) as f:
exec(f.read(), meta_ns)
return meta_ns["METADATA"]
LONG_DESCRIPTION = pathlib.Path("README.rst").read_text("utf-8")
PKG_META = load_package_meta()
setup(
keywords=["kde", "activity"],
packages=["pytivity"],
entry_points={"console_scripts": ["pytivity=pytivity.cli:main"]},
include_package_data=True,
zip_safe=False,
install_requires=["terminaltables", "pyxdg", "pydbus"],
tests_require=["flake8"],
classifiers=[
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Environment :: Console",
],
author=PKG_META["author"],
author_email=PKG_META["author_email"],
description=PKG_META["description"],
long_description=LONG_DESCRIPTION,
license=PKG_META["license"],
name=PKG_META["name"],
url=PKG_META["url"],
version=PKG_META["version"],
)