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/.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..5f4cf63 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/) @@ -20,9 +20,7 @@ ## Installation ```bash -pip install \ - --index-url=https://dl.cloudsmith.io/public/cloudsmith/cloudsmith-mlflow-plugin/python/simple/ \ - mlflow-cloudsmith-plugin +pip install 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."""