Skip to content

Commit

Permalink
Nox try to install numba only for python < 3.12 (not yet supported)
Browse files Browse the repository at this point in the history
  • Loading branch information
paugier committed Jan 15, 2024
1 parent 99d4aaa commit 9d87103
Show file tree
Hide file tree
Showing 4 changed files with 242 additions and 246 deletions.
1 change: 1 addition & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,5 +131,6 @@ release:package:
variables:
PDM_PUBLISH_USERNAME: __token__
script:
- python -m pip install pdm
- pdm publish --no-build
needs: [ "build:package" ]
6 changes: 6 additions & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import os
import sys
from packaging import version

import nox

Expand All @@ -14,6 +16,10 @@ def _install_base(session):
command = "pdm install -G base_test"
session.run_always(*command.split(), external=True)

py_version = session.python if session.python is not None else sys.version.split(maxsplit=1)[0]
if version.parse(py_version) < version.parse("3.12"):
session.run_always("pip", "install", "numba")


@nox.session
def test_without_pythran(session):
Expand Down
Loading

0 comments on commit 9d87103

Please sign in to comment.