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 f2dd1ab
Show file tree
Hide file tree
Showing 4 changed files with 247 additions and 251 deletions.
11 changes: 6 additions & 5 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ image:build:
stage: image
tags:
- container-registry-push
# rules:
# - if: '$CI_PIPELINE_SOURCE == "schedule"'
# - if: '$CI_BUILD_IMAGES == "1"'
rules:
- if: '$CI_PIPELINE_SOURCE == "schedule"'
- if: '$CI_BUILD_IMAGES == "1"'
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [ "" ]
Expand All @@ -42,8 +42,8 @@ image:build:
--dockerfile $CI_PROJECT_DIR/docker/Dockerfile
--single-snapshot
--cleanup
--destination registry.heptapod.net:443/fluiddyn/transonic/ci/default:stable
# --destination registry.heptapod.net:443/fluiddyn/transonic/ci/$CI_COMMIT_HG_BRANCH:stable
--destination registry.heptapod.net:443/fluiddyn/transonic/ci/$CI_COMMIT_HG_BRANCH:stable
# --destination registry.heptapod.net:443/fluiddyn/transonic/ci/default:stable
validate_code:
stage: lint
Expand Down 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 f2dd1ab

Please sign in to comment.