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:
parent
06e2dcbdd3
commit
37d451bc75
4 changed files with 5 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue