forked from Tuxemon/Tuxemon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
58 lines (52 loc) · 1.84 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
#!/usr/bin/env python
from setuptools import setup
import fnmatch
import os
# Find all the python modules
modules = []
matches = []
for root, dirnames, filenames in os.walk('tuxemon'):
for filename in fnmatch.filter(filenames, '__init__.py'):
matches.append(os.path.join(root, filename))
for match in matches:
match = match.replace(os.sep+"__init__.py", "")
match = match.replace(os.sep, ".")
modules.append(match)
# Get the version from the README file.
with open("README.md", "r") as f:
VERSION = f.readline().split(" ")[-1].replace("\n", "")
# Get the dependencies from requirements.text
with open("requirements.txt", "r") as f:
REQUIREMENTS = f.read().splitlines()
# Configure the setuptools
setup(name='tuxemon',
version=VERSION,
description='Open source monster-fighting RPG',
author='William Edwards',
author_email='[email protected]',
maintainer='Tuxemon',
maintainer_email='[email protected]',
url='https://www.tuxemon.org',
include_package_data=True,
packages=modules,
license="GPLv3",
long_description='https://github.com/Tuxemon/Tuxemon',
install_requires=REQUIREMENTS,
entry_points={
'gui_scripts': [
'tuxemon = tuxemon.__main__:main'
]
},
classifiers=[
"Intended Audience :: End Users/Desktop",
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Topic :: Games/Entertainment",
"Topic :: Games/Entertainment :: Role-Playing",
]
)