Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion distclassipy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
)
from .distances import _ALL_METRICS, _UNIQUE_METRICS

__version__ = "0.3.0"
__version__ = "0.3.1"

__all__ = [
"DistanceMetricClassifier",
Expand Down
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand All @@ -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__"}

Expand Down
Loading