"""
GRU-SAC Predictor Package
"""

import os
import logging
from datetime import datetime

# --- Versioning and Build Info (Task 0.3) --- #
__version__ = "3.0.0-dev" # Placeholder version

# Attempt to get Git SHA using the utility function
try:
    # Need to adjust path if run_id is in utils
    from .utils.run_id import get_git_sha
    GIT_SHA = get_git_sha(short=False) or "unknown"
except ImportError:
    logging.warning("Could not import get_git_sha from utils. GIT_SHA set to 'unknown'.")
    GIT_SHA = "unknown"
except Exception as e:
    logging.warning(f"Error getting git sha for package info: {e}")
    GIT_SHA = "unknown"
    
# Placeholder for build date (could be set during build process)
BUILD_DATE = datetime.now().strftime("%Y-%m-%d %H:%M:%S UTC") 
# --- End Versioning --- #

# Configure logging for the package? 
# Or assume it's configured by the entry point (run.py)
# Setting up a null handler to avoid "No handler found" warnings if no 
# configuration is done by the application.
logging.getLogger(__name__).addHandler(logging.NullHandler())

# Expose key components (optional, depends on desired package structure)
# from .trading_pipeline import TradingPipeline
# from .sac_trainer import SACTrainer 