forked from SkyTemple/skytemple-files
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
56 lines (50 loc) · 2.08 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
import os
from setuptools import setup, find_packages
# README read-in
from os import path
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
# END README read-in
def get_resources(file_exts):
directory = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'skytemple_files', '_resources')
paths = []
for (path, directories, filenames) in os.walk(directory):
for filename in filenames:
if any(filename.endswith(file_ext) for file_ext in file_exts):
paths.append(os.path.join('_resources', os.path.relpath(os.path.join('..', path, filename), directory)))
return paths
setup(
name='skytemple-files',
version='0.1.0a9',
packages=find_packages(),
package_data={'skytemple_files': get_resources(['.xml', '.asm', '.rst', 'LICENSE', '.txt', 'md'])},
description='Python library to edit the ROM of Pokémon Mystery Dungeon Explorers of Sky (EU/US)',
long_description=long_description,
long_description_content_type='text/x-rst',
url='https://github.com/SkyTemple/skytemple-files/',
install_requires=[
'ndspy >= 3.0.0',
'Pillow >= 6.1.0',
'appdirs >= 1.4.0',
'explorerscript >= 0.0.5',
'skytemple-rust >= 0.0.1',
'tilequant >= 0.0.1',
'typing-extensions == 3.7.4.2; python_version<"3.7"',
'pyobjc==6.2.1; sys_platform == "darwin"'
],
entry_points='''
[console_scripts]
skytemple_export_maps=skytemple_files.export_maps:main
skytemple_dungeon_randomizer=skytemple_files.dungeon_randomizer:main
skytemple_ground_actor_randomizer=skytemple_files.ground_actor_randomizer:main
''',
classifiers=[
'Development Status :: 3 - Alpha',
'Programming Language :: Python',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8'
],
)