-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.py
111 lines (100 loc) · 3.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Hive Netius System
# Copyright (c) 2008-2024 Hive Solutions Lda.
#
# This file is part of Hive Netius System.
#
# Hive Netius System is free software: you can redistribute it and/or modify
# it under the terms of the Apache License as published by the Apache
# Foundation, either version 2.0 of the License, or (at your option) any
# later version.
#
# Hive Netius System is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# Apache License for more details.
#
# You should have received a copy of the Apache License along with
# Hive Netius System. If not, see <http://www.apache.org/licenses/>.
__author__ = "João Magalhães <[email protected]>"
""" The author(s) of the module """
__copyright__ = "Copyright (c) 2008-2024 Hive Solutions Lda."
""" The copyright for the module """
__license__ = "Apache License, Version 2.0"
""" The license for the module """
import os
import sys
import setuptools
BASE_PATH = os.path.realpath(__file__)
BASE_DIR = os.path.dirname(BASE_PATH)
SRC_DIR = os.path.join(BASE_DIR, "src")
NETIUS_DIR = os.path.join(SRC_DIR, "netius")
sys.path.insert(0, SRC_DIR)
sys.path.insert(0, NETIUS_DIR)
import netius.common
def read_file(path):
if not os.path.exists(path):
return None
file = open(path, "r")
try:
return file.read()
finally:
file.close()
netius.common.ensure_setup()
setuptools.setup(
name="netius",
version="1.20.4",
author="Hive Solutions Lda.",
author_email="[email protected]",
description="Netius System",
license="Apache License, Version 2.0",
keywords="netius net infrastructure wsgi",
url="http://netius.hive.pt",
zip_safe=False,
packages=[
"netius",
"netius.adapters",
"netius.auth",
"netius.base",
"netius.clients",
"netius.common",
"netius.examples",
"netius.extra",
"netius.middleware",
"netius.mock",
"netius.pool",
"netius.servers",
"netius.servers.runners",
"netius.sh",
"netius.test",
],
test_suite="netius.test",
package_dir={"": os.path.normpath("src")},
package_data={
"netius": ["*.pyi", "base/extras/*", "extra/extras/*", "servers/extras/*"]
},
classifiers=[
"Development Status :: 5 - Production/Stable",
"Topic :: Utilities",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.0",
"Programming Language :: Python :: 3.1",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
],
long_description=read_file("README.rst"),
)