forked from pkgxdev/pkgx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request pkgxdev#251 from teaxyz/allow-versioned-provides
Allow versioned provides
- Loading branch information
Showing
8 changed files
with
117 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
.DS_Store | ||
tea | ||
/tea | ||
|
||
# exlcluding this is temporary pre stability (ie. v1) | ||
/deno.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,6 +51,7 @@ try { | |
} | ||
} catch (err) { | ||
await err_handler(err) | ||
Deno.exit(1) | ||
} | ||
|
||
async function announce() { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { assertEquals } from "deno/testing/asserts.ts" | ||
import { sandbox } from '../utils.ts' | ||
|
||
//TODO verify that python version is actually what we request | ||
|
||
Deno.test("tea -X python", async () => { | ||
await sandbox(async ({ run }) => { | ||
const out = await run({args: ["-SX", "python", "-c", "print(1)"], net: true }).stdout() | ||
assertEquals(out, "1\n") | ||
}) | ||
}) | ||
|
||
Deno.test("tea -SX python3", async () => { | ||
await sandbox(async ({ run }) => { | ||
const out = await run({args: ["-SX", "python3", "-c", "print(2)"], net: true }).stdout() | ||
assertEquals(out, "2\n") | ||
}) | ||
}) | ||
|
||
Deno.test("tea -SX python3.11", async () => { | ||
await sandbox(async ({ run }) => { | ||
const out = await run({args: ["-SX", "python3.11", "-c", "print(3)"], net: true }).stdout() | ||
assertEquals(out, "3\n") | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters