✨ Features: - GiteaPackageRegistry client for PyPI-compatible uploads - Enhanced release.py with upload/registry commands - New Makefile targets for Gitea publishing workflow - Comprehensive documentation with examples 📦 New Commands: - `release.py registry` - Show registry info & authentication - `release.py upload` - Upload packages to Gitea - `release.py publish --to-gitea` - Complete release + upload - `make release-publish-gitea VERSION=x.y.z` - One-command release 🔧 Infrastructure: - Automatic package detection (wheel + sdist) - Dry-run support for safe testing - Error handling and detailed feedback - Authentication validation 📚 Documentation: - PACKAGE_PUBLISHING.md with complete setup guide - Usage examples and troubleshooting 🚀 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
35 lines
1.1 KiB
Python
35 lines
1.1 KiB
Python
"""
|
|
Gitea API facade - Clean interface for Gitea repository operations.
|
|
|
|
This package provides a clean, well-structured interface to Gitea API operations,
|
|
following the facade pattern to decouple application logic from specific API
|
|
implementation details.
|
|
|
|
Structure:
|
|
- client: Main GiteaClient facade
|
|
- models: Domain models (Issue, Milestone, Label, etc.)
|
|
- config: Gitea-specific configuration
|
|
- exceptions: Gitea-specific exceptions
|
|
|
|
Usage:
|
|
from gitea import GiteaClient
|
|
|
|
client = GiteaClient()
|
|
issues = client.issues.list()
|
|
issue = client.issues.get(42)
|
|
client.issues.create("Bug fix", "Description")
|
|
"""
|
|
|
|
from .client import GiteaClient
|
|
from .models import Issue, Milestone, Label, ProjectState, Priority
|
|
from .config import GiteaConfig
|
|
from .exceptions import GiteaError, GiteaAuthError, GiteaNotFoundError
|
|
from .package_registry import GiteaPackageRegistry
|
|
|
|
__all__ = [
|
|
'GiteaClient',
|
|
'Issue', 'Milestone', 'Label', 'ProjectState', 'Priority',
|
|
'GiteaConfig',
|
|
'GiteaError', 'GiteaAuthError', 'GiteaNotFoundError',
|
|
'GiteaPackageRegistry'
|
|
] |