Skip to content

Commit c82e902

Browse files
Pigbibicodex
andcommitted
chore: remove legacy dependency files
Co-Authored-By: Codex <noreply@openai.com>
1 parent 9fe7b37 commit c82e902

11 files changed

Lines changed: 22 additions & 37 deletions

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
run: |
6666
set -euo pipefail
6767
python -m pip install --upgrade pip uv
68-
uv sync --frozen --extra test --no-install-project
68+
uv sync --frozen --extra test
6969
- name: Smoke import pinned shared packages
7070
run: |
7171
set -euo pipefail

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ jobs:
272272
run: |
273273
set -euo pipefail
274274
python -m pip install --upgrade pip uv
275-
uv sync --frozen --no-dev --no-install-project
275+
uv sync --frozen --no-dev
276276
- name: Resolve Cloud Run sync targets
277277
id: strategy_requirements
278278
if: steps.env_sync_config.outputs.enabled == 'true'

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ __pycache__/
88
.runtime/
99
ft_cookies*.json
1010

11+
12+
*.egg-info/

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", "main:app"]

README.md

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

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

README.zh-CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ FirstradePlatform 是 QuantStrategyLab 的实验性 Firstrade 执行平台。实
3838
## 快速开始
3939

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

constraints.txt

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

pyproject.toml

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

55
[project]
66
name = "firstrade-platform"
7-
version = "0.2.0"
7+
version = "0.3.0"
88
description = "Experimental QuantStrategyLab platform layer for Firstrade through an unofficial API wrapper."
99
readme = "README.md"
1010
requires-python = ">=3.11"
@@ -50,6 +50,7 @@ include = [
5050
"application*",
5151
"entrypoints*",
5252
"notifications*",
53+
"scripts*",
5354
]
5455

5556
[tool.pytest.ini_options]

requirements.txt

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

tests/test_uv_dependency_workflow.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,17 @@ def test_ci_docker_and_env_sync_use_uv_lock() -> None:
1818
lockfile = Path("uv.lock").read_text(encoding="utf-8")
1919

2020
assert lockfile.startswith("version = ")
21-
assert "uv sync --frozen --extra test --no-install-project" in ci
21+
assert "uv sync --frozen --extra test" in ci
2222
assert "uv pip check" in ci
2323
assert "uv run --no-sync ruff check --exclude external ." in ci
2424
assert "uv run --no-sync python scripts/check_qpk_pin_consistency.py" in ci
2525
assert "uv run --no-sync python -m build" in ci
26-
assert "uv sync --frozen --no-dev --no-install-project" in env_sync
26+
assert "uv sync --frozen --no-dev" in env_sync
2727
assert "uv run --no-sync python scripts/build_cloud_run_env_sync_plan.py --json" in env_sync
28-
assert "COPY pyproject.toml uv.lock ./" in dockerfile
29-
assert "uv sync --frozen --no-dev --no-install-project" in dockerfile
28+
assert "COPY . ." in dockerfile
29+
assert dockerfile.index("COPY . .") < dockerfile.index("uv sync --frozen --no-dev")
30+
assert "uv sync --frozen --no-dev" in dockerfile
3031
assert "python -m pip install -r requirements.txt" not in dockerfile
32+
assert "--no-install-project" not in ci
33+
assert "--no-install-project" not in env_sync
34+
assert "--no-install-project" not in dockerfile

0 commit comments

Comments
 (0)