Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 17 additions & 10 deletions recipes/small_time/recipe.yaml
Original file line number Diff line number Diff line change
@@ -1,34 +1,41 @@
context:
version: "25.4.1"
version: "25.7.0"
mojo_version: "=0.25.7"

package:
name: "small_time"
version: ${{ version }}

source:
- git: https://github.com/thatstoasty/small-time.git
rev: 5eb887d8efcf2d401d7ebef82f332550bcffbdb9
rev: 0dbf6349ef13d7009abca777702146b1438ff5fe

build:
number: 0
script:
- mojo package src/small_time -o ${{ PREFIX }}/lib/mojo/small_time.mojopkg
- mojo package small_time -o ${{ PREFIX }}/lib/mojo/small_time.mojopkg
requirements:
build:
- mojo-compiler ${{ mojo_version }}
host:
- max =25.4
- mojo-compiler ${{ mojo_version }}
run:
- ${{ pin_compatible('max') }}
- mojo-compiler ${{ mojo_version }}

tests:
- script:
- if: unix
then:
- mojo test test
- sh -c 'find ./test -name test_*.mojo | xargs -I % pixi run mojo run -I . -D ASSERT=all %'
requirements:
build:
- mojo ${{ mojo_version }}
run:
- mojo ${{ mojo_version }}
files:
recipe:
- test_small_time.mojo
- test_time_delta.mojo
- test_time_zone.mojo
source:
- small_time/
- test/

about:
homepage: https://github.com/thatstoasty/small-time
Expand Down