set cli package to planoai instead of cli (#664)

This commit is contained in:
Adil Hafeez 2025-12-27 23:49:41 -08:00 committed by GitHub
parent 053e2b3a74
commit 4c4bc99e31
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 28 additions and 16 deletions

View file

@ -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/*

View file

View file

@ -33,3 +33,8 @@ packages = ["planoai"]
[tool.pytest.ini_options]
addopts = ["-v"]
[tool.uv]
dev-dependencies = [
"pytest>=8.4.2",
]

View file

@ -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
View file

@ -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"