From 5c0edb2e3a217746a4220da6f805d62b8a79f8a3 Mon Sep 17 00:00:00 2001 From: Ben Donnelly Date: Tue, 6 Feb 2024 11:24:40 +0000 Subject: [PATCH] fix(build): revert to use defined deps in toml using dynamic dependencies did not work, they were not installed when using the agent in another app. Add build step in make to build the wheel locally for local testing. --- Makefile | 6 ++++++ pyproject.toml | 11 ++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 07fe739..80f385c 100644 --- a/Makefile +++ b/Makefile @@ -33,6 +33,12 @@ lint: .PHONY: flake flake: lint +.PHONY: build +build: + rm -Rf $(ROOT_DIR)/dist + + python -m build $(ROOT_DIR) + .PHONY: check-python-vars check-python-vars: ifndef TWINE_USER diff --git a/pyproject.toml b/pyproject.toml index fcd34db..5a03271 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -28,7 +28,12 @@ classifiers = [ ] dynamic = [ "version", - "dependencies" +] + +dependencies = [ + "grpcio>=1.51.3", + "deep-proto>=1.0.5", + "protobuf>=3.20.3" ] [tool.hatch.build.targets.sdist] @@ -44,10 +49,6 @@ packages = ["src/deep"] [tool.hatch.version] path = "src/deep/version.py" -# read dependencies from reuirements.txt -[tool.setuptools.dynamic] -dependencies = {file = ["requirements.txt"]} - [tool.pytest.ini_options] pythonpath = [ "./src",