-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
139 lines (120 loc) · 2.97 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "f1fantasyoptimizer"
version = "1.0.0"
authors = [
{ name = "Dipricyn", email = "5783337+Dipricyn@users.noreply.github.com" },
]
description = "Find the best team to pick in F1 Fantasy."
readme = "README.md"
requires-python = ">=3.10"
keywords = [
"scraper",
"scraping",
"gui",
"constraint-programming",
"f1-fantasy",
"fantasy-f1",
]
classifiers = [
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
"Intended Audience :: End Users/Desktop",
]
dynamic = ["dependencies", "optional-dependencies"]
[project.scripts]
f1fantasyoptimizer = "f1fantasyoptimizer.__main__:main"
[project.gui-scripts]
f1fantasyoptimizer-gui = "f1fantasyoptimizer.ui.gui:main"
[project.urls]
"Homepage" = "https://github.com/Dipricyn/F1FantasyOptimizer"
"Bug Tracker" = "https://github.com/Dipricyn/F1FantasyOptimizer/issues"
[tool.setuptools.dynamic]
dependencies = { file = ["requirements.txt"] }
[tool.setuptools.dynamic.optional-dependencies]
test = { file = ["requirements.test.txt"] }
[tool.setuptools.package-data]
"*" = ["res/*.png"]
[tool.setuptools.packages.find]
where = ["."]
include = ["f1fantasyoptimizer*"]
exclude = ["*tests*"]
[tool.coverage.run]
branch = true
# Append machine name, process id, and random number to data file name so coverage can be
# run in parallel environments, e.g. in tox.
parallel = true
source = [
"f1fantasyoptimizer/"
]
omit = [
".venv/*",
"*/tests/*",
]
disable_warnings = ["no-data-collected"]
[tool.coverage.html]
directory = "logs/coverage/html"
[tool.coverage.json]
output = "logs/coverage/coverage.json"
[tool.coverage.xml]
output = "logs/coverage/coverage.xml"
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
'@(abc\.)?abstractmethod',
]
[tool.coverage.paths]
source = [
"f1fantasyoptimizer/",
"*/site-packages/",
]
others = [
"f1fantasyoptimizer/",
"*/f1fantasyoptimizer",
]
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py{310},coverage
isolated_build = true
[gh-actions]
python =
3.10: py310
[testenv]
deps = -r./requirements.test.txt
setenv =
COVERAGE_FILE=tox-.coverage.{envname}
commands =
python -m coverage run -p -m pytest
[testenv:test_scraper]
allowlist_externals =
sh
deps = -r./requirements.test.txt
setenv =
commands =
python -m pytest f1fantasyoptimizer/tests/test_scraper.py
[testenv:coverage]
depends = py{310}
allowlist_externals =
sh
deps = -r./requirements.test.txt
basepython = python3.10
setenv =
COVERAGE_FILE=tox-.coverage
COVERAGE_DEBUG=trace
COVERAGE_DEBUG_FILE=stdout
commands =
coverage debug data
coverage combine --debug=pathmap
coverage report -m --skip-covered
coverage json
sh -c 'mv -f tox-.coverage .coverage'
sh -c 'rm -f tox-.coverage'
parallel_show_output = true
"""