fix: replace pytfm workspace dependency with git source for CI compatibility
All checks were successful
ci/woodpecker/pr/pipeline Pipeline was successful
All checks were successful
ci/woodpecker/pr/pipeline Pipeline was successful
Remove the synthetic workspace hack from CI pipeline (fake pyproject.toml + git clone was fragile and complex). pytfm is now a clean git dependency in [tool.uv.sources], so uv resolves it automatically. Local development still works via: uv add --editable ../pytfm
This commit is contained in:
@@ -21,21 +21,6 @@ steps:
|
||||
UV_PYTHON: "3.13"
|
||||
commands:
|
||||
- pip install uv
|
||||
- cd ..
|
||||
- |
|
||||
cat > pyproject.toml << 'EOF'
|
||||
[project]
|
||||
name = "pyaqa"
|
||||
version = "0.1.0"
|
||||
requires-python = ">=3.13"
|
||||
dependencies = []
|
||||
|
||||
[tool.uv.workspace]
|
||||
members = ["blog.pyaqa.ru", "pytfm"]
|
||||
EOF
|
||||
- git clone https://git.pyaqa.ru/pi3c/pytfm.git
|
||||
- cd $CI_WORKSPACE
|
||||
- rm -rf .venv
|
||||
- uv sync --group lints --group tests --group types --group dev
|
||||
|
||||
- name: lint
|
||||
|
||||
@@ -61,7 +61,7 @@ types = [
|
||||
blog = "app.main:main"
|
||||
|
||||
[tool.uv.sources]
|
||||
pytfm = { workspace = true }
|
||||
pytfm = { git = "https://git.pyaqa.ru/pi3c/pytfm.git" }
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
asyncio_mode = "auto"
|
||||
|
||||
Reference in New Issue
Block a user