diff --git a/apps/hip-3-pusher/Dockerfile b/apps/hip-3-pusher/Dockerfile index 74284a267d..f1c9cb3ee3 100644 --- a/apps/hip-3-pusher/Dockerfile +++ b/apps/hip-3-pusher/Dockerfile @@ -30,4 +30,4 @@ RUN --mount=type=cache,target=/root/.cache/uv \ uv sync --locked --no-dev # Run the app by default -CMD ["uv", "run", "src/pusher/main.py", "--config", "config/config.toml"] +CMD ["uv", "run", "-m", "pusher.main", "--config", "config/config.toml"] diff --git a/apps/hip-3-pusher/config/config.toml b/apps/hip-3-pusher/config/config.toml index 9f8fc9ae36..db4380ffee 100644 --- a/apps/hip-3-pusher/config/config.toml +++ b/apps/hip-3-pusher/config/config.toml @@ -2,6 +2,7 @@ stale_price_threshold_seconds = 5 prometheus_port = 9090 [hyperliquid] +hyperliquid_ws_urls = ["wss://api.hyperliquid-testnet.xyz/ws"] market_name = "" market_symbol = "BTC" use_testnet = false @@ -11,7 +12,9 @@ enable_publish = false [kms] enable_kms = false -key_path = "/path/to/kms_key.txt" +key_path = "/path/to/aws_kms_key_id.txt" +access_key_id_path = "/path/to/aws_access_key_id.txt" +secret_access_key_path = "/path/to/aws_secret_access_key.txt" aws_region_name = "ap-northeast-1" [lazer] diff --git a/apps/hip-3-pusher/pyproject.toml b/apps/hip-3-pusher/pyproject.toml index fa22b3f798..76e587600f 100644 --- a/apps/hip-3-pusher/pyproject.toml +++ b/apps/hip-3-pusher/pyproject.toml @@ -12,10 +12,22 @@ dependencies = [ "opentelemetry-exporter-prometheus~=0.58b0", "opentelemetry-sdk~=1.37.0", "prometheus-client~=0.23.1", + "setuptools~=80.9", "tenacity~=9.1.2", "websockets~=15.0.1", + "wheel~=0.45.1", ] +[build-system] +requires = ["setuptools~=80.9", "wheel"] +build-backend = "setuptools.build_meta" + +[tool.setuptools] +package-dir = {"" = "src"} + +[tool.setuptools.packages.find] +where = ["src"] + [dependency-groups] dev = [ "pytest~=8.4.2", diff --git a/apps/hip-3-pusher/uv.lock b/apps/hip-3-pusher/uv.lock index 46da002e3b..497dac1534 100644 --- a/apps/hip-3-pusher/uv.lock +++ b/apps/hip-3-pusher/uv.lock @@ -330,7 +330,7 @@ wheels = [ [[package]] name = "hip-3-pusher" version = "0.1.4" -source = { virtual = "." } +source = { editable = "." } dependencies = [ { name = "boto3" }, { name = "cryptography" }, @@ -339,8 +339,10 @@ dependencies = [ { name = "opentelemetry-exporter-prometheus" }, { name = "opentelemetry-sdk" }, { name = "prometheus-client" }, + { name = "setuptools" }, { name = "tenacity" }, { name = "websockets" }, + { name = "wheel" }, ] [package.dev-dependencies] @@ -357,8 +359,10 @@ requires-dist = [ { name = "opentelemetry-exporter-prometheus", specifier = "~=0.58b0" }, { name = "opentelemetry-sdk", specifier = "~=1.37.0" }, { name = "prometheus-client", specifier = "~=0.23.1" }, + { name = "setuptools", specifier = "~=80.9" }, { name = "tenacity", specifier = "~=9.1.2" }, { name = "websockets", specifier = "~=15.0.1" }, + { name = "wheel", specifier = "~=0.45.1" }, ] [package.metadata.requires-dev] @@ -723,6 +727,15 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/48/f0/ae7ca09223a81a1d890b2557186ea015f6e0502e9b8cb8e1813f1d8cfa4e/s3transfer-0.14.0-py3-none-any.whl", hash = "sha256:ea3b790c7077558ed1f02a3072fb3cb992bbbd253392f4b6e9e8976941c7d456", size = 85712, upload-time = "2025-09-09T19:23:30.041Z" }, ] +[[package]] +name = "setuptools" +version = "80.9.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/18/5d/3bf57dcd21979b887f014ea83c24ae194cfcd12b9e0fda66b957c69d1fca/setuptools-80.9.0.tar.gz", hash = "sha256:f36b47402ecde768dbfafc46e8e4207b4360c654f1f3bb84475f0a28628fb19c", size = 1319958, upload-time = "2025-05-27T00:56:51.443Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/a3/dc/17031897dae0efacfea57dfd3a82fdd2a2aeb58e0ff71b77b87e44edc772/setuptools-80.9.0-py3-none-any.whl", hash = "sha256:062d34222ad13e0cc312a4c02d73f059e86a4acbfbdea8f8f76b28c99f306922", size = 1201486, upload-time = "2025-05-27T00:56:49.664Z" }, +] + [[package]] name = "six" version = "1.17.0" @@ -809,6 +822,15 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/fa/a8/5b41e0da817d64113292ab1f8247140aac61cbf6cfd085d6a0fa77f4984f/websockets-15.0.1-py3-none-any.whl", hash = "sha256:f7a866fbc1e97b5c617ee4116daaa09b722101d4a3c170c787450ba409f9736f", size = 169743, upload-time = "2025-03-05T20:03:39.41Z" }, ] +[[package]] +name = "wheel" +version = "0.45.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/8a/98/2d9906746cdc6a6ef809ae6338005b3f21bb568bea3165cfc6a243fdc25c/wheel-0.45.1.tar.gz", hash = "sha256:661e1abd9198507b1409a20c02106d9670b2576e916d58f520316666abca6729", size = 107545, upload-time = "2024-11-23T00:18:23.513Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/0b/2c/87f3254fd8ffd29e4c02732eee68a83a1d3c346ae39bc6822dcbcb697f2b/wheel-0.45.1-py3-none-any.whl", hash = "sha256:708e7481cc80179af0e556bbf0cc00b8444c7321e2700b8d8580231d13017248", size = 72494, upload-time = "2024-11-23T00:18:21.207Z" }, +] + [[package]] name = "win32-setctime" version = "1.2.0"