Skip to content

Commit

Permalink
feat: callbacks support (#21)
Browse files Browse the repository at this point in the history
* callbacks support
* fix for latest deno version
  • Loading branch information
DjDeveloperr authored Jun 25, 2022
1 parent 610ca0f commit 2a081ad
Show file tree
Hide file tree
Showing 8 changed files with 171 additions and 63 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ jobs:
with:
deno-version: v1.x

- name: Setup Python 3.9 (Windows)
- name: Setup Python 3.10 (Windows)
uses: actions/setup-python@v2
if: ${{ matrix.os == 'windows-latest' }}
with:
python-version: '3.9'
python-version: '3.10'

- name: Install NumPy
run: python3 -m pip install numpy
Expand Down
5 changes: 5 additions & 0 deletions deno.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"tasks": {
"test": "deno test --unstable -A test/test.ts"
}
}
1 change: 1 addition & 0 deletions mod.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export * from "./src/python.ts";
export { python as default } from "./src/python.ts";
2 changes: 1 addition & 1 deletion src/ffi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { postSetup } from "./util.ts";

const searchPath: string[] = [];

const SUPPORTED_VERSIONS = [[3, 9], [3, 10], [3, 8]];
const SUPPORTED_VERSIONS = [[3, 10], [3, 9], [3, 8]];
const DENO_PYTHON_PATH = Deno.env.get("DENO_PYTHON_PATH");

if (DENO_PYTHON_PATH) {
Expand Down
Loading

0 comments on commit 2a081ad

Please sign in to comment.