Skip to content
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Better specify dependency markers
  • Loading branch information
madig committed May 6, 2025
commit 468873e7c5479eb29df04462d7012584234d6f3f
4 changes: 0 additions & 4 deletions Doc/docs-requirements.txt

This file was deleted.

24 changes: 17 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -103,16 +103,26 @@ pyftmerge = "fontTools.merge:main"
pyftsubset = "fontTools.subset:main"
ttx = "fontTools.ttx:main"

[tool.setuptools_scm]

[tool.setuptools.packages.find]
where = ["Lib/"]

[dependency-groups]
dev = [
"pytest>=3.0",
"tox>=2.5",
"bump2version>=0.5.6",
"sphinx>=1.5.5",
"mypy>=0.782",
"readme_renderer[md]>=43.0",
"black",
"black == 24.10.0 ; python_version >= '3.9'",
"mypy >= 0.782",
"pytest > 8.0.2",
"pytest-randomly",
"pytest-cov",
]
codecov = [
"codecov",
"coverage >= 4.3",
]
docs = [
"sphinx >= 8.1.3 ; python_version >= '3.10'",
"sphinx_rtd_theme >= 3.0.2 ; python_version >= '3.10'",
"reportlab >= 4.2.5",
"freetype-py >= 2.5.1",
]
21 changes: 11 additions & 10 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tox]
minversion = 3.0
minversion = 4.0
envlist = lint, py3{9,10,11,12,13}-cov, htmlcov
skip_missing_interpreters=true
skip_missing_interpreters = true

[testenv]
setenv =
Expand Down Expand Up @@ -38,19 +38,18 @@ commands =
coverage html

[testenv:lint]
deps =
-r dev-requirements.txt
runner = uv-venv-lock-runner
with_dev = true
skip_install = true
commands =
black --check --diff .
mypy

[testenv:codecov]
passenv = *
deps =
coverage>=4.3
runner = uv-venv-lock-runner
dependency_groups =
codecov
skip_install = true
ignore_outcome = true
commands =
coverage combine
Expand All @@ -69,8 +68,10 @@ commands =

[testenv:docs]
description = Build the documentation.
deps =
-r requirements.txt
-r Doc/docs-requirements.txt
runner = uv-venv-lock-runner
extras =
all
dependency_groups =
docs
commands =
sphinx-build -W -j auto Doc/source Doc/build
Loading