Skip to content

Commit f4d6f1a

Browse files
committed
t1
1 parent 74f1ceb commit f4d6f1a

File tree

3 files changed

+13
-19
lines changed

3 files changed

+13
-19
lines changed

.github/workflows/python-CI.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ name: Python Continuous integration
1010
jobs:
1111
tests:
1212
strategy:
13-
fail-fast: true
13+
fail-fast: false
1414
matrix:
15-
# os: ["windows", "ubuntu", "macos"]
16-
os: ["ubuntu"]
15+
os: ["windows", "ubuntu", "macos"]
16+
# os: ["ubuntu"]
1717
# python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
18-
python-version: ["3.9", "3.12", "3.13"]
18+
python-version: ["3.9", "3.13"]
1919
name: ${{ matrix.os }} tests with python ${{ matrix.python-version }}
2020
runs-on: ${{ matrix.os }}-latest
2121
steps:
@@ -29,6 +29,4 @@ jobs:
2929
with:
3030
python-versions: ${{ matrix.python-version }}
3131
- name: Test with Nox
32-
env:
33-
UV_SYSTEM_PYTHON: 1
3432
run: nox --non-interactive --error-on-missing-interpreter -p ${{ matrix.python-version }}

noxfile.py

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,19 @@
44

55

66
@nox.session(python=["3.9", "3.10", "3.11", "3.12", "3.13"])
7-
def tests(session):
8-
# session.run("pip", "install", "poetry==1.3.0")
9-
10-
# uv_export = "uv export --locked --no-hashes --group dev --group test -o deps.txt"
11-
# uv_export = "uv export --locked --no-hashes --group dev --group test -o deps.txt --no-install-project"
7+
def tests(session: nox.Session):
8+
# print(session.python)
9+
# return
10+
session.install("uv", "maturin", "-U")
11+
# uv_export = "uv export --no-hashes --group dev --group test -o deps.txt --no-install-project"
1212
uv_export = "uv export --no-hashes --group dev --group test -o deps.txt --no-install-project"
1313
uv_pip_install = "uv pip sync deps.txt"
1414

15-
session.run("pip", "install", "uv")
1615
session.run(*uv_export.split(" "))
1716
session.run(*uv_pip_install.split(" "))
18-
session.run("uv", "pip", "install", "maturin")
1917

20-
maturin_build = "maturin build -i python --out dist"
18+
# maturin_build = "maturin develop"
19+
maturin_build = "maturin pep517 build-wheel --editable -o dist"
2120

2221
if sys.platform == "darwin":
2322
session.run("rustup", "target", "add", "x86_64-apple-darwin")
@@ -26,9 +25,6 @@ def tests(session):
2625

2726
session.run(*maturin_build.split(" "))
2827
session.run("uv", "pip", "install", "--no-index", "--find-links=dist/", "robyn")
29-
session.run("whereis", "pytest")
30-
session.run("which", "pytest")
31-
# session.run("uv", "run", "pytest")
3228
session.run("pytest")
3329

3430

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build-system]
2-
requires = ["maturin>=0.12,<0.13"]
2+
requires = ["maturin==1.9.3"]
33
build-backend = "maturin"
44

55
[project]
@@ -52,7 +52,7 @@ dev = [
5252
"black==23.1",
5353
"commitizen==2.40",
5454
"isort==5.11.5",
55-
"maturin==0.14.12",
55+
"maturin==1.9.3",
5656
"pre-commit==2.21.0",
5757
"ruff==0.1.3",
5858
]

0 commit comments

Comments
 (0)