-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
88 lines (70 loc) · 1.94 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
[build-system]
requires = ["hatchling>=1.25", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "ArmaQDL"
authors = [
{ name="Jonpas", email="jonpas33@gmail.com" },
]
description = "Python program for quick launching various mod development configurations for Arma through a simple CLI."
readme = "README.md"
license = "MIT"
requires-python = ">=3.8"
classifiers = [
"Environment :: Console",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: MIT License",
"Operating System :: Microsoft :: Windows",
"Topic :: Software Development :: Build Tools",
]
dependencies = [
"platformdirs",
"toml",
]
dynamic = [
"version",
]
[project.urls]
"Homepage" = "https://github.com/jonpas/Arma-QDL"
"Bug Tracker" = "https://github.com/jonpas/Arma-QDL/issues"
[project.scripts]
armaqdl = "armaqdl.armaqdl:main"
## Hatch
[tool.hatch.build.targets.sdist]
exclude = [
"/.github",
]
[tool.hatch.build.targets.wheel]
packages = ["armaqdl", "config"]
[tool.hatch.build.targets.wheel.sources]
"config" = "armaqdl/config"
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "armaqdl/_version.py"
## Hatch environments
[tool.hatch.envs.default]
dependencies = [
"pytest",
"flake8",
]
[tool.hatch.envs.default.scripts]
test = "pytest {args:tests}"
lint = "flake8 {args:.}"
[tool.hatch.envs.static]
template = "static"
dependencies = [
"pyinstaller",
]
dev-mode = false
[tool.hatch.envs.static.scripts]
bundle = "pyinstaller armaqdl/__main__.py --add-data armaqdl;armaqdl --add-data config;config -n armaqdl --onefile"
[tool.hatch.envs.static.overrides]
platform.linux.scripts = [
"bundle=pyinstaller armaqdl/__main__.py --add-data armaqdl:armaqdl --add-data config:config -n armaqdl --onefile",
]