forked from Snaipe/Tequila
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·70 lines (57 loc) · 2.34 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
"""
Tequila: a command-line Minecraft server manager written in python
Copyright (C) 2014 Snaipe
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program 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
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
import os
from os.path import realpath, dirname, join
from setuptools import setup
import sys
if sys.version_info < (3, 0, 0):
print('Tequila is not supported on versions lower than 3.x, sorry !')
print('Your version of python is %s, try installing it with a more recent version.'
% '.'.join(map(str, sys.version_info[:3])))
sys.exit(1)
def get_resources():
project_root = dirname(realpath(__file__))
package_root = join(project_root, 'tequila')
resources = []
for root, dirs, files in os.walk(join(package_root, 'resources')):
root = os.path.relpath(root, package_root)
for file in files:
resources.append(join(root, file))
return resources
setup(
name="tequila",
version="1.1.1",
author="Snaipe",
author_email="franklinmathieu@gmail.com",
description="A minecraft server manager",
license="GPLv3",
keywords="minecraft server manager",
url="http://github.com/Snaipe/tequila",
packages=['tequila', 'tequila.server.wrapper', 'tequila.server.group', 'tequila.server', 'tequila.network', 'tequila.version'],
package_data={'tequila': get_resources()},
requires=['baker'],
scripts=['bin/tequila'],
data_files=[('/etc/tequila/', ['config/tequila.conf'])],
include_package_data=True,
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Operating System :: POSIX",
"Programming Language :: Python :: 3.4",
"Topic :: System :: Systems Administration",
"Topic :: Utilities",
],
)