-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
64 lines (61 loc) · 1.88 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
"""
Setup file for the digicubes package
"""
import json
from setuptools import setup, find_namespace_packages
def version() -> str:
"""
Returns the current version of the digicubes server
"""
with open("digicubes_rest/version.json") as f:
data = json.load(f)
return ".".join(str(n) for n in data["version"])
def requirements() -> list:
"""
Returns an array of required packages für the server.
"""
return open("requirements.txt", "rt").read().splitlines()
setup(
# Application name:
name="digicubes-server",
# Version number:
version=version(),
# Application author details:
author="Klaas Nebuhr, Marion Nebuhr",
author_email="klaas.nebuhr@gmail.com",
# License
license="Apache License Version 2.0",
# Entry Points
entry_points={
'console_scripts' : [
'digicubes-server=digicubes_rest.server.commandline:evaluate_command',
]
},
# Packages
packages=find_namespace_packages(
include=["digicubes*"]
),
zip_safe=False,
# Include additional files into the package
include_package_data=True,
# Details
description="The digicubes api server",
long_description=open("README.rst", "r").read(),
long_description_content_type='text/x-rst',
classifiers=[
"License :: OSI Approved :: Apache Software License",
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Framework :: AsyncIO",
"Topic :: Software Development :: Libraries :: Python Modules",
"Operating System :: OS Independent",
],
keywords=(
"rest digicubes api learning platform"
),
# Dependent packages (distributions)
install_requires=requirements(),
)