feat(dev-publish): Add core publisher and registry components for development publishing with updated dev-publish docs

Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
Lilith 2026-03-08 19:15:38 -07:00
parent 06e2dcbdd3
commit 37d451bc75
4 changed files with 5 additions and 5 deletions

View file

@ -122,7 +122,7 @@ Examples:
### Optional
- `LOCAL_PUBLISH_PYPI_REGISTRY` - Registry URL
Default: `https://forge.nasty.sh/api/packages/lilith/pypi`
Default: `http://forge.black.local/api/packages/lilith/pypi`
## Package Metadata
@ -177,7 +177,7 @@ dev-publish --verbose
twine --version
# Check registry connectivity
curl -I https://forge.nasty.sh/api/packages/lilith/pypi
curl -I http://forge.black.local/api/packages/lilith/pypi
```
### ModuleNotFoundError

View file

@ -11,7 +11,7 @@ pip install lilith-queue-cli
Or from the Lilith Platform registry:
```bash
pip install lilith-queue-cli --index-url https://forge.nasty.sh/api/packages/lilith/pypi/simple/
pip install lilith-queue-cli --index-url http://forge.black.local/api/packages/lilith/pypi/simple/
```
## Commands

View file

@ -135,7 +135,7 @@ class Publisher:
import requests
# Construct JSON API URL
# For Forgejo: https://forge.nasty.sh/api/packages/lilith/pypi/{package}/json
# For Forgejo: http://forge.black.local/api/packages/lilith/pypi/{package}/json
api_url = f"{registry_url}/{package_name}/json"
response = requests.get(api_url, timeout=10)

View file

@ -12,7 +12,7 @@ class RegistryConfig:
"""Get default PyPI registry URL."""
return os.getenv(
"LOCAL_PUBLISH_PYPI_REGISTRY",
"https://forge.nasty.sh/api/packages/lilith/pypi",
"http://forge.black.local/api/packages/lilith/pypi",
)
@staticmethod