diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index 52b130c..1b8786c 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -16,6 +16,10 @@ name: Upload Python Package on: release: types: [published] + # Manual build-only run (Actions tab -> "Run workflow", any branch): builds + # and tests the sdist and all wheels without uploading anything. Use it to + # check a branch before cutting a release. + workflow_dispatch: permissions: contents: read @@ -72,6 +76,7 @@ jobs: publish: name: Publish to PyPI needs: [build_sdist, build_wheels] + if: github.event_name == 'release' # never upload from manual runs runs-on: ubuntu-latest permissions: id-token: write # trusted publishing diff --git a/distclassipy/__init__.py b/distclassipy/__init__.py index f9b16fb..71c832e 100755 --- a/distclassipy/__init__.py +++ b/distclassipy/__init__.py @@ -34,7 +34,7 @@ ) from .distances import _ALL_METRICS, _UNIQUE_METRICS -__version__ = "0.3.0" +__version__ = "0.3.1" __all__ = [ "DistanceMetricClassifier", diff --git a/pyproject.toml b/pyproject.toml index 346ebb3..6a23dbd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,6 +22,7 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14", "Operating System :: OS Independent" ] dependencies = [ @@ -31,6 +32,11 @@ dependencies = [ "scikit-learn>=1.6.0" ] +[tool.setuptools] +# List the package explicitly: automatic flat-layout discovery also picks up +# stray top-level directories (e.g. cibuildwheel's wheelhouse/) and aborts. +packages = ["distclassipy"] + [tool.setuptools.dynamic] version = {attr = "distclassipy.__version__"}