-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
30 lines (25 loc) · 758 Bytes
/
setup.py
File metadata and controls
30 lines (25 loc) · 758 Bytes
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
import sys
from setuptools import setup, find_packages
with open("VERSION") as f:
version = f.read().strip()
setup_args = dict(
name="drift-adminweb",
version=version,
author="Directive Games North",
author_email="info@directivegames.com",
description="Drift Admin",
url="https://admin.drift-base.directivegames.com/",
packages=find_packages(
exclude=["*.tests", "*.tests.*", "tests.*", "tests"]
),
include_package_data=True,
)
if __name__ == "__main__":
if {'upload', 'sdist'} & set(sys.argv):
import adminweb
try:
adminweb.__version__.verify(setup_args['version'])
except Exception as e:
print("Warning!")
print(e)
setup(**setup_args)