mirror of
https://github.com/katanemo/plano.git
synced 2026-07-23 16:51:04 +02:00
set cli package to planoai instead of cli (#664)
This commit is contained in:
parent
053e2b3a74
commit
4c4bc99e31
5 changed files with 28 additions and 16 deletions
23
.github/workflows/publish-pypi.yml
vendored
23
.github/workflows/publish-pypi.yml
vendored
|
|
@ -24,12 +24,19 @@ jobs:
|
||||||
with:
|
with:
|
||||||
python-version: "3.12"
|
python-version: "3.12"
|
||||||
|
|
||||||
- name: install uv
|
- name: Install build dependencies
|
||||||
run: curl -LsSf https://astral.sh/uv/install.sh | sh
|
|
||||||
|
|
||||||
- name: Build and publish to PyPI
|
|
||||||
env:
|
|
||||||
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
|
|
||||||
run: |
|
run: |
|
||||||
uv build
|
python -m pip install --upgrade pip
|
||||||
uv publish
|
pip install build twine
|
||||||
|
|
||||||
|
- name: Build package
|
||||||
|
run: python -m build
|
||||||
|
|
||||||
|
- name: Check package with twine
|
||||||
|
run: twine check dist/*
|
||||||
|
|
||||||
|
- name: Publish to PyPI
|
||||||
|
env:
|
||||||
|
TWINE_USERNAME: __token__
|
||||||
|
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
|
||||||
|
run: twine upload dist/*
|
||||||
|
|
|
||||||
|
|
@ -33,3 +33,8 @@ packages = ["planoai"]
|
||||||
|
|
||||||
[tool.pytest.ini_options]
|
[tool.pytest.ini_options]
|
||||||
addopts = ["-v"]
|
addopts = ["-v"]
|
||||||
|
|
||||||
|
[tool.uv]
|
||||||
|
dev-dependencies = [
|
||||||
|
"pytest>=8.4.2",
|
||||||
|
]
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,8 @@
|
||||||
import json
|
import json
|
||||||
import pytest
|
import pytest
|
||||||
from unittest import mock
|
from unittest import mock
|
||||||
import sys
|
|
||||||
from planoai.config_generator import validate_and_render_schema
|
from planoai.config_generator import validate_and_render_schema
|
||||||
|
|
||||||
# Patch sys.path to allow import from cli/
|
|
||||||
import os
|
|
||||||
|
|
||||||
sys.path.insert(
|
|
||||||
0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "cli"))
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(autouse=True)
|
@pytest.fixture(autouse=True)
|
||||||
def cleanup_env(monkeypatch):
|
def cleanup_env(monkeypatch):
|
||||||
|
|
|
||||||
8
cli/uv.lock
generated
8
cli/uv.lock
generated
|
|
@ -257,6 +257,11 @@ dev = [
|
||||||
{ name = "pytest" },
|
{ name = "pytest" },
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[package.dev-dependencies]
|
||||||
|
dev = [
|
||||||
|
{ name = "pytest" },
|
||||||
|
]
|
||||||
|
|
||||||
[package.metadata]
|
[package.metadata]
|
||||||
requires-dist = [
|
requires-dist = [
|
||||||
{ name = "click", specifier = "<9.0.0,>=8.1.7" },
|
{ name = "click", specifier = "<9.0.0,>=8.1.7" },
|
||||||
|
|
@ -267,6 +272,9 @@ requires-dist = [
|
||||||
{ name = "requests", specifier = "<3.0.0,>=2.31.0" },
|
{ name = "requests", specifier = "<3.0.0,>=2.31.0" },
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[package.metadata.requires-dev]
|
||||||
|
dev = [{ name = "pytest", specifier = ">=8.4.2" }]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "pluggy"
|
name = "pluggy"
|
||||||
version = "1.6.0"
|
version = "1.6.0"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue