Skip to content

Commit

Permalink
Allow to use git+https deps
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kus committed Dec 18, 2024
1 parent 1cc6e1d commit 7453f73
Show file tree
Hide file tree
Showing 6 changed files with 211 additions and 209 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
FROM python:3.12-slim-bookworm AS compile-image
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN apt update && \
apt install -y build-essential && \
apt install -y build-essential git && \
python -m venv --without-pip --system-site-packages /opt/dipdup && \
mkdir -p /opt/dipdup/src/dipdup/ && \
touch /opt/dipdup/src/dipdup/__init__.py && \
Expand Down
316 changes: 158 additions & 158 deletions pdm.lock

Large diffs are not rendered by default.

63 changes: 32 additions & 31 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,37 +48,38 @@ classifiers = [
"Typing :: Typed",
]

[tool.poetry.dependencies]
aiohttp = "~3.10"
aiolimiter = "~1.1"
anyio = "~4.4"
appdirs = "~1.4"
APScheduler = "~3.10"
async-lru = "~2.0"
asyncpg = "~0.29"
click = "~8.1"
datamodel-code-generator = "~0.26"
eth-abi = "~5.0"
lru-dict = "~1.3"
orjson = "~3.10"
prometheus-client = "~0.20"
pycryptodome = "~3.20"
pydantic = "~2.9"
pyhumps = "~3.8"
pysignalr = "~1.0"
python-dotenv = "~1.0"
python-json-logger = "~2.0"
ruamel.yaml = "~0.18.6"
sentry-sdk = "~2.16"
sqlparse = "~0.5"
starknet-py = { git = "https://github.com/software-mansion/starknet.py", rev = "a8d73538d409d9ef7c756921e43d10925f2838bc" }
strict-rfc3339 = "~0.7"
survey = "~5.4"
tabulate = "~0.9"
# NOTE: Heavily patched; don't update without testing.
tortoise-orm = "0.21.7"
uvloop = "~0.20"
web3 = "~7.2"
dependencies = [
"aiohttp~=3.10",
"aiolimiter~=1.1",
"anyio~=4.4",
"appdirs~=1.4",
"APScheduler~=3.10",
"async-lru~=2.0",
"asyncpg~=0.29",
"click~=8.1",
"datamodel-code-generator~=0.26",
"eth-abi~=5.0",
"lru-dict~=1.3",
"orjson~=3.10",
"prometheus-client~=0.20",
"pycryptodome~=3.20",
"pydantic~=2.10.3",
"pyhumps~=3.8",
"pysignalr~=1.0",
"python-dotenv~=1.0",
"python-json-logger~=2.0",
"ruamel.yaml~=0.18.6",
"sentry-sdk~=2.16",
"sqlparse~=0.5",
"starknet-py @ git+https://github.com/software-mansion/starknet.py@a8d73538d409d9ef7c756921e43d10925f2838bc",
"strict-rfc3339~=0.7",
"survey~=5.4",
"tabulate~=0.9",
# NOTE: Heavily patched; don't update without testing.
"tortoise-orm==0.21.7",
"uvloop~=0.20",
"web3~=7.2",
]

[project.optional-dependencies]
migrations = [
Expand Down
32 changes: 16 additions & 16 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,26 @@ annotated-types==0.7.0
anyio==4.7.0
appdirs==1.4.4
apscheduler==3.11.0
argcomplete==3.5.0
argcomplete==3.5.2
asgiref==3.8.1
async-lru==2.0.4
asyncpg==0.30.0
attrs==24.2.0
bitarray==2.9.2
bitarray==3.0.0
black==24.10.0
certifi==2024.8.30
charset-normalizer==3.3.2
ckzg==2.0.0
ckzg==2.0.1
click==8.1.7
colorama==0.4.6; platform_system == "Windows" or sys_platform == "win32"
crypto-cpp-py==1.4.4
crypto-cpp-py==1.4.5
cytoolz==0.12.3; implementation_name == "cpython"
datamodel-code-generator==0.26.3
dnspython==2.6.1; python_version ~= "3.11"
datamodel-code-generator==0.26.4
dnspython==2.7.0; python_version ~= "3.11"
ecdsa==0.18.0
email-validator==2.2.0; python_version ~= "3.11"
eth-abi==5.1.0
eth-account==0.13.3
eth-account==0.13.4
eth-hash[pycryptodome]==0.7.0
eth-keyfile==0.8.1
eth-keys==0.5.1
Expand All @@ -51,7 +51,7 @@ marshmallow==3.22.0
marshmallow-dataclass==8.7.0
marshmallow-oneofschema==3.1.1
mpmath==1.3.0
msgpack==1.0.8
msgpack==1.1.0
multidict==6.0.5
mypy-extensions==1.0.0
orjson==3.10.12
Expand All @@ -71,33 +71,33 @@ pysignalr==1.1.0
python-dotenv==1.0.1
python-json-logger==2.0.7
pytz==2024.1
pyunormalize==15.1.0
pyunormalize==16.0.0
pywin32==306; platform_system == "Windows" or sys_platform == "win32" or os_name == "nt"
pyyaml==6.0.2
regex==2024.7.24
regex==2024.11.6
requests==2.32.3
rlp==4.0.1
ruamel-yaml==0.18.6
ruamel-yaml-clib==0.2.8; platform_python_implementation == "CPython" and python_version < "3.13"
ruamel-yaml-clib==0.2.12; platform_python_implementation == "CPython" and python_version < "3.13"
sentry-sdk==2.19.2
six==1.16.0
sniffio==1.3.1
sqlparse==0.5.3
git+https://github.com/software-mansion/starknet.py@a8d73538d409d9ef7c756921e43d10925f2838bc#egg=starknet-py
starknet-py @ git+https://github.com/software-mansion/starknet.py@a8d73538d409d9ef7c756921e43d10925f2838bc
strict-rfc3339==0.7
survey==5.4.2
sympy==1.11.1
sympy==1.12.1
tabulate==0.9.0
toolz==0.12.1; implementation_name == "pypy" or implementation_name == "cpython"
tortoise-orm==0.21.7
typeguard==4.0.1
types-requests==2.32.0.20240712
types-requests==2.32.0.20241016
typing-extensions==4.12.2
typing-inspect==0.9.0
tzdata==2024.1; platform_system == "Windows"
tzdata==2024.2; platform_system == "Windows"
tzlocal==5.2
urllib3==2.2.2
uvloop==0.21.0
web3==7.6.0
websockets==12.0
websockets==13.1
yarl==1.18.0
5 changes: 3 additions & 2 deletions src/demo_starknet_events/handlers/on_transfer.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
from decimal import Decimal

from demo_starknet_events import models as models
from demo_starknet_events.types.stark_usdt.starknet_events.transfer import TransferPayload
from dipdup.context import HandlerContext
from dipdup.models.starknet import StarknetEvent
from tortoise.exceptions import DoesNotExist

from demo_starknet_events import models as models
from demo_starknet_events.types.stark_usdt.starknet_events.transfer import TransferPayload


async def on_transfer(
ctx: HandlerContext,
Expand Down
2 changes: 1 addition & 1 deletion src/dipdup/indexes/starknet_events/matcher.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import logging
from collections import deque, OrderedDict
from collections import deque
from collections.abc import Iterable
from typing import Any

Expand Down

0 comments on commit 7453f73

Please sign in to comment.