github workflow: build_setup: employ shell script, MANIFEST.in: include .hpp from lib

This commit is contained in:
Mario Fink 2021-09-21 17:16:02 +02:00
parent 0e51c3302f
commit 3e00543028
3 changed files with 7 additions and 5 deletions

View File

@ -12,10 +12,7 @@ jobs:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- name: Prepare files - name: Prepare files
run: | run: python/setup.sh
cat README.md | grep '^# IMCtermite' -A 50000 > python/README.md
cp -r lib/ python
cp -v LICENSE python
build_wheels: build_wheels:
name: Build binary wheels on ${{ matrix.os }} name: Build binary wheels on ${{ matrix.os }}

View File

@ -1,4 +1,4 @@
include *.hpp include lib/*.hpp
include *.cpp include *.cpp
include *.pyx include *.pyx
include *.pxd include *.pxd

5
python/setup.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/bash
cat README.md | grep '^# IMCtermite' -A 50000 > python/README.md
cp -r lib python/
cp -v LICENSE python