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
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,14 @@ def run(self, arguments: argparse.Namespace, simulate: bool, **kwargs) -> None:
venv_directory = automation_configuration.python_development_configuration.venv_directory
python_system_executable = python_helpers.resolve_system_python_executable()
python_environment = PythonEnvironment(python_system_executable, venv_directory)
pip_configuration_file_path = "pip.conf"

package_collection_for_pip: List[str] = []
for package in automation_configuration.python_development_configuration.package_collection:
package_collection_for_pip.append(package.path_to_sources + "[dev]")

logger.info("Setting up python virtual environment (Path: %s)", venv_directory)
python_environment.setup_virtual_environment(simulate = simulate)
python_environment.setup_virtual_environment(pip_configuration_file_path, simulate = simulate)
python_environment.install_python_packages_for_development(package_collection_for_pip, simulate = simulate)


Expand Down
47 changes: 0 additions & 47 deletions Sources/website/benjaminhamon_developer_website/logging_helpers.py

This file was deleted.

5 changes: 3 additions & 2 deletions Sources/website/benjaminhamon_developer_website/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
import sys
from typing import Optional

from benjaminhamon_standard_extensions.logging import logging_helpers

from benjaminhamon_developer_website import application_factory
from benjaminhamon_developer_website import logging_helpers


logger = logging.getLogger("Main")
Expand Down Expand Up @@ -50,7 +51,7 @@ def create_argument_parser() -> argparse.ArgumentParser:

def configure_logging(arguments: argparse.Namespace):
message_format = "{asctime} [{levelname}][{name}] {message}"
date_format = "%Y-%m-%dT%H:%M:%S"
date_format = logging_helpers.date_format_iso

log_stream_verbosity: str = "info"
log_file_path: Optional[str] = None
Expand Down
1 change: 1 addition & 0 deletions Sources/website/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ classifiers = [
]

dependencies = [
"benjaminhamon-standard-extensions ~= 1.0.1",
"Flask ~= 3.1.1",
"prometheus-flask-exporter ~= 0.23.2",
]
Expand Down
Loading