From f1bd165c52b20ff261ee90b3be318e0959247a44 Mon Sep 17 00:00:00 2001 From: nichmor Date: Fri, 26 Apr 2024 10:48:09 +0300 Subject: [PATCH] release: v0.0.4 --- pixi.toml | 3 ++- pyproject.toml | 2 +- src/rattler_build_conda_compat/lint.py | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/pixi.toml b/pixi.toml index 356666a..c2362b7 100644 --- a/pixi.toml +++ b/pixi.toml @@ -1,6 +1,6 @@ [project] name = "rattler-build-conda-compat" -version = "0.0.3" +version = "0.0.4" description = "A package for exposing rattler-build API for conda-smithy" authors = ["nichmor "] channels = ["conda-forge"] @@ -18,6 +18,7 @@ conda-build = "*" "ruamel.yaml" = "*" conda = ">=4.2" pygithub = ">=2,<3" +tomli = "*" [pypi-dependencies] rattler-build-conda-compat = { path = ".", editable = true} diff --git a/pyproject.toml b/pyproject.toml index b64c0a0..abd20a2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,6 +10,6 @@ description="A package for exposing rattler-build API for conda-smithy" readme = "README.md" authors = [{name = "Nichita Morcotilo", email = "nichita@prefix.dev"}] license = {file = "LICENSE.txt"} -version = "0.0.3" +version = "0.0.4" requires-python = ">=3.8" diff --git a/src/rattler_build_conda_compat/lint.py b/src/rattler_build_conda_compat/lint.py index 5e9c8ac..5045043 100644 --- a/src/rattler_build_conda_compat/lint.py +++ b/src/rattler_build_conda_compat/lint.py @@ -2,7 +2,7 @@ from inspect import cleandoc import os.path -import tomllib +import tomli import github import ruamel.yaml from typing import Any, Mapping, Sequence @@ -563,7 +563,7 @@ def run_conda_forge_specific( # linter will rerun on the next commit anyway return hints_toml_str = hints_toml_req.content.decode("utf-8") - specific_hints = tomllib.loads(hints_toml_str)["hints"] + specific_hints = tomli.loads(hints_toml_str)["hints"] for rq in build_reqs + host_reqs + run_reqs: dep = rq.split(" ")[0].strip()