Skip to content

Commit

Permalink
Fix DIPDUP_DEBUG, add __version__ to template
Browse files Browse the repository at this point in the history
  • Loading branch information
droserasprout committed Oct 17, 2023
1 parent b5077d6 commit 9079075
Show file tree
Hide file tree
Showing 36 changed files with 98 additions and 63 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog], and this project adheres to [Semantic Versioning].

## [Unreleased]

### Fixed

- Fixed `DIPDUP_DEBUG` not being applied to the package logger.

## [7.0.2] - 2023-10-10

### Added
Expand Down
87 changes: 43 additions & 44 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,6 @@ shell = """
python scripts/update_demos.py
python scripts/init_demos.py
pdm run fmt
# FIXME: Run isort once to fix import sorting (bug in ruff)
isort . --force-single-line -l 120
pdm run lint
"""

Expand Down
10 changes: 5 additions & 5 deletions requirements.dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ asyncpg==0.28.0
attrs==23.1.0
babel==2.12.1
bitarray==2.8.1
black==23.9.1
black==23.10.0
certifi==2023.7.22
chardet==5.2.0
charset-normalizer==3.2.0
Expand Down Expand Up @@ -59,7 +59,7 @@ mypy-extensions==1.0.0
numpy==1.25.2
openapi-schema-validator==0.4.4
openapi-spec-validator==0.5.7
orjson==3.9.8
orjson==3.9.9
packaging==23.1
parsimonious==0.9.0
pathable==0.4.3
Expand Down Expand Up @@ -94,8 +94,8 @@ rfc3339-validator==0.1.4
rlp==3.0.0
ruamel-yaml==0.17.35
ruamel-yaml-clib==0.2.7
ruff==0.0.292
sentry-sdk==1.31.0
ruff==0.1.0
sentry-sdk==1.32.0
setuptools==68.2.2
six==1.16.0
sniffio==1.3.0
Expand All @@ -121,7 +121,7 @@ typing-extensions==4.7.1
tzlocal==5.0.1
urllib3==2.0.6
watchdog==3.0.0
web3==6.10.0
web3==6.11.0
websocket-client==1.6.1
websockets==10.4
yarl==1.9.2
8 changes: 4 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ asyncclick==8.1.3.4
asyncpg==0.28.0
attrs==23.1.0
bitarray==2.8.1
black==23.9.1
black==23.10.0
certifi==2023.7.22
chardet==5.2.0
charset-normalizer==3.2.0
Expand Down Expand Up @@ -50,7 +50,7 @@ mypy-extensions==1.0.0
numpy==1.25.2
openapi-schema-validator==0.4.4
openapi-spec-validator==0.5.7
orjson==3.9.8
orjson==3.9.9
packaging==23.1
parsimonious==0.9.0
pathable==0.4.3
Expand All @@ -77,7 +77,7 @@ rfc3339-validator==0.1.4
rlp==3.0.0
ruamel-yaml==0.17.35
ruamel-yaml-clib==0.2.7
sentry-sdk==1.31.0
sentry-sdk==1.32.0
setuptools==68.2.2
six==1.16.0
sniffio==1.3.0
Expand All @@ -90,6 +90,6 @@ tortoise-orm==0.19.3
typing-extensions==4.7.1
tzlocal==5.0.1
urllib3==2.0.6
web3==6.10.0
web3==6.11.0
websockets==10.4
yarl==1.9.2
1 change: 1 addition & 0 deletions src/demo_auction/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from enum import IntEnum


from dipdup import fields
from dipdup.models import Model

Expand Down
1 change: 1 addition & 0 deletions src/demo_auction/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Generated by DipDup 7.0.2+editable
[project]
name = "demo_auction"
version = "0.0.1"
Expand Down
1 change: 1 addition & 0 deletions src/demo_big_maps/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

from dipdup import fields

from dipdup.models import Model


Expand Down
1 change: 1 addition & 0 deletions src/demo_big_maps/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Generated by DipDup 7.0.2+editable
[project]
name = "demo_big_maps"
version = "0.0.1"
Expand Down
1 change: 1 addition & 0 deletions src/demo_blank/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Generated by DipDup 7.0.2+editable
[project]
name = "demo_blank"
version = "0.0.1"
Expand Down
1 change: 1 addition & 0 deletions src/demo_dao/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

from dipdup import fields

from dipdup.models import Model


Expand Down
1 change: 1 addition & 0 deletions src/demo_dao/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Generated by DipDup 7.0.2+editable
[project]
name = "demo_dao"
version = "0.0.1"
Expand Down
1 change: 1 addition & 0 deletions src/demo_dex/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from enum import IntEnum

from dipdup import fields

from dipdup.models import Model


Expand Down
1 change: 1 addition & 0 deletions src/demo_dex/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Generated by DipDup 7.0.2+editable
[project]
name = "demo_dex"
version = "0.0.1"
Expand Down
1 change: 1 addition & 0 deletions src/demo_domains/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

from dipdup import fields

from dipdup.models import Model


Expand Down
1 change: 1 addition & 0 deletions src/demo_domains/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Generated by DipDup 7.0.2+editable
[project]
name = "demo_domains"
version = "0.0.1"
Expand Down
1 change: 1 addition & 0 deletions src/demo_events/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Generated by DipDup 7.0.2+editable
[project]
name = "demo_events"
version = "0.0.1"
Expand Down
1 change: 1 addition & 0 deletions src/demo_evm_events/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Generated by DipDup 7.0.2+editable
[project]
name = "demo_evm_events"
version = "0.0.1"
Expand Down
5 changes: 3 additions & 2 deletions src/demo_factories/handlers/on_transfer.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
from dipdup.context import HandlerContext
from dipdup.models.tezos_tzkt import TzktTransaction

import demo_factories.models as models
from demo_factories.types.token.tezos_parameters.transfer import TransferParameter
from demo_factories.types.token.tezos_storage import TokenStorage
from dipdup.context import HandlerContext
from dipdup.models.tezos_tzkt import TzktTransaction


async def on_transfer(
Expand Down
3 changes: 2 additions & 1 deletion src/demo_factories/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@

from dipdup import fields
from dipdup.models import Model

from dipdup.models import Model


class Transfer(Model):
id = fields.IntField(pk=True)
Expand Down
1 change: 1 addition & 0 deletions src/demo_factories/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Generated by DipDup 7.0.2+editable
[project]
name = "demo_factories"
version = "0.0.1"
Expand Down
1 change: 1 addition & 0 deletions src/demo_head/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Generated by DipDup 7.0.2+editable
[project]
name = "demo_head"
version = "0.0.1"
Expand Down
2 changes: 2 additions & 0 deletions src/demo_nft_marketplace/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from enum import IntEnum


from dipdup import fields

from dipdup.models import Model


Expand Down
1 change: 1 addition & 0 deletions src/demo_nft_marketplace/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Generated by DipDup 7.0.2+editable
[project]
name = "demo_nft_marketplace"
version = "0.0.1"
Expand Down
3 changes: 2 additions & 1 deletion src/demo_raw/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from dipdup import fields
from dipdup.models import Model

from dipdup.models.tezos_tzkt import TzktOperationType
from dipdup.models import Model


class Operation(Model):
Expand Down
1 change: 1 addition & 0 deletions src/demo_raw/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Generated by DipDup 7.0.2+editable
[project]
name = "demo_raw"
version = "0.0.1"
Expand Down
1 change: 1 addition & 0 deletions src/demo_token/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from dipdup import fields

from dipdup.models import Model


Expand Down
1 change: 1 addition & 0 deletions src/demo_token/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Generated by DipDup 7.0.2+editable
[project]
name = "demo_token"
version = "0.0.1"
Expand Down
1 change: 1 addition & 0 deletions src/demo_token_transfers/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from dipdup import fields

from dipdup.models import Model


Expand Down
1 change: 1 addition & 0 deletions src/demo_token_transfers/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Generated by DipDup 7.0.2+editable
[project]
name = "demo_token_transfers"
version = "0.0.1"
Expand Down
Loading

0 comments on commit 9079075

Please sign in to comment.