From 33dc29a6a3cd3f8c70bff9512bad6c6ce5222154 Mon Sep 17 00:00:00 2001 From: Bartosz Blizniak Date: Thu, 4 Sep 2025 13:00:41 +0100 Subject: [PATCH 1/2] remove plugin from package name --- .gitignore | 1 + README.md | 4 ++-- pyproject.toml | 2 +- tests/test_cloudsmith_repository.py | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 3283f37..33568d3 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ # Build outputs dist/ mlflow_cloudsmith_plugin.egg-info/ +.coverage # Python bytecode __pycache__/ diff --git a/README.md b/README.md index 6d3a7ab..a9d1931 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # MLflow Cloudsmith Plugin -[![CI](https://github.com/BartoszBlizniak/mlflow-cloudsmith-plugin/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/BartoszBlizniak/mlflow-cloudsmith-plugin/actions/workflows/ci.yml) +[![CI](https://github.com/cloudsmith-io/mlflow-cloudsmith-plugin/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/cloudsmith-io/mlflow-cloudsmith-plugin/actions/workflows/ci.yml) [![License: Apache 2.0](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) [![Python 3.8–3.12](https://img.shields.io/badge/python-3.8%E2%80%933.12-blue.svg)](https://www.python.org/downloads/) [![MLflow 2.x](https://img.shields.io/badge/MLflow-2.x-orange.svg)](https://mlflow.org/) @@ -22,7 +22,7 @@ ```bash pip install \ --index-url=https://dl.cloudsmith.io/public/cloudsmith/cloudsmith-mlflow-plugin/python/simple/ \ - mlflow-cloudsmith-plugin + mlflow-cloudsmith ``` --- diff --git a/pyproject.toml b/pyproject.toml index aadaf05..86294d2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ requires = ["setuptools>=69", "wheel", "setuptools-scm>=8"] build-backend = "setuptools.build_meta" [project] -name = "mlflow-cloudsmith-plugin" +name = "mlflow-cloudsmith" dynamic = ["version"] description = "MLflow plugin for storing artifacts in Cloudsmith repositories" readme = "README.md" diff --git a/tests/test_cloudsmith_repository.py b/tests/test_cloudsmith_repository.py index fe325d7..adc9a59 100644 --- a/tests/test_cloudsmith_repository.py +++ b/tests/test_cloudsmith_repository.py @@ -97,7 +97,7 @@ def test_get_headers(self): headers = self.repo._get_headers() self.assertEqual(headers["Authorization"], f"Bearer {self.api_key}") self.assertEqual(headers["Content-Type"], "application/json") - self.assertIn("mlflow-cloudsmith-plugin", headers["User-Agent"]) + self.assertIn("mlflow-cloudsmith", headers["User-Agent"]) def test_generate_package_metadata(self): """Test package metadata generation.""" From c51631bbca00a100f71c147c8cfcbdff0b07f871 Mon Sep 17 00:00:00 2001 From: Bartosz Blizniak Date: Thu, 4 Sep 2025 13:26:34 +0100 Subject: [PATCH 2/2] Add PyPi publishing --- .github/workflows/release.yml | 5 ++--- README.md | 4 +--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 12f6eee..2fff0ca 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -65,6 +65,5 @@ jobs: for file in dist/*.{tar.gz,whl}; do cloudsmith push python "${OWNER}/${REPO}" "$file" done - - # - name: Publish to PyPI (Trusted Publishing) - # uses: pypa/gh-action-pypi-publish@release/v1 + - name: Publish to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/README.md b/README.md index a9d1931..5f4cf63 100644 --- a/README.md +++ b/README.md @@ -20,9 +20,7 @@ ## Installation ```bash -pip install \ - --index-url=https://dl.cloudsmith.io/public/cloudsmith/cloudsmith-mlflow-plugin/python/simple/ \ - mlflow-cloudsmith +pip install mlflow-cloudsmith ``` ---