diff --git a/.github/workflows/basic-ci.yml b/.github/workflows/basic-ci.yml index ae6a889..67a5205 100644 --- a/.github/workflows/basic-ci.yml +++ b/.github/workflows/basic-ci.yml @@ -29,7 +29,10 @@ jobs: working-directory: ./backend_api_python run: | python -m pip install --upgrade pip - pip install -r requirements.txt + # Install dependencies, excluding Windows-only packages (MetaTrader5) + # MetaTrader5 is Windows-only and not available on Linux, so we filter it out + grep -v "MetaTrader5" requirements.txt > /tmp/requirements_ci.txt + pip install -r /tmp/requirements_ci.txt # Install dependencies to verify they are installable and enable import checks. - name: Python syntax check diff --git a/backend_api_python/requirements-windows.txt b/backend_api_python/requirements-windows.txt new file mode 100644 index 0000000..6f13ad4 --- /dev/null +++ b/backend_api_python/requirements-windows.txt @@ -0,0 +1,6 @@ +# Windows-specific optional dependencies +# Install these on Windows systems that need MT5 trading support: +# pip install -r requirements-windows.txt + +# MetaTrader 5 trading (Windows only, for forex trading via MT5 terminal) +MetaTrader5>=5.0.45 diff --git a/backend_api_python/requirements.txt b/backend_api_python/requirements.txt index b55a201..f51e72b 100644 --- a/backend_api_python/requirements.txt +++ b/backend_api_python/requirements.txt @@ -14,4 +14,6 @@ python-dotenv>=1.0.1 # Interactive Brokers trading (optional, for US/HK stock trading via TWS/IB Gateway) ib_insync>=0.9.86 # MetaTrader 5 trading (optional, for forex trading via MT5 terminal, Windows only) -MetaTrader5>=5.0.45 \ No newline at end of file +# Note: MetaTrader5 is Windows-only and not available on Linux/macOS +# Install separately on Windows: pip install MetaTrader5>=5.0.45 +# MetaTrader5>=5.0.45 \ No newline at end of file