Skip to content

Commit

Permalink
Add small time (#23)
Browse files Browse the repository at this point in the history
* Add small-time package

* Set build number to 0

* Remove comments

* Also run wiorkflow on synchronize
  • Loading branch information
Hofer-Julian authored Nov 21, 2024
1 parent 2c33349 commit bec32df
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
40 changes: 40 additions & 0 deletions recipes/small-time/recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
context:
version: "0.0.1"

package:
name: "small-time"
version: ${{ version }}

source:
- git: https://github.com/thatstoasty/small-time.git
rev: 54f579686cf56e021b8c02a07868fcca8dbc8d49

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

tests:
- script:
- if: unix
then:
- mojo run test.mojo
files:
recipe:
- test.mojo

about:
homepage: https://github.com/thatstoasty/small-time
license: Apache-2.0
license_file: LICENSE
summary: Datetime library
repository: https://github.com/thatstoasty/small-time

extra:
maintainers:
- Hofer-Julian
4 changes: 4 additions & 0 deletions recipes/small-time/test.mojo
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import small_time

fn main():
print("Test succeeded")

0 comments on commit bec32df

Please sign in to comment.