From 523991d14d1b97cf7cf7636db9a58557fe7ccb9f Mon Sep 17 00:00:00 2001 From: Aarni Koskela Date: Thu, 21 Dec 2023 13:07:52 +0200 Subject: [PATCH] CI: add workflow to build package Signed-off-by: Aarni Koskela --- .github/workflows/build.yml | 16 ++++++++++++++++ pyproject.toml | 3 ++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..3d35af11 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,16 @@ +name: build +on: [push, pull_request] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v4 + with: + python-version: 3 + - run: pip install build + - run: python -m build . + - uses: actions/upload-artifact@v4 + with: + name: dist + path: dist diff --git a/pyproject.toml b/pyproject.toml index 1e31f15e..6c852047 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -62,7 +62,8 @@ include = [ ] [tool.hatch.build.targets.wheel] -packages = [ +sources = ["src"] +include = [ "src/paho", ]