-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
76 lines (73 loc) · 2.87 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
import os
from setuptools import setup
README_PATH = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'Readme.md')
with open(README_PATH) as readme_file:
README = readme_file.read()
# fix paths in Readme (PyPI has different base folder than GitHub)
WRONG_PATH = "src=\"./images"
CORRECT_PATH = "src=\"https://github.com/7Magic7Mike7/Qrogue/raw/master/images"
start_index = 0
while True:
try:
path_index = README.index(WRONG_PATH, start_index)
start_index = path_index + len(WRONG_PATH)
README = README[:path_index] + CORRECT_PATH + README[start_index:]
except ValueError:
break # no more paths were found
setup(
name='qrogue', # Name of package folder
packages=[
'qrogue',
'qrogue.util',
'qrogue.util.config',
'qrogue.game',
'qrogue.game.logic',
'qrogue.game.logic.base',
'qrogue.game.logic.collectibles',
'qrogue.game.logic.actors',
'qrogue.game.logic.actors.controllables',
'qrogue.game.logic.actors.puzzles',
'qrogue.game.world',
'qrogue.game.world.navigation',
'qrogue.game.world.tiles',
'qrogue.game.world.map',
'qrogue.game.world.dungeon_generator',
'qrogue.game.world.dungeon_generator.dungeon_parser',
'qrogue.game.world.dungeon_generator.wave_function_collapse',
'qrogue.graphics',
'qrogue.graphics.rendering',
'qrogue.graphics.popups',
'qrogue.graphics.widgets',
'qrogue.management',
'qrogue.management.save_grammar',
],
package_data={"data": ["qrogue/data"]},
include_package_data=True,
version='1.0',
license='MIT', # Chose a license from here: https://help.github.com/articles/licensing-a-repository
description='QRogue is an educational Quantum Computing puzzle game inspired by the classical game Rogue.',
long_description=README,
long_description_content_type="text/markdown",
author='Michael Artner',
author_email='michael.artner@hotmail.de',
url='https://github.com/7Magic7Mike7/Qrogue',
download_url='https://github.com/7Magic7Mike7/Qrogue/releases/tag/1.0', # link to Release on GitHub
keywords=['Quantum Computing', 'Gamification', 'Video Game', 'PyCUI'],
install_requires=[
'antlr4-python3-runtime==4.13.2',
'numpy==1.22.3',
'py-cui==0.1.4',
'qiskit==0.34.2',
'qiskit-aer==0.10.3',
],
classifiers=[
'Development Status :: 5 - Production/Stable', # Chose either "3 - Alpha", "4 - Beta" or "5 - Production/Stable"
'Intended Audience :: Education',
'Intended Audience :: Science/Research',
'Topic :: Games/Entertainment :: Puzzle Games',
'Programming Language :: Python :: 3.8',
],
entry_points={
'console_scripts': ['qrogue=qrogue.qrogue:start_qrogue'],
}
)