-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
63 lines (50 loc) · 1.62 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
61
62
63
"""
Copyright 2021 cpyberry
https://github.com/cpyberry/pybencode
cpyberry
email: [email protected]
github: https://github.com/cpyberry
"""
import os
from setuptools import setup
NAME = "pytransform"
def get_absolute_path(*paths):
root_dir = os.path.abspath(os.path.dirname(__file__))
path = os.path.join(root_dir, *paths)
return path
info = {}
with open(get_absolute_path(NAME, "__info__.py")) as f:
exec(f.read(), info)
with open(get_absolute_path("README.md"), encoding="utf-8") as f:
long_description = f.read()
setup(
name=info["__title__"],
description=info["__description__"],
long_description=long_description,
long_description_content_type="text/markdown",
url=info["__url__"],
license=info["__license__"],
version=info["__version__"],
author=info["__author__"],
author_email=info["__author_email__"],
packages=[NAME],
python_requires=info["__python_requires__"],
zip_safe=False,
include_package_data=True,
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Natural Language :: Japanese",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: Implementation",
"Topic :: Software Development :: Libraries :: Python Modules"
]
)