From b5b951e3b6f89ca6cab19f8e51bfd0abf46410aa Mon Sep 17 00:00:00 2001 From: Yannick DAYER Date: Wed, 11 Sep 2024 15:20:12 +0200 Subject: [PATCH 1/3] chore: fix the license file path in pyproject.toml --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 8d48219..0090202 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,7 +9,7 @@ build-backend = "flit_core.buildapi" [project] name = "raw-speech-classification" version = "1.0.0" -license = {file = "COPYING"} +license = {file = "LICENSES/GPL-3.0-only.txt"} authors = [ { name = "S. Pavankumar Dubagunta" }, { name = "Dr. Mathew Magimai-Doss" }, From 5dd9aa70fd8bb005c1f71876bf6e261c65835567 Mon Sep 17 00:00:00 2001 From: Yannick DAYER Date: Wed, 11 Sep 2024 15:33:17 +0200 Subject: [PATCH 2/3] ci: add a packaging test to pull requests actions. Ensure the modification of a pull request don't break the python packaging. --- .github/workflows/tests.yml | 42 +++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..ece340c --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,42 @@ +# SPDX-FileCopyrightText: Copyright © Idiap Research Institute +# SPDX-FileContributor: Yannick Dayer +# +# SPDX-License-Identifier: GPL-3.0-only + +name: tests + +on: + push: + branches: [ "main" ] + pull_request: + +permissions: + contents: read + +jobs: + test-packaging: + name: Package the project into a distributable file + runs-on: ubuntu-22.04 + steps: + - name: Checkout project + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Install python + uses: actions/setup-python@v5 + with: + python-version: "3.11" + - name: Install build dependencies + run: | + pip install --upgrade pip + pip install build + - name: Package the project to the dist dir + run: python -m build + - name: Try installing from the new dists + run: pip install dist/*.whl + - name: Produce a GitHub actions artifact (the distributable package) + uses: actions/upload-artifact@v4 + with: + name: dist + path: dist/ + if-no-files-found: error From 47fc774961555cfe9d1efd4db6b483475f0848c6 Mon Sep 17 00:00:00 2001 From: Yannick DAYER Date: Wed, 11 Sep 2024 15:35:23 +0200 Subject: [PATCH 3/3] chore: update the version of the package to v1.0.1 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 0090202..f3f321a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,7 @@ build-backend = "flit_core.buildapi" [project] name = "raw-speech-classification" -version = "1.0.0" +version = "1.0.1" license = {file = "LICENSES/GPL-3.0-only.txt"} authors = [ { name = "S. Pavankumar Dubagunta" },