-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
72 lines (67 loc) · 2 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "gamedriver"
# See https://semantic-release.gitbook.io/semantic-release/support/faq#why-is-the-package.jsons-version-not-updated-in-my-repository
version = "0.0.0"
authors = [
{ name="Anderson Entwistle" },
]
description = "Lightweight cross-platform image matching tools focused on automation"
readme = "README.md"
keywords = [
"image matching",
"template matching",
"image detection",
"opencv",
"computer vision",
"automation",
"testing",
"game",
"simulation",
]
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
]
# Note that Python does not follow semver. Restrict them to v3 anyway. As for
# the minimum version, just choose the lowest version not yet end-of-life. Even
# if we support lower, there is no reason to expose ourselves to unreasonable
# potential maintenance burden.
requires-python = "~= 3.9"
dependencies = [
"numpy ~= 2.0",
"python-json-logger ~= 2.0",
]
[project.optional-dependencies]
# All is for us, so use headless OpenCV.
all = ["gamedriver[opencv-python-headless,dev]"]
# These are for users (not optional) - restrict them. Also, they should match.
# See https://stackoverflow.com/questions/78960966/is-there-a-way-to-specify-default-dependencies-or-dependencies-installed-only-i
opencv-python = ["opencv-python ~= 4.0"]
opencv-python-headless = ["opencv-python-headless ~= 4.0"]
# These are pinned for us in requirements.txt - no need to restrict them here.
dev = [
"build",
"coverage",
"matplotlib",
"pipdeptree",
"pip-tools",
"pytest",
"sphinx",
"sphinxcontrib-fulltoc",
"twine",
"ufmt",
"validate-pyproject[all]"
]
[project.urls]
Homepage = "https://github.com/aentwist/gamedriver"
Issues = "https://github.com/aentwist/gamedriver/issues"
[tool.hatch.build.targets.sdist]
include = [
"gamedriver",
]
[tool.usort.known]
first_party = ["gamedriver"]