-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
81 lines (69 loc) · 2.64 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
[tool.poetry]
name = "hychan48-google-foobar-2023-q4"
version = "0.2.2"
description = "JC's Google Foobar Journey - 2023 Q4"
homepage = "https://github.com/hychan48/google-foobar-2023-q4"
repository = "https://github.com/hychan48/google-foobar-2023-q4"
keywords = ["google", "foobar", "python"]
authors = ["JC <[email protected]>"]
readme = "README.md"
# https://python-poetry.org/docs/pyproject/#readme
license = "AGPL-3.0"
# wheell name
# google_foobar_2023_q4-0.2.0-py3-none-any.whl
# i might need to add 'namespace' to it. but let's try with just pipx / poetry with github first
packages = [
# Not an ideal name for the package
{ include = "levels" },
{ include = "cli" },
# has subpackages in a way. maybe should change the naming of this
# regret not linking to the commit instead of main
# we'll see
]
# optimize package size later
# exclude = ["my_package/excluded.py"]
# for pypi:
# https://pypi.org/classifiers/
classifiers = [
"Environment :: Console",
"Topic :: Scientific/Engineering :: Mathematics",
"Intended Audience :: Education",
"Natural Language :: English",
"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
# "Topic :: Software Development :: Build Tools",
# "Topic :: Software Development :: Libraries :: Python Modules"
]
#[tool.poetry.urls]
#"Bug Tracker" = "https://github.com/python-poetry/poetry/issues"
# https://python-poetry.org/docs/pyproject/#scripts
[tool.poetry.scripts]
# hychan48-google-foobar-2023-q4="cli:fire_cake"
hychan48-cake-is-not-a-lie="cli:fire_cake"
pytest-cake="cli:pytest_cake"
pytest-bf="cli:pytest_knight_bfs"
hychan48-dont-get-volunteered="cli:fire_knight_bfs"
#hychan48-cake-is-not-a-lie= { reference = "levels.q1.src.solution:solution", type = "console" }
#devtest = { reference = "mypackage:test.run_tests", extras = ["test"], type = "console" }
# Dev scripts
# pytest-q1="python -m pytest levels/q1/tests/solutions_test.py"
# test-solutions = "pytest levels/q1/tests/solutions_test.py" # doesnt work
[tool.poetry.dependencies]
# github action covers only 3.9, 3.10, 3.11
python = ">=3.9,<3.13"
#python = "^3.11"
fire = "^0.5.0"
[tool.poetry.group.dev.dependencies]
pytest = "^8.0.2"
# pytest = "^7.4.3"
# jupyter = "^1.0.0" # revisit... it's throwing dependabot and i'm not using it yet
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
# ahh so, i was missing package in poetry... so hmm try removing this and see if it works
pythonpath = [
# "src", "src2",
"levels",# needed to run pytest
# "levels/q1/tests/solutions_test.py",
# "levels/q2/tests/solutions_test.py",
]