-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
109 lines (103 loc) · 3.67 KB
/
pyproject.toml
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
[tool.poetry]
name = "tanki"
version = "0.1.0"
description = "Dendy tanks inspired survival game."
repository = "https://github.com/pkulev/tanki"
authors = ["Pavel Kulyov <[email protected]>"]
license = "MIT"
readme = "README.org"
keywords = ["hy", "lisp", "raylib", "game"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: MIT License",
"Topic :: Games/Entertainment :: Side-Scrolling/Arcade Games",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Lisp",
]
include = ["assets"]
[tool.poetry.scripts]
tanki = "tanki.__main__:main"
[tool.poetry.dependencies]
python = ">=3.9,<3.11"
hy = "^0.24.0"
raylib = "^4.0.0"
hyrule = "^0.2"
[tool.poetry.dev-dependencies]
jedhy = "^1"
HyREPL = "^0.1.1"
Nuitka = "^0.6.17"
pyinstaller = "^4.5.1"
# TODO FIXME: this failes installation
# poetry-exec-plugin = "^0.3.2"
[tool.poetry-exec-plugin.commands]
build-macos = """\
pyinstaller --onedir \
--noconsole \
--noconfirm \
--clean \
--workpath .temp \
--distpath build/macos \
--name thetanki \
--additional-hooks-dir pyinstaller-hooks \
--add-data 'tanki/game.hy:tanki' \
--add-data 'tanki/background.hy:tanki' \
--add-data 'tanki/player.hy:tanki' \
--add-data 'tanki/level.hy:tanki' \
--add-data 'tanki/common.hy:tanki' \
--add-data 'tanki/obstacles.hy:tanki' \
--add-data 'tanki/ui.hy:tanki' \
--add-data 'assets:assets' \
--collect-all raylib \
--collect-all pyray \
tanki/__main__.py \
"""
run-macos = "build/macos/thetanki/thetanki"
build-linux = """\
pyinstaller --onedir \
--noconsole \
--noconfirm \
--clean \
--workpath .temp \
--distpath build/linux \
--name thetanki \
--additional-hooks-dir pyinstaller-hooks \
--add-data 'tanki/game.hy:tanki' \
--add-data 'tanki/background.hy:tanki' \
--add-data 'tanki/player.hy:tanki' \
--add-data 'tanki/level.hy:tanki' \
--add-data 'tanki/common.hy:tanki' \
--add-data 'tanki/obstacles.hy:tanki' \
--add-data 'tanki/ui.hy:tanki' \
--add-data 'assets:assets' \
--collect-all raylib \
--collect-all pyray \
tanki/__main__.py \
"""
run-linux = "build/linux/thetanki/thetanki"
build-windwos = """\
pyinstaller --onedir \
--noconsole \
--noconfirm \
--clean \
--workpath .temp \
--distpath build/linux \
--name thetanki \
--additional-hooks-dir pyinstaller-hooks \
--add-data 'tanki/game.hy;tanki' \
--add-data 'tanki/background.hy;tanki' \
--add-data 'tanki/player.hy;tanki' \
--add-data 'tanki/level.hy;tanki' \
--add-data 'tanki/common.hy;tanki' \
--add-data 'tanki/obstacles.hy;tanki' \
--add-data 'tanki/ui.hy;tanki' \
--add-data 'assets;assets' \
--collect-all raylib \
--collect-all pyray \
tanki/__main__.py \
"""
run-windows = "build/windows/thetanki/thetanki"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"