Skip to content

Commit

Permalink
deprecation remove (#1163)
Browse files Browse the repository at this point in the history
* remove deprecation warning

* fix deprecation warning in basebuilder.py

* update to remove xonsh deprecation warning
  • Loading branch information
stevenhua0320 committed Jul 27, 2024
1 parent 2ef70d9 commit 6237ce2
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/regolith/builders/basebuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from itertools import groupby

from jinja2 import Environment, FileSystemLoader
from xonsh.lib import subprocess
from xonsh.api import subprocess

try:
from bibtexparser.bibdatabase import BibDatabase
Expand Down
4 changes: 2 additions & 2 deletions src/regolith/database.xsh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import os
from contextlib import contextmanager
from warnings import warn

from xonsh.lib import subprocess
from xonsh.lib.os import indir
from xonsh.api import subprocess
from xonsh.api.os import indir

try:
import hglib
Expand Down
2 changes: 1 addition & 1 deletion src/regolith/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from distutils.dir_util import copy_tree
from warnings import warn

from xonsh.lib import subprocess
from xonsh.api import subprocess

try:
import hglib
Expand Down
2 changes: 1 addition & 1 deletion src/regolith/helpers/basehelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from itertools import groupby

from jinja2 import Environment, FileSystemLoader
from xonsh.lib import subprocess
from xonsh.api import subprocess

from regolith.sorters import category_val, date_key, doc_date_key, level_val
from regolith.tools import LATEX_OPTS, date_to_rfc822, gets, latex_safe, latex_safe_url, month_and_year, rfc822now
Expand Down
2 changes: 1 addition & 1 deletion src/regolith/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from contextlib import contextmanager
from warnings import warn

from xonsh.lib import subprocess
from xonsh.api import subprocess

try:
import hglib
Expand Down
2 changes: 1 addition & 1 deletion src/regolith/tests/bootstrap_builders.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import tempfile
from copy import deepcopy

from xonsh.lib import subprocess
from xonsh.api import subprocess

from regolith.broker import load_db
from regolith.fsclient import dump_yaml
Expand Down
4 changes: 2 additions & 2 deletions src/regolith/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
import pytest
from pymongo import MongoClient
from pymongo import errors as mongo_errors
from xonsh.lib import subprocess
from xonsh.lib.os import rmtree
from xonsh.api import subprocess
from xonsh.api.os import rmtree

from regolith.fsclient import dump_yaml
from regolith.schemas import EXEMPLARS
Expand Down
2 changes: 1 addition & 1 deletion src/regolith/tests/test_validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from subprocess import CalledProcessError

import pytest
from xonsh.lib import subprocess
from xonsh.api import subprocess

from regolith.main import main

Expand Down

0 comments on commit 6237ce2

Please sign in to comment.