Skip to content

Commit d1114fc

Browse files
Pigbibicodex
andauthored
chore: remove legacy dependency files (#295)
* chore: remove legacy dependency files Co-Authored-By: Codex <noreply@openai.com> * chore: allow legacy dependency manifest removal Co-Authored-By: Codex <noreply@openai.com> --------- Co-authored-by: Codex <noreply@openai.com>
1 parent 2f477bf commit d1114fc

15 files changed

Lines changed: 62 additions & 47 deletions

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ jobs:
8585
run: |
8686
set -euo pipefail
8787
python -m pip install --upgrade pip uv
88-
uv sync --frozen --extra test --no-install-project
88+
uv sync --frozen --extra test
8989
- name: Smoke import pinned shared packages
9090
run: |
9191
set -euo pipefail

.github/workflows/sync-cloud-run-env.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ jobs:
303303
run: |
304304
set -euo pipefail
305305
python -m pip install --upgrade pip uv
306-
uv sync --frozen --no-dev --no-install-project
306+
uv sync --frozen --no-dev
307307
- name: Resolve Cloud Run sync targets
308308
id: strategy_requirements
309309
if: steps.config.outputs.env_sync_enabled == 'true'

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ __pycache__/
33
.env
44
.venv/
55
.venv-test/
6+
7+
*.egg-info/

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ Thanks for contributing to `InteractiveBrokersPlatform`.
2828
Run the main verification command before opening a pull request:
2929

3030
```bash
31-
python3 -m pip install -r requirements.txt pytest && PYTHONPATH=. PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 python3 -m pytest -q
31+
uv sync --frozen --extra test && PYTHONPATH=. PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 uv run --no-sync python -m pytest -q
3232
```

Dockerfile

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,15 @@ RUN apt-get update \
1313
&& apt-get install -y --no-install-recommends git \
1414
&& rm -rf /var/lib/apt/lists/*
1515

16-
COPY pyproject.toml uv.lock ./
16+
COPY . .
1717
RUN python -m pip install --upgrade pip uv \
18-
&& uv sync --frozen --no-dev --no-install-project \
18+
&& uv sync --frozen --no-dev \
1919
&& apt-get purge -y git \
2020
&& apt-get autoremove -y --purge \
21-
&& rm -rf /var/lib/apt/lists/*
22-
23-
RUN useradd --create-home --uid 1000 appuser
21+
&& rm -rf /var/lib/apt/lists/* \
22+
&& useradd --create-home --uid 1000 appuser \
23+
&& chown -R appuser:appuser /app
2424

25-
COPY --chown=appuser:appuser . .
2625
USER appuser
2726

2827
CMD ["gunicorn", "--bind", ":8080", "--workers", "1", "--threads", "1", "--timeout", "300", "main:app"]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Direct runtime profiles can usually run from market history or portfolio state.
4040
## Quick start
4141

4242
```bash
43-
uv sync --frozen --extra test --no-install-project
43+
uv sync --frozen --extra test
4444
uv run --no-sync ruff check --exclude external .
4545
uv run --no-sync python scripts/check_qpk_pin_consistency.py
4646
```

README.zh-CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ InteractiveBrokersPlatform 是 QuantStrategyLab 的Interactive Brokers 多市场
4040
## 快速开始
4141

4242
```bash
43-
uv sync --frozen --extra test --no-install-project
43+
uv sync --frozen --extra test
4444
uv run --no-sync ruff check --exclude external .
4545
uv run --no-sync python scripts/check_qpk_pin_consistency.py
4646
```

constraints.txt

Lines changed: 0 additions & 10 deletions
This file was deleted.

pyproject.toml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "interactive-brokers-platform"
7-
version = "0.2.0"
7+
version = "0.3.0"
88
description = "QuantStrategyLab platform layer for Interactive Brokers."
99
requires-python = ">=3.11"
1010
dependencies = [
@@ -42,7 +42,22 @@ omit = ["tests/*", "*/external/*"]
4242
show_missing = true
4343

4444
[tool.setuptools]
45-
package-dir = { "" = "src" }
45+
py-modules = [
46+
"decision_mapper",
47+
"main",
48+
"runtime_config_support",
49+
"runtime_execution_policy",
50+
"runtime_logging",
51+
"strategy_loader",
52+
"strategy_registry",
53+
"strategy_runtime",
54+
]
4655

4756
[tool.setuptools.packages.find]
48-
where = ["src"]
57+
include = [
58+
"application*",
59+
"entrypoints*",
60+
"notifications*",
61+
"scripts*",
62+
"strategy*",
63+
]

requirements.txt

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)