Skip to content

Commit 251a421

Browse files
authored
Merge pull request #5 from technophylax/fix-ghcr-badges
chore: align python 3.12, split dev deps, docs cleanup
2 parents 0c90c37 + a8f40ec commit 251a421

File tree

7 files changed

+13
-7
lines changed

7 files changed

+13
-7
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ jobs:
2727
- name: Install dependencies
2828
run: |
2929
python -m pip install --upgrade pip
30-
python -m pip install -r requirements.txt
31-
python -m pip install ruff cyclonedx-bom
30+
python -m pip install -r requirements.txt -r requirements-dev.txt
3231
- name: Lint
3332
run: ruff check .
3433
- name: Tests

CONTRIBUTING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Thanks for your interest in OCPA! This project welcomes issues, PRs, and securit
1010
python -m venv .venv
1111
source .venv/bin/activate
1212
pip install -r requirements.txt
13+
pip install -r requirements-dev.txt
1314
```
1415

1516
## Tests and lint

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.11-slim
1+
FROM python:3.12-slim
22

33
ENV PYTHONDONTWRITEBYTECODE=1 \
44
PYTHONUNBUFFERED=1 \

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,17 @@ PYTHON ?= python3.12
22
VENV ?= .venv
33
ACTIVATE = source $(VENV)/bin/activate
44

5-
.PHONY: venv deps demo demo-calls lint test scenarios
5+
.PHONY: venv deps deps-dev demo demo-calls lint test scenarios
66

77
venv:
88
$(PYTHON) -m venv $(VENV)
99

1010
deps: venv
1111
$(ACTIVATE) && pip install -r requirements.txt
1212

13+
deps-dev: deps
14+
$(ACTIVATE) && pip install -r requirements-dev.txt
15+
1316
demo:
1417
$(ACTIVATE) && bash scripts/demo.sh
1518

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ dependencies = [
2424
]
2525

2626
[project.optional-dependencies]
27-
dev = ["pytest>=7.4.0", "pytest-cov>=4.1.0", "ruff>=0.6.0", "pip-audit>=2.7.3"]
27+
dev = ["pytest>=7.4.0", "pytest-cov>=4.1.0", "ruff>=0.6.0", "pip-audit>=2.7.3", "cyclonedx-bom>=7.2.0"]
2828

2929
[tool.ruff]
3030
line-length = 140

requirements-dev.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pytest>=7.4.0
2+
pytest-cov>=4.1.0
3+
ruff>=0.6.0
4+
pip-audit>=2.7.3
5+
cyclonedx-bom>=7.2.0

requirements.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ PyYAML>=6.0.0
33
opentelemetry-api>=1.22.0
44
opentelemetry-sdk>=1.22.0
55
opentelemetry-exporter-otlp>=1.22.0
6-
pytest>=7.4.0
7-
pytest-cov>=4.1.0
86
fastapi>=0.110.0
97
uvicorn[standard]>=0.23.0
108
prometheus-client>=0.20.0

0 commit comments

Comments
 (0)