forked from PyPlanet/PyPlanet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
85 lines (68 loc) · 2.35 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
import os
import re
from setuptools import setup, find_packages
def long_description():
try:
return open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()
except IOError:
return None
def read_version():
with open(os.path.join(os.path.dirname(__file__), 'pyplanet', '__init__.py')) as handler:
return re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", handler.read(), re.M).group(1)
def read_requirements(filename):
with open(os.path.join(os.path.dirname(__file__), filename), 'r') as handler:
return [line for line in handler.readlines() if not line.startswith('#') and not line.startswith('-') and not len(line) <= 1]
EXCLUDE_FROM_PACKAGES = [
'pyplanet.bin',
'pyplanet.conf.app_template',
'pyplanet.conf.project_template',
'docs*',
'env*',
'tests*',
'apps*',
'settings*',
]
PKG = 'pyplanet'
######
setup(
name=PKG,
version=read_version(),
description='Maniaplanet Server Controller',
long_description=long_description(),
keywords='maniaplanet, controller, plugins, apps',
license='GNU General Public License v3 (GPLv3)',
packages=find_packages(exclude=EXCLUDE_FROM_PACKAGES),
package_data={
'pyplanet/tests': ['pyplanet/tests/**.txt', 'pyplanet/tests/**.json', 'pyplanet/tests/**.xml', 'pyplanet/tests/**.j2']
},
install_requires=read_requirements('requirements.txt'),
tests_require=read_requirements('requirements-dev.txt'),
extras_require={},
test_suite='tests',
include_package_data=True,
scripts=['pyplanet/bin/pyplanet'],
entry_points={'console_scripts': [
'pyplanet = pyplanet.core.management:execute_from_command_line',
]},
author='Tom Valk',
author_email='[email protected]',
url='http://pypla.net/',
classifiers=[
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Development Status :: 4 - Beta',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3 :: Only',
'Operating System :: OS Independent',
'Topic :: Internet',
'Topic :: Software Development',
'Topic :: Games/Entertainment',
'Topic :: Software Development :: Libraries :: Application Frameworks',
'Topic :: Software Development :: Libraries :: Python Modules',
'Intended Audience :: System Administrators',
'Intended Audience :: Developers',
],
zip_safe=False,
)