diff --git a/README-dev-publish.md b/README-dev-publish.md index db5dd2a..f17aba4 100644 --- a/README-dev-publish.md +++ b/README-dev-publish.md @@ -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 diff --git a/README.md b/README.md index 621153e..2897ca9 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/src/lilith_dev_publish/core/publisher.py b/src/lilith_dev_publish/core/publisher.py index e3f635e..bdece8f 100644 --- a/src/lilith_dev_publish/core/publisher.py +++ b/src/lilith_dev_publish/core/publisher.py @@ -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) diff --git a/src/lilith_dev_publish/utils/registry.py b/src/lilith_dev_publish/utils/registry.py index 320a5a4..209e8db 100644 --- a/src/lilith_dev_publish/utils/registry.py +++ b/src/lilith_dev_publish/utils/registry.py @@ -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