-
Notifications
You must be signed in to change notification settings - Fork 8
/
pyproject.toml
149 lines (133 loc) · 4.37 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
[project]
name = "venvstacks"
version = "0.3.0.dev1"
description = "Use layered Python virtual environment stacks to share large dependencies"
authors = [
{name = "Alyssa Coghlan", email = "[email protected]"},
]
maintainers = [
{name = "LM Studio", email = "[email protected]"},
]
dependencies = [
# Environment package installation is run externally (from the build tools environment)
"pip>=24.1.1",
# PDM is used to install the base runtime environments for deployment
"pdm>=2.17.3",
# `uv pip compile` is used rather than `pip-compile` as it is faster and
# doesn't have to be installed into the target Python runtime environment.
# Due to https://github.com/astral-sh/uv/issues/2500 `uv` can't be used to
# replace `pip install`
# Due to https://github.com/astral-sh/uv/issues/2831 we're also not trying to
# replace `python -Im venv` with `uv venv` at this point since we want explicit
# control over whether files are symlinked or copied between the environments
"uv>=0.2.33",
# Typer is used for the CLI interface. Install 'rich-cli' extra for enhanced features.
"typer-slim>=0.12.4",
]
requires-python = ">=3.11"
readme = "README.md"
license = {text = "MIT"}
keywords = ["packaging", "dependency", "venv"]
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Build Tools",
"Typing :: Typed",
]
[project.optional-dependencies]
rich-cli = [
# Enable typer's enhanced functionality for local interactive use
"typer>=0.12.4",
]
[project.scripts]
venvstacks = "venvstacks.cli:main"
[project.urls]
Homepage = "https://github.com/lmstudio-ai/venvstacks"
Documentation = "https://venvstacks.lmstudio.ai/"
Issues = "https://github.com/lmstudio-ai/venvstacks/issues"
Changelog = "https://venvstacks.lmstudio.ai/changelog/"
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.pdm]
distribution = true
[tool.pdm.dev-dependencies]
dev = [
"tox>=4.16.0",
"tox-gh>=1.3.2",
"tox-pdm>=0.7.2",
"pytest>=8.3.1",
"ruff>=0.5.4",
"mypy>=1.11.0",
"pytest-subtests>=0.13.1",
"coverage[toml]>=7.6.4",
# Use exact pin for dev as runtime environments are sensitive to the exact pbs version
"pbs-installer==2024.10.10",
# Uses exact pin for dev as lock file regeneration is sensitive to the exact uv version
"uv==0.4.21",
"scriv[toml]>=1.5.1",
]
bootstrap = [
"pdm>=2.16.1",
]
docs = [
"sphinx>=8.1.3",
"furo>=2024.8.6",
]
[tool.pytest.ini_options]
# Allow skipping slow tests for local testing
addopts = "--strict-markers"
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"expected_output: tests to run when regenerating expected output",
]
# Warnings should only be emitted when being specifically tested
filterwarnings = ["error"]
# Make long diffs visible in pytest 8.3.3 and later
verbosity_assertions = 2
# Ensure test suite doesn't consume too much space in /tmp, while still allowing debugging
tmp_path_retention_policy = "failed"
tmp_path_retention_count = 1
[tool.coverage.run]
relative_files = true
source_pkgs = [
"venvstacks",
]
source = [
"tests/",
]
omit = [
# There is quite a bit of test support code that
# only runs to help diagnose failures in CI
"tests/support.py",
]
[tool.coverage.paths]
source = [
"src/",
"**/.tox/**/site-packages/",
]
[tool.ruff]
# Assume Python 3.11
target-version = "py311"
[tool.ruff.lint]
# Enable all `pydocstyle` rules, limiting to those that adhere to the
# Google convention via `convention = "google"`, below.
extend-select = ["D"]
# Disable `D105` (it's OK to skip writing docstrings for every magic method)
# Disable `D417` (not yet requiring documentation for every function parameter)
ignore = ["D105", "D417"]
[tool.ruff.lint.pydocstyle]
# https://sphinxcontrib-napoleon.readthedocs.io/en/latest/example_google.html#example-google
convention = "google"
[tool.ruff.lint.per-file-ignores]
# Skip checking docstrings in the test suite
"tests/**" = ["D"]
[tool.scriv]
version = "literal: pyproject.toml: project.version"
fragment_directory = "docs/changelog.d"
skip_fragments = "README[._]*"
ghrel_template = "file: ghrel_template.md.j2"