Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 81 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
name: Publish Package to PyPI

permissions:
contents: write
id-token: write

on:
push:
tags:
- "v*"
workflow_dispatch:

jobs:
build-and-publish:
name: Build and publish Python distribution to PyPI
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v5
with:
version: "0.9.7"
enable-cache: true

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version-file: ".python-version"

- name: Install the project
run: uv sync --no-dev

- name: Build package
run: uv build

- name: Verify package contents
run: |
echo "=== Contents of dist/ ==="
ls -lh dist/
echo ""
echo "=== Wheel contents ==="
unzip -l dist/*.whl || true
echo ""
echo "=== Tarball contents ==="
tar -tzf dist/*.tar.gz || true

- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
verbose: true

- name: Create GitHub Release
uses: ncipollo/release-action@v1
with:
artifacts: "dist/*"
generateReleaseNotes: true
body: |
## Installation
```bash
pip install aieng-platform-onboard
```

## Usage

### Basic Onboarding
```bash
onboard --bootcamp-name <bootcamp-name>
```

### With Integration Tests
If you have a test script to verify API keys:
```bash
onboard --bootcamp-name <bootcamp-name> --skip-test
python path/to/test_keys.py
```

Or let onboard run your test script automatically by placing it in the same directory as the CLI.
17 changes: 13 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[project]
name = "aieng-platform"
name = "aieng-platform-onboard"
version = "0.1.0"
description = "Platform infrastructure and tooling for AI Engineering bootcamps"
description = "CLI tool for onboarding participants to AI Engineering bootcamps"
readme = "README.md"
authors = [{name = "Vector AI Engineering", email = "[email protected]"}]
license = "Apache-2.0"
Expand All @@ -15,16 +15,25 @@ dependencies = [
"weaviate-client>=4.0.0",
"requests>=2.31.0",
"python-dotenv>=1.0.0",
"pandas>=2.0.0",
"rich>=13.0.0",
]

[project.scripts]
onboard = "aieng_platform_onboard.cli:main"

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.hatch.build.targets.wheel]
only-include = ["README.md"]
packages = ["src/aieng_platform_onboard"]

[tool.hatch.build.targets.sdist]
include = [
"/src/aieng_platform_onboard",
"/README.md",
"/pyproject.toml",
]

[dependency-groups]
dev = [
Expand Down
12 changes: 12 additions & 0 deletions src/aieng_platform_onboard/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
"""
aieng-platform-onboard: CLI tool for bootcamp participant onboarding.

This package provides a command-line interface for onboarding participants
to AI Engineering bootcamps, handling authentication, API key distribution,
and environment setup.
"""

from aieng_platform_onboard.cli import main


__all__ = ["main"]
Loading