Skip to content

Commit 2984474

Browse files
authored
Update small-time to support Mojo 0.25.7 (#188)
* Update small-time to support Mojo 0.25.7 * Fix build script path in recipe.yaml
1 parent 0307323 commit 2984474

File tree

1 file changed

+17
-10
lines changed

1 file changed

+17
-10
lines changed

recipes/small_time/recipe.yaml

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,41 @@
11
context:
2-
version: "25.4.1"
2+
version: "25.7.0"
3+
mojo_version: "=0.25.7"
34

45
package:
56
name: "small_time"
67
version: ${{ version }}
78

89
source:
910
- git: https://github.com/thatstoasty/small-time.git
10-
rev: 5eb887d8efcf2d401d7ebef82f332550bcffbdb9
11+
rev: 0dbf6349ef13d7009abca777702146b1438ff5fe
1112

1213
build:
1314
number: 0
1415
script:
15-
- mojo package src/small_time -o ${{ PREFIX }}/lib/mojo/small_time.mojopkg
16+
- mojo package small_time -o ${{ PREFIX }}/lib/mojo/small_time.mojopkg
1617
requirements:
18+
build:
19+
- mojo-compiler ${{ mojo_version }}
1720
host:
18-
- max =25.4
21+
- mojo-compiler ${{ mojo_version }}
1922
run:
20-
- ${{ pin_compatible('max') }}
23+
- mojo-compiler ${{ mojo_version }}
2124

2225
tests:
2326
- script:
2427
- if: unix
2528
then:
26-
- mojo test test
29+
- sh -c 'find ./test -name test_*.mojo | xargs -I % pixi run mojo run -I . -D ASSERT=all %'
30+
requirements:
31+
build:
32+
- mojo ${{ mojo_version }}
33+
run:
34+
- mojo ${{ mojo_version }}
2735
files:
28-
recipe:
29-
- test_small_time.mojo
30-
- test_time_delta.mojo
31-
- test_time_zone.mojo
36+
source:
37+
- small_time/
38+
- test/
3239

3340
about:
3441
homepage: https://github.com/thatstoasty/small-time

0 commit comments

Comments
 (0)