Skip to content

Commit

Permalink
feat: python 3.12 support! (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
eliassjogreen authored Oct 3, 2023
1 parent 3a5246b commit 025e9da
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
uses: actions/setup-python@v2
if: ${{ matrix.os == 'windows-latest' }}
with:
python-version: '3.11'
python-version: '3.12'

- name: Install NumPy
run: python3 -m pip install numpy
Expand Down
12 changes: 6 additions & 6 deletions ext/pip.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { kw, python, PythonError } from "../mod.ts";

import { join } from "https://deno.land/std@0.198.0/path/mod.ts";
import { ensureDir } from "https://deno.land/std@0.198.0/fs/mod.ts";
import { green, yellow } from "https://deno.land/std@0.198.0/fmt/colors.ts";
import { join } from "https://deno.land/std@0.203.0/path/mod.ts";
import { ensureDir } from "https://deno.land/std@0.203.0/fs/mod.ts";
import { green, yellow } from "https://deno.land/std@0.203.0/fmt/colors.ts";

import type { CacheLocation } from "https://deno.land/x/plug@1.0.2/types.ts";
import { ensureCacheLocation } from "https://deno.land/x/plug@1.0.2/download.ts";
import { hash } from "https://deno.land/x/plug@1.0.2/util.ts";
import type { CacheLocation } from "https://deno.land/x/plug@1.0.3/types.ts";
import { ensureCacheLocation } from "https://deno.land/x/plug@1.0.3/download.ts";
import { hash } from "https://deno.land/x/plug@1.0.3/util.ts";

const sys = python.import("sys");
const runpy = python.import("runpy");
Expand Down
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, 11], [3, 10], [3, 9], [3, 8]];
const SUPPORTED_VERSIONS = [[3, 12], [3, 11], [3, 10], [3, 9], [3, 8]];
const DENO_PYTHON_PATH = Deno.env.get("DENO_PYTHON_PATH");

if (DENO_PYTHON_PATH) {
Expand Down

0 comments on commit 025e9da

Please sign in to comment.