Skip to content

Commit

Permalink
Specify test dependencies using poetry
Browse files Browse the repository at this point in the history
So they are pinned and much easier to discover.

Fixes #466.
  • Loading branch information
legoktm committed Jan 3, 2025
1 parent 0433b45 commit cf12fa7
Show file tree
Hide file tree
Showing 4 changed files with 150 additions and 10 deletions.
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ SHELL := /bin/bash

.PHONY: lint
lint:
@ruff check .
@ruff format --check .
@poetry run ruff check .
@poetry run ruff format --check .

.PHONY: fix
fix:
@ruff check . --fix
@ruff format .
@poetry run ruff check . --fix
@poetry run ruff format .

.PHONY: install-deps
install-deps: ## Install initial wheel building dependencies
Expand All @@ -28,11 +28,11 @@ build-wheels: ## Builds the wheels and adds them to the wheels subdirectory

.PHONY: test
test: ## Run simple test suite (skips reproducibility checks)
pytest -v tests/test_update_requirements.py tests/test_utils.py
poetry run pytest -v tests/test_update_requirements.py tests/test_utils.py

.PHONY: reprotest
reprotest: ## Runs only reproducibility tests for .whl files
pytest -vvs tests/test_reproducible_wheels.py
poetry run pytest -vvs tests/test_reproducible_wheels.py

.PHONY: help
help: ## Prints this message and exits
Expand Down
129 changes: 129 additions & 0 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,21 @@ name = "securedrop-builder"
version = "0.1.0"
requires-python = ">=3.9"

[tool.poetry]
name = "securedrop-builder"
version = "0.1.0"
description = ""
authors = []

[tool.poetry.dependencies]
python = ">=3.11"

[tool.poetry.group.dev.dependencies]
pytest = "*"
pytest-mock = "*"
ruff = "*"
virtualenv = "<16"

[tool.ruff]
line-length = 100

Expand Down
4 changes: 0 additions & 4 deletions test-requirements.txt

This file was deleted.

0 comments on commit cf12fa7

Please sign in to comment.