moved utils into src layout
This commit is contained in:
1 parent
4e736efa2e
commit
5e935338bc
9 files changed
+11
-11
No files matched your search
File renamed without changes.
@@ -6,7 +6,7 @@ from functools import cache
|
|||||||
from enum import Enum
|
from enum import Enum
|
||||||
from logging.handlers import RotatingFileHandler
|
from logging.handlers import RotatingFileHandler
|
||||||
|
|
||||||
from monitor_utils.constants import (
|
from monitor_utils.src.constants import (
|
||||||
PROXIES_PATH,
|
PROXIES_PATH,
|
||||||
PROJECT_ROOT,
|
PROJECT_ROOT,
|
||||||
PRODUCTION_BOT_TOKEN,
|
PRODUCTION_BOT_TOKEN,
|
||||||
File renamed without changes.
@@ -7,8 +7,8 @@ from motor.motor_asyncio import AsyncIOMotorClient, AsyncIOMotorCollection
|
|||||||
from pymongo import UpdateOne
|
from pymongo import UpdateOne
|
||||||
from pymongo.errors import PyMongoError
|
from pymongo.errors import PyMongoError
|
||||||
|
|
||||||
from monitor_utils.models import Product
|
from monitor_utils.src.models import Product
|
||||||
from monitor_utils.constants import STATUS_PENDING, MONGO_DATABASE_NAME, MONGO_URL
|
from monitor_utils.src.constants import STATUS_PENDING, MONGO_DATABASE_NAME, MONGO_URL
|
||||||
|
|
||||||
LOGGER = logging.getLogger(__name__)
|
LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
File renamed without changes.
File renamed without changes.
@@ -7,21 +7,21 @@ import aiohttp
|
|||||||
from curl_cffi.requests import AsyncSession
|
from curl_cffi.requests import AsyncSession
|
||||||
from motor.motor_asyncio import AsyncIOMotorCollection
|
from motor.motor_asyncio import AsyncIOMotorCollection
|
||||||
|
|
||||||
from monitor_utils.constants import (
|
from monitor_utils.src.constants import (
|
||||||
EXPECTED_TASK_ERRORS,
|
EXPECTED_TASK_ERRORS,
|
||||||
FLAG_WEBHOOK_MAP,
|
FLAG_WEBHOOK_MAP,
|
||||||
BUCKET_WEBHOOK_MAP,
|
BUCKET_WEBHOOK_MAP,
|
||||||
)
|
)
|
||||||
from monitor_utils.config import get_config, is_production, DevelopmentMode
|
from monitor_utils.src.config import get_config, is_production, DevelopmentMode
|
||||||
from monitor_utils.models import (
|
from monitor_utils.src.models import (
|
||||||
Product,
|
Product,
|
||||||
ProductMetadata,
|
ProductMetadata,
|
||||||
ProductTiming,
|
ProductTiming,
|
||||||
PricingInfo,
|
PricingInfo,
|
||||||
AvailabilityInfo,
|
AvailabilityInfo,
|
||||||
)
|
)
|
||||||
from monitor_utils.sessions import get_base_session, get_tls_session
|
from monitor_utils.src.sessions import get_base_session, get_tls_session
|
||||||
from monitor_utils.database import get_collection
|
from monitor_utils.src.database import get_collection
|
||||||
|
|
||||||
LOGGER = logging.getLogger(__name__)
|
LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
@@ -21,8 +21,8 @@ from tenacity import (
|
|||||||
wait_fixed,
|
wait_fixed,
|
||||||
)
|
)
|
||||||
|
|
||||||
from monitor_utils.config import get_proxies
|
from monitor_utils.src.config import get_proxies
|
||||||
from monitor_utils.constants import (
|
from monitor_utils.src.constants import (
|
||||||
CLIENT_TIMEOUT,
|
CLIENT_TIMEOUT,
|
||||||
TIMEOUT_SECONDS,
|
TIMEOUT_SECONDS,
|
||||||
CLIENT_IDENTIFIERS,
|
CLIENT_IDENTIFIERS,
|
||||||
+1
-1
@@ -18,5 +18,5 @@ dependencies = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
[tool.setuptools.packages.find]
|
[tool.setuptools.packages.find]
|
||||||
where = ["."]
|
where = ["src"]
|
||||||
include = ["monitor_utils*"]
|
include = ["monitor_utils*"]
|
||||||
Reference in new issue
Block a user