-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
53 lines (48 loc) · 1.34 KB
/
setup.py
File metadata and controls
53 lines (48 loc) · 1.34 KB
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 ast
from setuptools import setup
# Thanks: https://stackoverflow.com/questions/2058802/
# how-can-i-get-the-version-defined-in-setup-py-setuptools-in-my-package
__version__ = None
with open("demomgr/main_app.py") as h:
for line in h.readlines():
if line.startswith("__version__"):
__version__ = ast.parse(line).body[0].value.s
break
if __version__ == None:
raise SyntaxError("Version not found.")
with open("README.md") as h:
long_desc = h.read()
with open("requirements.txt") as h:
reqs = h.read().splitlines()
setup(
name = "Demomgr",
author = "Square789",
version = __version__,
description = "TF2 demo file management tool written in Python and Tcl, using tkinter.",
long_description = long_desc,
long_description_content_type = "text/markdown",
packages = [
"demomgr",
"demomgr.dialogues",
"demomgr.threads",
"demomgr.tk_widgets",
"demomgr.ui_themes",
],
package_data = {
"demomgr.ui_themes": ["*.tcl", "icon.gif", "*/*.png"],
},
install_requires = reqs,
classifiers = [
"Topic :: Desktop Environment :: File Managers",
"Programming Language :: Python",
"Programming Language :: Tcl",
"License :: OSI Approved :: MIT License",
"Intended Audience :: End Users/Desktop",
],
entry_points = {
"console_scripts": [
"demomgr = demomgr.__init__:run",
],
},
url = "https://www.github.com/Square789/Demomgr",
)