-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
155 lines (134 loc) · 2.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
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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
[build-system]
build-backend = "hatchling.build"
requires = ["hatchling", "hatch-vcs>=0.3", "setuptools-scm>=7.1"]
[project]
dependencies = [
"rich",
"click",
"readchar",
"typer",
"pydantic-settings >=2.3",
"tomli"
]
description = "A base CLI entrypoint supporting Anaconda CLI plugins"
dynamic = ["version"]
license = {text = "BSD-3-Clause"}
name = "anaconda-cli-base"
readme = "README.md"
requires-python = ">=3.8"
# If anaconda-client is installed last, which defines the script entrypoint "anaconda"
# this plugin is used to redirect the user back to anaconda-cli-base app.
[project.entry-points."anaconda_cli.main"]
anaconda = "anaconda_cli_base.cli:app"
[project.optional-dependencies]
dev = [
"mypy",
"pytest",
"pytest-cov",
"pytest-mock",
"tox",
"types-requests"
]
publish = [
"build",
"twine",
"wheel"
]
[project.scripts]
anaconda = "anaconda_cli_base.cli:app"
[tool.distutils.bdist_wheel]
universal = true
[tool.hatch.build.hooks.vcs]
version-file = "src/anaconda_cli_base/_version.py"
[tool.hatch.build.targets.sdist]
include = [
"/src/anaconda_cli_base",
"/pyproject.toml",
"/tests",
"/Makefile",
"/environment-dev.yml"
]
[tool.hatch.version]
source = "vcs"
[tool.mypy]
disallow_untyped_defs = true
files = [
"src/**/*.py",
"tests/**/*.py"
]
python_version = "3.8"
[[tool.mypy.overrides]]
ignore_errors = true
module = "*._version"
[[tool.mypy.overrides]]
ignore_missing_imports = true
module = "binstar_client.*"
[[tool.mypy.overrides]]
ignore_missing_imports = true
module = "rich_click.*"
[tool.pytest.ini_options]
addopts = [
"--cov=anaconda_cli_base",
"--color=yes",
"--cov-append",
"--cov-branch",
"--cov-report=html",
"--cov-report=html:./cov_html",
"--cov-report=term-missing",
"--cov-report=xml",
"--durations=5",
"-vv"
]
markers = [
"integration: Integration tests requiring a browser"
]
norecursedirs = ["env", "envs", ".tox"]
[tool.ruff]
target-version = "py38"
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py38,py39,py310,py311,py312,mypy
isolated_build = True
[gh-actions]
python =
3.8: py38, mypy
3.9: py39, mypy
3.10: py310, mypy
3.11: py311
3.12: py312
[testenv]
deps =
mypy
pytest
pytest-cov
pytest-mock
typer !=0.12.2
conda_deps =
anaconda-client >=1.12.2
conda_channels =
anaconda-cloud
defaults
conda-forge
commands = pytest -m "not integration"
[testenv:mypy]
deps =
mypy
pytest
pytest-cov
pytest-mock
types-requests
typer
rich
commands = mypy
"""
[tool.vendoring]
destination = "src/anaconda_cli_base/_vendor/"
namespace = "anaconda_cli_base._vendor"
patches-dir = "tools/vendoring/patches"
protected-files = ["__init__.py", "requirements.txt"]
requirements = "src/anaconda_cli_base/_vendor/requirements.txt"
[tool.vendoring.license.directories]
setuptools = "pkg_resources"
[tool.vendoring.license.fallback-urls]
readchar = "https://raw.githubusercontent.com/magmax/python-readchar/master/LICENCE"