-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathsetup.py
executable file
·65 lines (58 loc) · 1.49 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
64
65
#!/usr/bin/env python
from setuptools import setup
import shlex
import subprocess
version = "0.1.0.3"
try:
hash = (
subprocess.check_output(shlex.split("git rev-parse --short HEAD"))
.rstrip()
.decode("ASCII")
)
commit = (
subprocess.check_output(shlex.split("git rev-list --count HEAD"))
.rstrip()
.decode("ASCII")
)
except Exception:
pass
else:
version = "{}.dev{}+{}".format(version, commit, hash)
setup(
name="tts-backup",
version=version,
description=(
"Backup Tabletop Simulator saves and assets into comprehensive "
"Zip files."
),
author="Sebastian Reuße",
author_email="[email protected]",
url="https://github.com/eigengrau/tts-backup",
packages=[
"tts_tools",
"tts_tools.backup",
"tts_tools.prefetch",
"tts_tools.libgui",
],
extras_require={
"dev": [
"pytest==6.2.2",
"pytest-black==0.3.12",
"pytest-flake8==1.0.7",
"pytest-isort==1.3.0",
"isort==5.7.0",
]
},
package_dir={"": "src"},
license="GPL3",
entry_points={
"console_scripts": [
"tts-backup = tts_tools.backup.cli:console_entry",
"tts-prefetch = tts_tools.prefetch.cli:console_entry",
],
"gui_scripts": [
"tts-backup-gui = tts_tools.backup.gui:gui_entry",
"tts-prefetch-gui = tts_tools.prefetch.gui:gui_entry",
],
},
)