-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy path.build.yml
39 lines (39 loc) · 1.13 KB
/
.build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
image: fedora/latest
oauth: git.sr.ht/REPOSITORIES:RW git.sr.ht/PROFILE:RO
packages:
- hut
- swig
- python3
- python3-devel
- python3-pip
- openssl-devel
- openssl
- python3-setuptools
- python3-twisted
- python3-docutils
sources:
- https://git.sr.ht/~mcepl/m2crypto
tasks:
- build: |
cd m2crypto
export PATH=$PATH:$HOME/.local/bin
python3 -mpip install --user -r dev-requirements.txt
python3 -mbuild .
find . -name \*.whl -o -name \*.tar.gz
python3 -mpip install -v --upgrade --target $(readlink -f build/lib.*) --no-compile --ignore-installed --no-deps --no-index dist/M2Crypto*.whl
- test: |
cd m2crypto
PYTHONPATH=$(readlink -f build/lib.*) python3 -munittest -b -v tests.alltests.suite
- readme: |
cd m2crypto
printf "GIT_REF: %s\n" "${GIT_REF}"
python3 -mdocutils --strict README.rst >/dev/null
if [[ "$GIT_REF" =~ master ]] ; then
python3 -mdocutils README.rst \
| sed -n '1,/<body>/d;/<\/body>/q;p' \
|hut git -r m2crypto update --readme -
fi
artifacts:
# https://is.gd/Z5VJlI
# - pygn/dist/pygn-*.tar.gz
# - pygn/dist/pygn-*.whl