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