-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpyproject.toml
89 lines (75 loc) · 2.18 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "pybites_search"
version = "1.0.0"
authors = [
{ name="Pybites", email="[email protected]" },
]
description = "A search engine for Pybites content"
readme = "README.md"
requires-python = ">=3.9"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
dependencies = [
"python-decouple",
"requests",
"requests-cache",
"typer[all]",
]
[project.optional-dependencies]
test = [
"tox",
"pytest",
"pytest-cov",
]
tools = [
"flake8",
"black",
"isort",
"pyupgrade",
"mypy",
"pre-commit",
]
[project.urls]
"Homepage" = "https://github.com/pybites/search"
"Bug Tracker" = "https://github.com/pybites/search/issues"
[project.scripts]
search = "pybites_search.cli:app"
[tool.hatch.build]
only-packages = true
[tool.pixi.project]
channels = ["conda-forge"]
platforms = ["linux-64", "osx-64", "osx-arm64", "win-64"]
[tool.pixi.pypi-dependencies]
pybites_search = { path = ".", editable = true }
[tool.pixi.tasks]
# `pixi run` allows to add arguments after the pixi task name in cli.
all = "search all"
article = "search article"
bite = "search bite"
podcast = "search podcast"
tip = "search tip"
video = "search video"
# One test command that runs all tests in different environments, like tox would do.
test = { depends-on = ["test39", "test310", "test311"] }
# Let pixi install 3 different python versions to test on.
[tool.pixi.feature.python39]
dependencies = {python = "3.9"}
tasks = { test39 = "pytest --cov=pybites_search --cov-report=term-missing" }
[tool.pixi.feature.python310]
dependencies = {python = "3.10"}
tasks = { test310 = "pytest --cov=pybites_search --cov-report=term-missing" }
[tool.pixi.feature.python311]
dependencies = {python = "3.11"}
tasks = { test311 = "pytest --cov=pybites_search --cov-report=term-missing" }
[tool.pixi.environments]
default = { solve-group = "default" }
tools = { features = ["tools"], solve-group = "default" }
test39 = { features = ["test", "python39"], solve-group = "default" }
test310 = {features = ["test", "python310"]}
test311 = {features = ["test", "python311"]}