Skip to content

Commit 823b906

Browse files
committed
nested folders
1 parent db30b8a commit 823b906

22 files changed

Lines changed: 36 additions & 23 deletions

‎docker-compose.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ services:
2020
- ./tests:/tests
2121
entrypoint:
2222
- python
23-
- /src/allocation/redis_pubsub.py
23+
- /src/allocation/entrypoints/redis_eventconsumer.py
2424

2525
api:
2626
image: allocation-image
@@ -32,7 +32,7 @@ services:
3232
- API_HOST=api
3333
- REDIS_HOST=redis
3434
- PYTHONDONTWRITEBYTECODE=1
35-
- FLASK_APP=allocation/flask_app.py
35+
- FLASK_APP=allocation/entrypoints/flask_app.py
3636
- FLASK_DEBUG=1
3737
- PYTHONUNBUFFERED=1
3838
volumes:

‎src/allocation/adapters/__init__.py‎

Whitespace-only changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
)
55
from sqlalchemy.orm import mapper, relationship
66

7-
from allocation import model
7+
from allocation.domain import model
88

99

1010
metadata = MetaData()
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
from dataclasses import asdict
44
import redis
55

6-
from allocation import config, events
6+
from allocation import config
7+
from allocation.domain import events
78

89
logger = logging.getLogger(__name__)
910

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from typing import Set
22
import abc
3-
from allocation import model, orm
3+
from allocation.domain import model
4+
from allocation.adapters import orm
45

56

67

‎src/allocation/domain/__init__.py‎

Whitespace-only changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from dataclasses import dataclass
33
from datetime import date
44
from typing import Optional, List, Set
5-
from allocation import commands, events
5+
from . import commands, events
66

77

88
class Product:

0 commit comments

Comments
 (0)