Skip to content

Commit efc0e44

Browse files
ENH: update package version to 3.0.0 (#99)
automerged PR by conda-forge/automerge-action
2 parents 4da2faf + 2ad2244 commit efc0e44

File tree

10 files changed

+116
-99
lines changed

10 files changed

+116
-99
lines changed

.azure-pipelines/azure-pipelines-linux.yml

Lines changed: 0 additions & 44 deletions
This file was deleted.

.github/workflows/conda-build.yml

Lines changed: 102 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,110 @@
1-
# This file was added automatically by admin-migrations. Do not modify.
2-
# It ensures that Github Actions can run once rerendered for the first time.
1+
# This file was generated automatically from conda-smithy. To update this configuration,
2+
# update the conda-forge.yml and/or the recipe/meta.yaml.
33
# -*- mode: yaml -*-
44

55
name: Build conda package
66
on:
7-
workflow_dispatch:
7+
push:
8+
9+
pull_request:
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
13+
cancel-in-progress: true
814

915
jobs:
1016
build:
11-
name: Disabled build
12-
runs-on: ubuntu-slim
13-
if: false
17+
name: ${{ matrix.CONFIG }}
18+
runs-on: ${{ matrix.runs_on }}
19+
timeout-minutes: 360
20+
strategy:
21+
fail-fast: false
22+
max-parallel: 50
23+
matrix:
24+
include:
25+
- CONFIG: linux_64_
26+
UPLOAD_PACKAGES: True
27+
os: ubuntu
28+
runs_on: ['ubuntu-latest']
29+
DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9
1430
steps:
15-
- run: exit 0
31+
32+
- name: Checkout code
33+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
34+
35+
- name: Build on Linux
36+
id: build-linux
37+
if: matrix.os == 'ubuntu'
38+
env:
39+
CONFIG: ${{ matrix.CONFIG }}
40+
UPLOAD_PACKAGES: ${{ matrix.UPLOAD_PACKAGES }}
41+
DOCKER_IMAGE: ${{ matrix.DOCKER_IMAGE }}
42+
CI: github_actions
43+
CONDA_FORGE_DOCKER_RUN_ARGS: "${{ matrix.CONDA_FORGE_DOCKER_RUN_ARGS }}"
44+
BINSTAR_TOKEN: ${{ secrets.BINSTAR_TOKEN }}
45+
FEEDSTOCK_TOKEN: ${{ secrets.FEEDSTOCK_TOKEN }}
46+
STAGING_BINSTAR_TOKEN: ${{ secrets.STAGING_BINSTAR_TOKEN }}
47+
shell: bash
48+
run: |
49+
if [[ "$(uname -m)" == "x86_64" ]]; then
50+
echo "::group::Configure binfmt_misc"
51+
docker run --rm --privileged multiarch/qemu-user-static:register --reset --credential yes
52+
fi
53+
export flow_run_id="github_$GITHUB_RUN_ID"
54+
export remote_url="https://github.com/$GITHUB_REPOSITORY"
55+
export sha="$GITHUB_SHA"
56+
export FEEDSTOCK_NAME="$(basename $GITHUB_REPOSITORY)"
57+
export GIT_BRANCH="$(basename $GITHUB_REF)"
58+
if [[ "${GITHUB_EVENT_NAME}" == "pull_request" ]]; then
59+
export IS_PR_BUILD="True"
60+
else
61+
export IS_PR_BUILD="False"
62+
fi
63+
echo "::endgroup::"
64+
./.scripts/run_docker_build.sh
65+
66+
- name: Build on macOS
67+
id: build-macos
68+
if: matrix.os == 'macos'
69+
env:
70+
CONFIG: ${{ matrix.CONFIG }}
71+
UPLOAD_PACKAGES: ${{ matrix.UPLOAD_PACKAGES }}
72+
CI: github_actions
73+
BINSTAR_TOKEN: ${{ secrets.BINSTAR_TOKEN }}
74+
FEEDSTOCK_TOKEN: ${{ secrets.FEEDSTOCK_TOKEN }}
75+
STAGING_BINSTAR_TOKEN: ${{ secrets.STAGING_BINSTAR_TOKEN }}
76+
shell: bash
77+
run: |
78+
export flow_run_id="github_$GITHUB_RUN_ID"
79+
export remote_url="https://github.com/$GITHUB_REPOSITORY"
80+
export sha="$GITHUB_SHA"
81+
export FEEDSTOCK_NAME="$(basename $GITHUB_REPOSITORY)"
82+
export GIT_BRANCH="$(basename $GITHUB_REF)"
83+
if [[ "${GITHUB_EVENT_NAME}" == "pull_request" ]]; then
84+
export IS_PR_BUILD="True"
85+
else
86+
export IS_PR_BUILD="False"
87+
fi
88+
./.scripts/run_osx_build.sh
89+
90+
- name: Build on windows
91+
id: build-windows
92+
if: matrix.os == 'windows'
93+
shell: cmd
94+
run: |
95+
set "flow_run_id=github_%GITHUB_RUN_ID%"
96+
set "remote_url=https://github.com/%GITHUB_REPOSITORY%"
97+
set "sha=%GITHUB_SHA%"
98+
call ".scripts\run_win_build.bat"
99+
env:
100+
# default value; make it explicit, as it needs to match with artefact
101+
# generation below. Not configurable for now, can be revisited later
102+
CONDA_BLD_DIR: C:\bld
103+
MINIFORGE_HOME: ${{ contains(runner.arch, 'ARM') && 'C' || 'D' }}:\Miniforge
104+
PYTHONUNBUFFERED: 1
105+
CONFIG: ${{ matrix.CONFIG }}
106+
CI: github_actions
107+
UPLOAD_PACKAGES: ${{ matrix.UPLOAD_PACKAGES }}
108+
BINSTAR_TOKEN: ${{ secrets.BINSTAR_TOKEN }}
109+
FEEDSTOCK_TOKEN: ${{ secrets.FEEDSTOCK_TOKEN }}
110+
STAGING_BINSTAR_TOKEN: ${{ secrets.STAGING_BINSTAR_TOKEN }}

.scripts/build_steps.sh

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

LICENSE.txt

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 3 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

azure-pipelines.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

build-locally.py

Lines changed: 1 addition & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pixi.toml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

recipe/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ $PYTHON -m pip install -vv --no-deps .
44

55
mkdir -p "$PREFIX"/bin
66
POST_LINK="$PREFIX"/bin/.mache-post-link.sh
7-
cp "$SRC_DIR"/conda/post-link.sh "$POST_LINK"
7+
cp "$RECIPE_DIR"/post-link.sh "$POST_LINK"
88
chmod +x "$POST_LINK"

recipe/recipe.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ schema_version: 1
22

33
context:
44
name: mache
5-
version: 2.1.0
5+
version: "3.0.0"
66

77
package:
88
name: ${{ name|lower }}
99
version: ${{ version }}
1010

1111
source:
1212
url: https://github.com/E3SM-Project/mache/archive/refs/tags/${{ version }}.tar.gz
13-
sha256: 8a11da8fa01820b216b33fc9c7d721604bf36d56bd61cc4866c893d2a7e3d327
13+
sha256: 8449b8fa120b2420c8d4170fcea2d0a3f90298c32e5d2ba477874c03fbb70504
1414

1515
build:
1616
number: 1
@@ -43,6 +43,10 @@ tests:
4343
run:
4444
- python ${{ python_min }}.*
4545
script:
46+
- mache deploy init --help
47+
- mache deploy update --help
48+
- mache deploy run --help
49+
- mache jigsaw install --help
4650
- mache sync diags --help
4751

4852
about:

0 commit comments

Comments
 (0)