Skip to content

Commit

Permalink
Merge pull request #274 from mdekstrand/fix/toml-import
Browse files Browse the repository at this point in the history
Fix flit-conda build (for now)
  • Loading branch information
mdekstrand committed Oct 19, 2021
2 parents 91060fc + 0aec03a commit a311984
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
shell: bash
run: |
conda clean -i
conda install -qy -c conda-forge flit packaging pyyaml
conda install -qy -c conda-forge flit packaging pyyaml tomli
e_opts="-E ${{matrix.blas}}"
if [ $RUNNER = Linux -a $PYVER = 3.8 ]; then
echo "Using most extras"
Expand Down Expand Up @@ -121,7 +121,7 @@ jobs:
shell: bash
run: |
conda clean -i
conda install -qy -c conda-forge flit packaging pyyaml
conda install -qy -c conda-forge flit packaging pyyaml tomli
python build-tools/flit-conda.py -E tf --python-version $PYVER --save-env environment.yml
cat environment.yml
env:
Expand Down Expand Up @@ -176,7 +176,7 @@ jobs:
shell: bash
run: |
conda clean -i
conda install -qy -c conda-forge flit-core packaging pyyaml
conda install -qy -c conda-forge flit-core packaging pyyaml tomli
python build-tools/flit-conda.py -E demo -E mkl --python-version $PYVER --save-env environment.yml
cat environment.yml
env:
Expand Down
5 changes: 3 additions & 2 deletions build-tools/flit-conda.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
import subprocess
from pathlib import Path
import argparse
from flit_core.config import read_flit_config, toml
import tomli
from flit_core.config import read_flit_config
from packaging.requirements import Requirement
from packaging.markers import default_environment

Expand Down Expand Up @@ -45,7 +46,7 @@ def parse_args():
def load_project():
tp = Path('pyproject.toml')
fc = read_flit_config(tp)
pyp = toml.loads(tp.read_text())
pyp = tomli.loads(tp.read_text())
return pyp, fc


Expand Down

0 comments on commit a311984

Please sign in to comment.