Skip to content

Commit 2fc96b6

Browse files
committed
build: Move 'dev' and 'docs' to dependency-groups where they belong.
1 parent 8c1789a commit 2fc96b6

2 files changed

Lines changed: 23 additions & 25 deletions

File tree

.readthedocs.yaml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,19 @@ version: 2
66

77
# Set the version of Python and other tools you might need
88
build:
9-
os: ubuntu-22.04
10-
tools:
11-
python: "3.12"
9+
os: ubuntu-24.04
10+
tools:
11+
python: "3.14"
12+
jobs:
13+
install:
14+
- pip install --upgrade pip
15+
- pip install --group 'docs'
1216

1317
# Build documentation in the docs/ directory with Sphinx
1418
sphinx:
15-
configuration: docs/conf.py
19+
configuration: docs/conf.py
1620

1721
# If using Sphinx, optionally build your docs in additional formats such as PDF
1822
# formats:
1923
# - pdf
2024

21-
# Optionally declare the Python requirements required to build your docs
22-
python:
23-
install:
24-
- method: pip
25-
path: .
26-
extra_requirements:
27-
- docs

pyproject.toml

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,6 @@ Changelog = "https://multipart.readthedocs.io/en/latest/changelog.html"
3737
Source = "https://github.com/defnull/multipart"
3838
Issues = "https://github.com/defnull/multipart/issues"
3939

40-
[project.optional-dependencies]
41-
dev = [
42-
"pytest",
43-
"pytest-cov",
44-
"build",
45-
"twine",
46-
"tox",
47-
"tox-uv",
48-
]
49-
docs = [
50-
"sphinx>=8,<9",
51-
"sphinx-autobuild",
52-
]
53-
5440
[tool.flit.sdist]
5541
include = [
5642
"test/*.py",
@@ -78,3 +64,18 @@ description = "Run type check on code base"
7864
deps = ["mypy>=1.11.2", "types-cachetools>=5.5.0.20240820", "types-chardet>=5.0.4.6"]
7965
commands = [["mypy", "multipart.py"]]
8066

67+
[dependency-groups]
68+
dev = [
69+
"pytest",
70+
"pytest-cov",
71+
"build",
72+
"twine",
73+
"tox",
74+
"tox-uv",
75+
]
76+
docs = [
77+
"sphinx>=8,<9",
78+
"sphinx-autobuild",
79+
]
80+
81+

0 commit comments

Comments
 (0)