Skip to content

Commit

Permalink
use nox-poetry workaround
Browse files Browse the repository at this point in the history
from cjolowicz/nox-poetry#1116 (comment)
since py3.11 is the most recent version we support anyway, so it's ok
if it uses the most recent versions of all our dependencies
  • Loading branch information
aryarm authored Dec 22, 2023
1 parent 8df9531 commit 3d16f6e
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions noxfile.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Nox sessions."""
import os
import sys
import shutil
from pathlib import Path

Expand Down Expand Up @@ -39,20 +38,18 @@ def lint(session: Session) -> None:
session.install("black")
session.run("black", "--check", ".")


def install_handle_python_numpy(session):
"""
handle incompatibilities with python and numpy versions
see https://github.com/cjolowicz/nox-poetry/issues/1116
handle incompatibilities with python and numpy versions
see https://github.com/cjolowicz/nox-poetry/issues/1116
"""
if session._session.python == "3.11":
# TODO: change this to ".[files]" once plink-ng Alpha 3.8 is released
# https://github.com/chrchang/plink-ng/releases
session.install(".", "numpy==1.24.0")
session._session.install(".")
else:
# TODO: change this to ".[files]" once plink-ng Alpha 3.8 is released
# https://github.com/chrchang/plink-ng/releases
session.install(".")


# detect whether conda/mamba is installed
if os.getenv("CONDA_EXE"):
conda_cmd = "conda"
Expand Down

0 comments on commit 3d16f6e

Please sign in to comment.