-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
executable file
·60 lines (50 loc) · 2.57 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
#!/usr/bin/env python3
# This source file is part of Obozrenie
# Copyright 2015 Artem Vorotnikov
# For more information, see https://github.com/obozrenie/obozrenie
# Obozrenie is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 3, as
# published by the Free Software Foundation.
# Obozrenie 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 Obozrenie. If not, see <http://www.gnu.org/licenses/>.
import os
from distutils.core import setup
from babel.messages import frontend as babel
from obozrenie.global_settings import VERSION
data_files = ['README.md', 'requirements.txt', 'COPYING']
data_dir = 'assets'
for directory, _, filenames in os.walk(data_dir):
dest = directory[len(data_dir) + 1:]
if filenames:
files = []
for filename in filenames:
filename = os.path.join(directory, filename)
files.append(filename)
data_files.append((os.path.join('share', dest), files))
app_info = {'name': 'Obozrenie',
'version': VERSION,
'description': 'Simple and easy to use game server browser',
'long_description': open('README.md').read(),
'author': 'Artem Vorotnikov',
'author_email': '[email protected]',
'url': 'https://github.com/obozrenie/obozrenie',
'license': open('COPYING').read(),
'requires': open('requirements.txt').read().strip().split('\n'),
'packages': ['obozrenie', 'obozrenie.adapters', 'obozrenie.proxies'],
'package_dir': {'obozrenie': 'obozrenie', 'obozrenie.adapters': 'obozrenie/adapters', 'obozrenie.proxies': 'obozrenie/proxies'},
'data_files': data_files,
'cmdclass': {'compile_catalog': babel.compile_catalog,
'extract_messages': babel.extract_messages,
'init_catalog': babel.init_catalog,
'update_catalog': babel.update_catalog},
'classifiers': ['License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Topic :: Games/Entertainment',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Utilities',
'Programming Language :: Python :: 3']
}
setup(**app_info)