Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
6 changes: 3 additions & 3 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ build:
python: "3"
python:
install:
- method: pip
path: .
extra_requirements:
- method: uv
command: sync
groups:
- docs
sphinx:
builder: html
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ install-sdist: dist ## Install from source distribution

.PHONY: test-install
test-install: ## Install with test dependencies
$(ENV) $(PIP_INSTALL) -e .[test]
$(ENV) $(PIP_INSTALL) -e . --group test

.PHONY: check
check:
Expand Down
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,12 @@ You must use your real name (sorry, no pseudonyms, and no anonymous contribution

### Development

The project requires a Linux OS to work. To set up a DEV environment use tox (or
directly the make targets). You can use Docker to run the test suite on non Linux as in
(you can parametrize tox by passing additional arguments at the end):
pytest-memray runs wherever [Memray](https://github.com/bloomberg/memray) is supported
(Linux and macOS). To set up a development environment on either platform, use tox (or
the Make targets directly).

On other platforms you can run the test suite in Docker (you can parametrize tox by
passing additional arguments at the end):

```shell
docker-compose run --rm test tox
Expand Down
45 changes: 24 additions & 21 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,46 +22,49 @@ dependencies = [
"pytest>=7.2",
"memray>=1.12",
]
optional-dependencies.docs = [
dynamic = ["version"]
classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: MacOS",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Software Development :: Debuggers",
]

[project.entry-points.pytest11]
memray = "pytest_memray.plugin"

[dependency-groups]
docs = [
"furo>=2022.12.7",
"sphinx>=6.1.3",
"sphinx-argparse>=0.4",
"sphinx-inline-tabs>=2022.1.2b11",
"sphinxcontrib-programoutput>=0.17",
"towncrier>=22.12",
]
optional-dependencies.lint = [
lint = [
"black==24.8.0",
"ruff==0.12.7",
"isort==5.13.2",
"mypy==1.14.1",
]
optional-dependencies.test = [
test = [
"anyio>=4.4.0",
"covdefaults>=2.2.2",
"pytest>=7.2",
"coverage>=7.0.5",
"flaky>=3.7",
"pytest-xdist>=3.1",
]
dynamic = ["version"]
classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Software Development :: Debuggers",
]

[project.entry-points.pytest11]
memray = "pytest_memray.plugin"

[tool.hatch]
build.dev-mode-dirs = ["src"]
Expand Down
10 changes: 5 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ envlist =
py38
docs
lint
requires = tox>=4.2
requires = tox>=4.4

[testenv]
description =
Expand All @@ -22,7 +22,7 @@ setenv =
COVERAGE_FILE = {toxworkdir}/.coverage.{envname}
VIRTUALENV_NO_SETUPTOOLS = true
VIRTUALENV_NO_WHEEL = true
extras =
dependency_groups =
test
commands =
make check
Expand All @@ -41,15 +41,15 @@ setenv =
VIRTUALENV_NO_SETUPTOOLS = false
VIRTUALENV_NO_WHEEL = false
basepython = python3.10
extras =
dependency_groups =
docs
commands =
make docs

[testenv:lint]
description = lint code in {basepython}
basepython = python3.8
extras =
dependency_groups =
lint
commands =
make lint
Expand All @@ -73,7 +73,7 @@ description = generate a development environment
setenv =
{[testenv:docs]setenv}
basepython = python3.10
extras =
dependency_groups =
docs
lint
test
Expand Down