From 37d451bc7526084ae7e56ea942e631a844da70fc Mon Sep 17 00:00:00 2001 From: Lilith Date: Sun, 8 Mar 2026 19:15:38 -0700 Subject: [PATCH] =?UTF-8?q?feat(dev-publish):=20=E2=9C=A8=20Add=20core=20p?= =?UTF-8?q?ublisher=20and=20registry=20components=20for=20development=20pu?= =?UTF-8?q?blishing=20with=20updated=20dev-publish=20docs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Lilith Autocommit --- README-dev-publish.md | 4 ++-- README.md | 2 +- src/lilith_dev_publish/core/publisher.py | 2 +- src/lilith_dev_publish/utils/registry.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) 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