|
1 | | -stages: |
2 | | - - build |
3 | | - - test |
4 | | - - deploy |
5 | | - - Trigger-cross-projects |
| 1 | +{% set data = load_setup_py_data(setup_file='../setup.py', from_recipe_dir=True) %} |
6 | 2 |
|
7 | | -build:linux: |
8 | | - stage: build |
9 | | - tags: |
10 | | - - linux |
11 | | - image: condaforge/mambaforge:latest |
12 | | - before_script: |
13 | | - - apt update -yq && apt -yq install build-essential |
14 | | - - git submodule update --init --recursive --remote |
15 | | - script: |
16 | | - - ./tools/build.sh |
17 | | - artifacts: |
18 | | - paths: |
19 | | - - bld-dir/ |
| 3 | +package: |
| 4 | + name: {{ data.get('name')|lower }} |
| 5 | + version: {{ data.get('version')|lower }} |
20 | 6 |
|
21 | | -build:windows: |
22 | | - stage: build |
23 | | - tags: |
24 | | - - win |
25 | | - before_script: |
26 | | - - git submodule update --init --recursive --remote |
27 | | - script: |
28 | | - - .\tools\build.bat |
29 | | - artifacts: |
30 | | - paths: |
31 | | - - bld-dir/ |
| 7 | +source: |
| 8 | + path: .. |
32 | 9 |
|
33 | | -build:osx: |
34 | | - stage: build |
35 | | - tags: |
36 | | - - osx |
37 | | - before_script: |
38 | | - - git submodule update --init --recursive --remote |
39 | | - script: |
40 | | - - ./tools/build.sh |
41 | | - artifacts: |
42 | | - paths: |
43 | | - - bld-dir/ |
| 10 | +build: |
| 11 | + number: 0 |
| 12 | + string: py{{ python }} |
| 13 | + entry_points: |
| 14 | + {% for entry_point_type, entry_points in data.get("entry_points", dict()).items() -%} |
| 15 | + {% for entry_point in entry_points -%} |
| 16 | + - {{ entry_point }} |
| 17 | + {% endfor %} |
| 18 | + {% endfor %} |
| 19 | +requirements: |
| 20 | + host: |
| 21 | + - python |
| 22 | + - numpy |
| 23 | + - pyyaml |
| 24 | + - setuptools |
| 25 | + build: |
| 26 | + - python |
| 27 | + - numpy |
| 28 | + - setuptools |
| 29 | + - pyyaml |
| 30 | + run: |
| 31 | + - python |
| 32 | + - numpy |
| 33 | + - pyyaml |
| 34 | + - qtpy |
| 35 | + - pyqt |
| 36 | + - pyqtgraph |
| 37 | + - tttrlib |
| 38 | + - pathlib2 # [py < 3] |
44 | 39 |
|
45 | | -test:linux: |
46 | | - stage: test |
47 | | - tags: |
48 | | - - linux |
49 | | - image: condaforge/mambaforge:latest |
50 | | - before_script: |
51 | | - # Issue with OpenGL and X11 display |
52 | | - # See: https://stackoverflow.com/questions/65675765/is-it-possible-to-run-x11-on-gitlab-ci |
53 | | - # See: https://github.com/conda-forge/pygridgen-feedstock/issues/10 |
54 | | - # procps is used to grep the process by name to kill it when needed |
55 | | - - apt update -yq |
56 | | - - apt install -yq xorg-dev libglu1-mesa libgl1-mesa-dev xvfb libxinerama1 libxcursor1 libgl1-mesa-glx procps |
57 | | - script: |
58 | | - - source activate |
59 | | - # Disable Numba JIT for correct coverage analysis |
60 | | - - export NUMBA_DISABLE_JIT=1 |
61 | | - - cp tools/.condarc ~/.condarc |
62 | | - - conda config --add channels "file://`pwd`/bld-dir" |
63 | | - - mamba create -n test python tttrconvert |
64 | | - - conda activate test |
65 | | - # Run GUI with xvfb - no X11 screen |
66 | | - - | |
67 | | - xvfb-run -a -s "-screen 0 1400x900x24 +extension RANDR" -- tttrconvert & |
68 | | - sleep 10 |
69 | | - pgrep -f tttrconvert | awk '{print "kill -9 " $1}' | sh |
| 40 | +about: |
| 41 | + home: {{ data.get('url') }} |
| 42 | + license: {{ data.get('license') }} |
| 43 | + license_file: LICENSE |
| 44 | + summary: Converter for TTTR files |
| 45 | + description: | |
| 46 | + {{ data.get('description') }} |
70 | 47 |
|
71 | | -deploy:conda: |
72 | | - stage: deploy |
73 | | - image: condaforge/mambaforge:latest |
74 | | - tags: |
75 | | - - linux |
76 | | - dependencies: |
77 | | - - build:linux |
78 | | - - build:windows |
79 | | - - build:osx |
80 | | - before_script: |
81 | | - - git submodule update --init --recursive --remote |
82 | | - script: |
83 | | - - ./tools/deploy.sh |
84 | | - |
85 | | -chisurf: |
86 | | - stage: Trigger-cross-projects |
87 | | - trigger: chisurf/chisurf |
| 48 | +extra: |
| 49 | + recipe-maintainers: |
| 50 | + - tpeulen |
0 commit comments