mirror of
https://github.com/katanemo/plano.git
synced 2026-04-25 00:36:34 +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:
|
||||
python-version: "3.12"
|
||||
|
||||
- name: install uv
|
||||
run: curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
|
||||
- name: Build and publish to PyPI
|
||||
env:
|
||||
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
|
||||
- name: Install build dependencies
|
||||
run: |
|
||||
uv build
|
||||
uv publish
|
||||
python -m pip install --upgrade pip
|
||||
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]
|
||||
addopts = ["-v"]
|
||||
|
||||
[tool.uv]
|
||||
dev-dependencies = [
|
||||
"pytest>=8.4.2",
|
||||
]
|
||||
|
|
|
|||
|
|
@ -1,16 +1,8 @@
|
|||
import json
|
||||
import pytest
|
||||
from unittest import mock
|
||||
import sys
|
||||
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)
|
||||
def cleanup_env(monkeypatch):
|
||||
|
|
|
|||
8
cli/uv.lock
generated
8
cli/uv.lock
generated
|
|
@ -257,6 +257,11 @@ dev = [
|
|||
{ name = "pytest" },
|
||||
]
|
||||
|
||||
[package.dev-dependencies]
|
||||
dev = [
|
||||
{ name = "pytest" },
|
||||
]
|
||||
|
||||
[package.metadata]
|
||||
requires-dist = [
|
||||
{ name = "click", specifier = "<9.0.0,>=8.1.7" },
|
||||
|
|
@ -267,6 +272,9 @@ requires-dist = [
|
|||
{ name = "requests", specifier = "<3.0.0,>=2.31.0" },
|
||||
]
|
||||
|
||||
[package.metadata.requires-dev]
|
||||
dev = [{ name = "pytest", specifier = ">=8.4.2" }]
|
||||
|
||||
[[package]]
|
||||
name = "pluggy"
|
||||
version = "1.6.0"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue