Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions hatch_build/cli.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import sys
from argparse import ArgumentParser
from enum import Enum
from logging import Formatter, StreamHandler, getLogger
from pathlib import Path
from typing import TYPE_CHECKING, Callable, Dict, List, Literal, Optional, Tuple, Type, Union, get_args, get_origin

from hatchling.cli.build import build_command
from pkn.logging import getSimpleLogger

if TYPE_CHECKING:
from pydantic import BaseModel
Expand All @@ -22,11 +21,7 @@

def _initlog(level: str = "WARNING"):
global _log
_log = getLogger(__name__)
_handler = StreamHandler(stream=sys.stderr)
_formatter = Formatter("[%(asctime)s][%(name)s][%(levelname)s]: %(message)s", datefmt="%Y-%m-%dT%H:%M:%S%z")
_handler.setFormatter(_formatter)
_log.addHandler(_handler)
_log = getSimpleLogger(__name__)
_log.setLevel(level)


Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ classifiers = [

dependencies = [
"hatchling>=1.14.1,<1.28",
"pkn>=0.3,<0.4",
]

[project.optional-dependencies]
Expand Down