-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
53 lines (46 loc) · 1.51 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
import os
import re
from setuptools import find_packages, setup
# Read version from easytk.__version__
this_dir = os.path.dirname(__file__)
with open(os.path.join(this_dir, "easytk", "__init__.py"), "r") as f:
for line in f:
if "__version__" in line:
version = re.search(r'__version__ = "([^"]+)"', line).group(1)
break
# Read license
with open(os.path.join(this_dir, "LICENSE"), "r") as f:
license_contents = f.read()
NAME = "easy-toolkit"
VERSION = version
DESCRIPTION = "A simple API wrapper to create functional tkinter GUIs using only a few lines."
KEYWORDS = "tkinter gui api scripting interaction"
AUTHOR = "Malte Herrmann"
AUTHOR_EMAIL = "[email protected]"
URL = "https://github.com/MalteHerrmann/easy-toolkit"
LICENSE = license_contents
PACKAGES = find_packages(exclude=["examples", "tests", "tests.*"])
CLASSIFIERS = [
"Development Status :: 2 - Pre-Alpha",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Topic :: Software Development :: Libraries"
]
params = {
"name": NAME,
"version": VERSION,
"description": DESCRIPTION,
"keywords": KEYWORDS,
"author": AUTHOR,
"author_email": AUTHOR_EMAIL,
"url": URL,
"license": LICENSE,
"packages": PACKAGES,
"classifiers": CLASSIFIERS
}
setup(**params)