From 59edee554d9e255edc2ab3c7d6c61c327d5a3f54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20BREDIN?= Date: Fri, 7 Feb 2025 17:57:38 +0100 Subject: [PATCH 01/19] wip: switching to uv --- .github/workflows/release.yml | 28 + .python-version | 1 + COMMIT_MESSAGES.md | 120 -- Dockerfile | 10 - MANIFEST.in | 2 - pyannote/__init__.py | 29 - pyannote/core/_version.py | 460 ----- pyproject.toml | 36 + setup.cfg | 7 - {pyannote => src/pyannote}/core/__init__.py | 6 +- {pyannote => src/pyannote}/core/annotation.py | 0 {pyannote => src/pyannote}/core/feature.py | 0 {pyannote => src/pyannote}/core/notebook.py | 0 {pyannote => src/pyannote}/core/segment.py | 0 {pyannote => src/pyannote}/core/timeline.py | 0 .../pyannote}/core/utils/__init__.py | 0 .../pyannote}/core/utils/cluster.py | 0 .../pyannote}/core/utils/distance.py | 0 .../pyannote}/core/utils/generators.py | 0 .../pyannote}/core/utils/helper.py | 0 .../pyannote}/core/utils/hierarchy.py | 0 .../pyannote}/core/utils/numpy.py | 0 .../pyannote}/core/utils/random.py | 0 .../pyannote}/core/utils/types.py | 0 uv.lock | 1117 +++++++++++ versioneer.py | 1699 ----------------- 26 files changed, 1185 insertions(+), 2330 deletions(-) create mode 100644 .github/workflows/release.yml create mode 100644 .python-version delete mode 100644 COMMIT_MESSAGES.md delete mode 100644 Dockerfile delete mode 100644 MANIFEST.in delete mode 100755 pyannote/__init__.py delete mode 100644 pyannote/core/_version.py create mode 100644 pyproject.toml delete mode 100644 setup.cfg rename {pyannote => src/pyannote}/core/__init__.py (94%) rename {pyannote => src/pyannote}/core/annotation.py (100%) rename {pyannote => src/pyannote}/core/feature.py (100%) rename {pyannote => src/pyannote}/core/notebook.py (100%) rename {pyannote => src/pyannote}/core/segment.py (100%) rename {pyannote => src/pyannote}/core/timeline.py (100%) rename {pyannote => src/pyannote}/core/utils/__init__.py (100%) rename {pyannote => src/pyannote}/core/utils/cluster.py (100%) rename {pyannote => src/pyannote}/core/utils/distance.py (100%) rename {pyannote => src/pyannote}/core/utils/generators.py (100%) rename {pyannote => src/pyannote}/core/utils/helper.py (100%) rename {pyannote => src/pyannote}/core/utils/hierarchy.py (100%) rename {pyannote => src/pyannote}/core/utils/numpy.py (100%) rename {pyannote => src/pyannote}/core/utils/random.py (100%) rename {pyannote => src/pyannote}/core/utils/types.py (100%) create mode 100644 uv.lock delete mode 100644 versioneer.py diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..c828e06 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,28 @@ +name: Release + +on: + push: + branches: + - '**' + +jobs: + release: + runs-on: ubuntu-latest + permissions: + id-token: write + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Install uv + uses: astral-sh/setup-uv@v5 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version-file: ".python-version" + + - name: Release on TestPyPI + run: | + uv build + uv publish --publish-url https://test.pypi.org/legacy/ --trusted-publishing always \ No newline at end of file diff --git a/.python-version b/.python-version new file mode 100644 index 0000000..c8cfe39 --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.10 diff --git a/COMMIT_MESSAGES.md b/COMMIT_MESSAGES.md deleted file mode 100644 index da38b52..0000000 --- a/COMMIT_MESSAGES.md +++ /dev/null @@ -1,120 +0,0 @@ -# Commit Message Conventions - -> This page defines a convention for commit messages for [pyannote](http://github.com/pyannote) related projects. -> -> All commits pushed to the [pyannote](https://github.com/pyannote) repositories must conform to that convention. - -The contens of this page are partly based on the [angular commit messages document](https://docs.google.com/document/d/1QrDFcIiPjSLDn3EL15IJygNPiHORgU1_OOAqWjiDU5Y/edit?pli=1). - - -## Purpose - -The commit message is what is what describes your contribution. -Its purpose must therefore be to document what a commit contributes to a project. - -Its head line __should__ be as meaningful as possible because it is always -seen along with other commit messages. - -Its body __should__ provide information to comprehend the commit for people -who care. - -Its footer __may__ contain references to external artifacts -(issues it solves, related commits) as well as breaking change notes. - -This applies to __all kind of projects__. - - -## Format - -#### Short form (only subject line) - - (): - -#### Long form (with body) - - (): - - - - - - - -