Skip to content
Open
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
3 changes: 2 additions & 1 deletion .github/workflows/ci-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ jobs:
python -m venv .venv
.venv/Scripts/python -m pip install --upgrade pip
test -f LICENSE || cp ../LICENSE LICENSE
.venv/Scripts/python -m pip install -e '.[dev]'
.venv/Scripts/python -m pip install -r requirements-dev.lock
.venv/Scripts/python -m pip install -e . --no-deps --no-build-isolation
.venv/Scripts/python -m pytest --cov=zerobus --cov-report html --cov-report xml tests

fmt:
Expand Down
10 changes: 6 additions & 4 deletions python/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,14 @@ dev:
$(PYTHON) -m venv .venv
$(VENV) -m pip install --upgrade pip
@test -f LICENSE || cp ../LICENSE LICENSE
$(VENV) -m pip install -e '.[dev]'
$(VENV) -m pip install -r requirements-dev.lock
$(VENV) -m pip install -e . --no-deps --no-build-isolation

lock-dev:
@test -d .venv39 || python3.9 -m venv .venv39
@test -f LICENSE || cp ../LICENSE LICENSE
$(VENV) -m pip install pip-tools
$(VENV) -m pip-compile --generate-hashes --output-file requirements-dev.lock requirements-dev.in
.venv39/bin/pip install --quiet --upgrade pip pip-tools
.venv39/bin/pip-compile --generate-hashes --strip-extras --no-emit-index-url --allow-unsafe --output-file requirements-dev.lock requirements-dev.in

install:
$(VENV) -m pip install -e .
Expand All @@ -66,7 +68,7 @@ clean:
rm -rf dist *.egg-info .pytest_cache build htmlcov

clean-all: clean clean-rust
rm -rf .venv
rm -rf .venv .venv39

fmt:
$(VENV) -m black zerobus examples tests
Expand Down
6 changes: 3 additions & 3 deletions python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ dependencies = [

[project.optional-dependencies]
arrow = [
"pyarrow>=14.0.0",
"pyarrow>=14.0.0,<20.0",
]
dev = [
# Build tools
Expand All @@ -46,8 +46,8 @@ dev = [
"pytest",
"pytest-cov",
"pytest-xdist>=3.6.1,<4.0",
"pytest-asyncio",
"pyarrow>=14.0.0",
"pytest-asyncio>=0.21,<1.0",
"pyarrow>=14.0.0,<20.0",
]

[tool.maturin]
Expand Down
29 changes: 25 additions & 4 deletions python/requirements-dev.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,25 @@
# Input file for pip-compile. Run `make lock-dev` to regenerate requirements-dev.lock.
# The lock file pins every transitive dependency to an exact version with hashes,
# so CI installs are reproducible and hash-verified.
-e .[dev]
# Runtime dependencies (from pyproject.toml [project.dependencies])
protobuf>=4.25.0,<7.0
requests>=2.28.1,<3

# Build system
maturin>=1.5,<2.0

# Dev dependencies (from pyproject.toml [project.optional-dependencies.dev])
wheel
build
grpcio-tools>=1.60.0,<2.0
pip-tools>=7.0,<8
black
pycodestyle
autoflake
isort
pytest
pytest-cov
pytest-xdist>=3.6.1,<4.0
pytest-asyncio>=0.21,<1.0
pyarrow>=14.0.0,<20.0

importlib-metadata<8.2
tomli
exceptiongroup
Loading
Loading