Skip to content

Commit e8d06a0

Browse files
committed
CCM-12616: convert poetry to pip
1 parent aa80734 commit e8d06a0

File tree

4 files changed

+30
-12
lines changed

4 files changed

+30
-12
lines changed

utils/event-publisher-py/Makefile

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,24 @@
1-
.PHONY: install install-dev test coverage clean build
1+
.PHONY: install install-dev test coverage clean
22

33
install:
4-
poetry install
4+
pip install -r requirements.txt
55

6-
install-dev:
7-
poetry install --with dev
6+
install-dev: install
7+
pip install -r requirements-dev.txt
88

99
test:
10-
poetry run pytest event_publisher/__tests__/ -v
10+
cd ../.. && pytest utils/event-publisher-py/event_publisher/__tests__/ -v
1111

1212
coverage:
13-
poetry run pytest event_publisher/__tests__/ \
14-
--cov=event_publisher \
15-
--cov-report=html:htmlcov \
13+
cd ../.. && pytest utils/event-publisher-py/event_publisher/__tests__/ \
14+
--cov=utils/event-publisher-py/event_publisher \
15+
--cov-config=utils/event-publisher-py/pytest.ini \
16+
--cov-report=html:utils/event-publisher-py/htmlcov \
1617
--cov-report=term-missing \
17-
--cov-report=xml:coverage.xml \
18+
--cov-report=xml:utils/event-publisher-py/coverage.xml \
1819
--cov-branch
1920

2021
clean:
2122
rm -rf dist/ .coverage htmlcov/ .pytest_cache/ coverage.xml
2223
find . -type d -name __pycache__ -exec rm -rf {} +
2324
find . -type f -name '*.pyc' -delete
24-
25-
build:
26-
poetry build

utils/event-publisher-py/pytest.ini

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,13 @@ python_classes = Test*
44
python_functions = test_*
55
testpaths = event_publisher/__tests__
66
addopts = -v --tb=short
7+
8+
[coverage:run]
9+
relative_files = True
10+
omit =
11+
*/event_publisher/__tests__/*
12+
*/test_*.py
13+
*/__pycache__/*
14+
*/venv/*
15+
*/.venv/*
16+
*/env/*
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
-r requirements.txt
2+
pytest>=8.0.0
3+
pytest-cov>=6.0.0
4+
pytest-mock>=3.14.0
5+
moto>=5.0.0
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
boto3>=1.40.70
2+
pydantic>=2.0.0
3+
structlog>=21.5.0
4+
mesh-client>=3.2.3
5+
pyopenssl>=24.0.0

0 commit comments

Comments
 (0)