Skip to content

Commit 4250881

Browse files
Merge branch 'main' into bump-zarr_3.1.2_to_3.1.3_for_emscripten-4x
2 parents 00bbdb2 + 9f224c7 commit 4250881

File tree

498 files changed

+17757
-30755
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

498 files changed

+17757
-30755
lines changed

.github/copilot-instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ To build the recipe you worked on with rattler-build with:
9191

9292
rattler-build build \
9393
--package-format tar-bz2 \
94-
-c https://repo.prefix.dev/emscripten-forge-dev \
94+
-c https://repo.prefix.dev/emscripten-forge-4x \
9595
-c microsoft \
9696
-c conda-forge \
9797
--target-platform emscripten-wasm32 \

.github/workflows/build_docs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
# SETUP
2525
################################################################
2626
- name: Checkout repo
27-
uses: actions/checkout@v5
27+
uses: actions/checkout@v6
2828
with:
2929
fetch-depth: 0
3030

.github/workflows/build_recipes.yaml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Build Recipes
33
on:
44
push:
55
branches:
6-
- "emscripten-4x"
6+
- "main"
77
paths:
88
- "recipes/**"
99
pull_request:
@@ -15,6 +15,7 @@ jobs:
1515
build_recipes:
1616
runs-on: ubuntu-latest
1717
env:
18+
FORCE_COLOR: 1
1819
TARGET_PLATFORM: emscripten-wasm32
1920
GITHUB_OWNER: "emscripten-forge"
2021
strategy:
@@ -25,17 +26,10 @@ jobs:
2526
# SETUP
2627
################################################################
2728
- name: Checkout repo
28-
uses: actions/checkout@v5
29+
uses: actions/checkout@v6
2930
with:
3031
fetch-depth: 0
3132

32-
- name: Maximize build space
33-
run: |
34-
sudo rm -rf /usr/share/dotnet
35-
sudo rm -rf /opt/ghc
36-
sudo rm -rf "/usr/local/share/boost"
37-
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
38-
3933
- name: apt-install playwright dependencies
4034
run: |
4135
sudo apt-get update -y && sudo apt-get install -y \
@@ -76,7 +70,7 @@ jobs:
7670
shell: bash -el {0}
7771
if: github.event_name == 'push'
7872
run: |
79-
python -m emci build changed $GITHUB_WORKSPACE/ origin/emscripten-4x~1 origin/emscripten-4x
73+
python -m emci build changed $GITHUB_WORKSPACE/ origin/main~1 origin/main
8074
8175
################################################################
8276
# PULL_REQUEST
@@ -85,7 +79,7 @@ jobs:
8579
shell: bash -el {0}
8680
if: github.event_name == 'pull_request'
8781
run: |
88-
python -m emci build changed $GITHUB_WORKSPACE/ origin/emscripten-4x HEAD
82+
python -m emci build changed $GITHUB_WORKSPACE/ origin/main HEAD
8983
9084
################################################################
9185
# UPLOAD

.github/workflows/copilot-setup-steps.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
steps:
2828

2929
- name: Checkout repo
30-
uses: actions/checkout@v5
30+
uses: actions/checkout@v6
3131
with:
3232
fetch-depth: 0
33-
- uses: prefix-dev/setup-pixi@v0.9.0
33+
- uses: prefix-dev/setup-pixi@v0.9.0

.github/workflows/delete_package.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ def main():
66
parser = argparse.ArgumentParser(description='Delete a package from prefix.dev')
77
parser.add_argument('--token', required=True, help='API token')
88
parser.add_argument('--package', required=True, help='Package file name')
9-
9+
parser.add_argument('--channel', required=True, help='Package file name')
1010
args = parser.parse_args()
1111

1212
token = args.token
1313
package_file_name = args.package
14+
channel = args.channel
1415

1516
base_url = "https://prefix.dev/api/v1"
16-
channel = "emscripten-forge-dev"
1717
subdir = "emscripten-wasm32"
1818
headers = {"Authorization": f"Bearer {token}"}
1919
delete_url = f"{base_url}/delete/{channel}/{subdir}/{package_file_name}"

.github/workflows/delete_package.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,17 @@ on:
77
description: Name of the package to be deleted
88
required: true
99
default: myBadPackage-9.4.0-py313h6e18b15_0.tar.bz2
10+
channel_name:
11+
description: Name of the channel
12+
required: true
13+
default: emscripten-forge-4x
1014

1115
jobs:
1216
delete_package:
1317
runs-on: ubuntu-latest
1418
steps:
1519
- name: Checkout repo
16-
uses: actions/checkout@v5
20+
uses: actions/checkout@v6
1721

1822
- name: Install micromamba
1923
uses: mamba-org/setup-micromamba@v2
@@ -29,7 +33,10 @@ jobs:
2933
env:
3034
PREFIX_DEV_API_KEY: ${{ secrets.PREFIX_DEV_API_KEY }}
3135
PACKAGE_NAME: ${{ github.event.inputs.package_name }}
36+
CHANNEL_NAME: ${{ github.event.inputs.channel_name }}
3237
run: |
3338
python .github/workflows/delete_package.py \
34-
--token "$PREFIX_DEV_API_KEY" --package "$PACKAGE_NAME"
39+
--token "$PREFIX_DEV_API_KEY" \
40+
--package "$PACKAGE_NAME" \
41+
--channel "$CHANNEL_NAME"
3542

.github/workflows/lint_recipes.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: Checkout repo
18-
uses: actions/checkout@v5
18+
uses: actions/checkout@v6
1919
with:
2020
fetch-depth: 0
2121
ref: ${{ github.sha }}
2222

23-
- name: Fetch emscripten-4x branch
24-
run: git fetch origin emscripten-4x
23+
- name: Fetch main branch
24+
run: git fetch origin main
2525

2626
- name: Install micromamba
2727
uses: mamba-org/setup-micromamba@v2
@@ -36,7 +36,7 @@ jobs:
3636
set -e
3737
3838
if [ "${{ github.event_name }}" = "pull_request" ]; then
39-
BASE_REF="origin/emscripten-4x"
39+
BASE_REF="origin/main"
4040
HEAD_REF="HEAD"
4141
else
4242
BASE_REF="HEAD~1"

.github/workflows/new_versions.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,18 @@ on:
55
schedule:
66
- cron: '0 0 * * *'
77

8+
89
jobs:
910

1011
update_versions:
1112
strategy:
1213
matrix:
13-
branch: [main]
14+
branch: [main, emscripten-3x]
1415

1516
if: (github.event_name == 'schedule' && github.repository == 'emscripten-forge/recipes') || (github.event_name != 'schedule')
1617
runs-on: [ubuntu-latest]
1718
steps:
18-
- uses: actions/checkout@v5
19+
- uses: actions/checkout@v6
1920
with:
2021
ref: main
2122

@@ -26,6 +27,6 @@ jobs:
2627

2728
- name: Determine new package version and open/merge PRs
2829
shell: bash -l -eo pipefail {0}
29-
run: python -m emci bot bump-recipes-versions ${{ matrix.branch }}
30+
run: python -m emci bot bump-recipes-versions ${{ matrix.branch }}
3031
env:
3132
GITHUB_TOKEN: ${{ secrets.BOT_ACCESS_TOKEN }}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Matplotlib Fontcache Update Bot
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '0 0 * * *'
7+
8+
jobs:
9+
10+
update_matplotlib_fontcache:
11+
strategy:
12+
fail-fast: false
13+
14+
if: (github.event_name == 'schedule' && github.repository == 'emscripten-forge/recipes') || (github.event_name != 'schedule')
15+
runs-on: [ubuntu-latest]
16+
steps:
17+
- uses: actions/checkout@v6
18+
with:
19+
ref: ${{ matrix.branch }}
20+
21+
- name: Install micromamba
22+
uses: mamba-org/setup-micromamba@v2
23+
with:
24+
environment-file: ci_env.yml
25+
create-args: >-
26+
microsoft::playwright
27+
pyjs_code_runner
28+
29+
- name: Update matplotlib font cache if needed
30+
shell: bash -l -eo pipefail {0}
31+
run: |
32+
playwright install
33+
python -m emci bot update-matplotlib-fontcache main
34+
env:
35+
GITHUB_TOKEN: ${{ secrets.BOT_ACCESS_TOKEN }}

docs/development/adding_packages.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,3 +144,39 @@ requirements:
144144
* [cryptography](https://github.com/emscripten-forge/recipes/tree/main/recipes/recipes_emscripten/cryptography)
145145
* [pydantic-core](https://github.com/emscripten-forge/recipes/tree/main/recipes/recipes_emscripten/cryptography)
146146
* [pycrdt](https://github.com/emscripten-forge/recipes/tree/main/recipes/recipes_emscripten/pycrdt)
147+
148+
## R Packages
149+
150+
For a package without dependencies of other R packages, only these requirements are usually necessary:
151+
152+
```yaml
153+
requirements:
154+
build:
155+
- cross-r-base_${{ target_platform }}
156+
- ${{ compiler("c") }}
157+
```
158+
159+
Some R packages use the [Rcpp] package for a seamless integration of R and C++. [Rcpp] and all other R-dependencies must be in all 3 `requirements` sections (`build`, `host`, and `run`). For example,
160+
161+
```yaml
162+
requirements:
163+
build:
164+
- cross-r-base_${{ target_platform }}
165+
- ${{ compiler("c") }}
166+
- r-rcpp
167+
host:
168+
- r-rcpp
169+
run:
170+
- r-rcpp
171+
```
172+
173+
There needs to be 2 urls because very frequently the first one is not reachable.
174+
175+
For the tests, we only check that the shared library for the package exists. Eventually we should be able to load the package and do actual tests, but that's not available yet.
176+
177+
**Example recipes**:
178+
179+
* [r-yaml](https://github.com/emscripten-forge/recipes/blob/main/recipes/recipes_emscripten/r-yaml/)
180+
* [r-plyr](https://github.com/emscripten-forge/recipes/blob/main/recipes/recipes_emscripten/r-plyr/)
181+
182+
[Rcpp]: https://cran.r-project.org/web/packages/Rcpp/index.html

0 commit comments

Comments
 (0)