From 3e005430289b836573a18c3b9248592dec20d76c Mon Sep 17 00:00:00 2001 From: Mario Fink Date: Tue, 21 Sep 2021 17:16:02 +0200 Subject: [PATCH] github workflow: build_setup: employ shell script, MANIFEST.in: include .hpp from lib --- .github/workflows/pypi-deploy.yml | 5 +---- python/MANIFEST.in | 2 +- python/setup.sh | 5 +++++ 3 files changed, 7 insertions(+), 5 deletions(-) create mode 100755 python/setup.sh diff --git a/.github/workflows/pypi-deploy.yml b/.github/workflows/pypi-deploy.yml index 8c84208..a12a03c 100644 --- a/.github/workflows/pypi-deploy.yml +++ b/.github/workflows/pypi-deploy.yml @@ -12,10 +12,7 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Prepare files - run: | - cat README.md | grep '^# IMCtermite' -A 50000 > python/README.md - cp -r lib/ python - cp -v LICENSE python + run: python/setup.sh build_wheels: name: Build binary wheels on ${{ matrix.os }} diff --git a/python/MANIFEST.in b/python/MANIFEST.in index ae1b835..b224465 100644 --- a/python/MANIFEST.in +++ b/python/MANIFEST.in @@ -1,4 +1,4 @@ -include *.hpp +include lib/*.hpp include *.cpp include *.pyx include *.pxd diff --git a/python/setup.sh b/python/setup.sh new file mode 100755 index 0000000..337e17d --- /dev/null +++ b/python/setup.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +cat README.md | grep '^# IMCtermite' -A 50000 > python/README.md +cp -r lib python/ +cp -v LICENSE python