Skip to content

Commit

Permalink
Remove tomli and tomli-w
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleFromNVIDIA committed May 10, 2024
1 parent e4f176b commit 104a94e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
3 changes: 1 addition & 2 deletions dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ dependencies:
- PyYAML
- packaging
- rapids-dependency-file-generator>=1.13.3,<2.0.dev0
- tomli
- tomli-w
- tomlkit
test:
common:
- output_types: [conda, requirements, pyproject]
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ dependencies = [
"PyYAML",
"packaging",
"rapids-dependency-file-generator>=1.13.3,<2.0.dev0",
"tomli",
"tomli-w",
"tomlkit",
] # This list was generated by `rapids-dependency-file-generator`. To make changes, edit dependencies.yaml and run `rapids-dependency-file-generator`.
license = { text = "Apache 2.0" }
readme = { file = "README.md", content-type = "text/markdown" }
Expand Down
11 changes: 5 additions & 6 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
from pathlib import Path

import pytest
import tomli
import tomli_w
import tomlkit
from jinja2 import Environment, FileSystemLoader
from packaging.version import parse as parse_version

Expand Down Expand Up @@ -179,14 +178,14 @@ def wheelhouse(tmp_path_factory, pip_cache):
)

pyproject_file = rapids_build_backend_build_dir / "pyproject.toml"
with open(pyproject_file, "rb") as f:
pyproject = tomli.load(f)
with open(pyproject_file) as f:
pyproject = tomlkit.load(f)
project_data = pyproject["project"]

version = parse_version(project_data["version"])
project_data["version"] = f"{version.major + 1}.{version.minor}.{version.micro}"
with open(pyproject_file, "wb") as f:
tomli_w.dump(pyproject, f)
with open(pyproject_file, "w") as f:
tomlkit.dump(pyproject, f)

subprocess.run(
[
Expand Down

0 comments on commit 104a94e

Please sign in to comment.