Skip to content

Commit

Permalink
Remove mask for environment when invoking hg as the underlying issue …
Browse files Browse the repository at this point in the history
…has been corrected.

Ref #7
  • Loading branch information
jaraco committed Dec 5, 2023
1 parent 6eda107 commit a82dffb
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 15 deletions.
14 changes: 0 additions & 14 deletions jaraco/vcs/subprocess.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import os
import subprocess

from jaraco.collections import Mask

from . import base
from . import cmd

Expand Down Expand Up @@ -36,18 +34,6 @@ class Mercurial(Subprocess, cmd.Mercurial, base.Repo):

priority = 1 + os.path.isdir('.hg')

@property
def env(self):
"""
Return an environment safe for calling an `hg` subprocess.
Removes MACOSX_DEPLOYMENT_TARGET from the env, as if there's a
mismatch between the local Python environment and the environment
in which `hg` is installed, it will cause an exception. See
https://github.com/jaraco/jaraco.vcs/issues/7 for details.
"""
return Mask(['MACOSX_DEPLOYMENT_TARGET'], os.environ)


class Git(Subprocess, cmd.Git, base.Repo):
"""
Expand Down
1 change: 1 addition & 0 deletions newsfragments/7.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove mask for environment when invoking hg as the underlying issue has been corrected.
1 change: 0 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ install_requires =
jaraco.classes
more_itertools
jaraco.versioning
jaraco.collections

[options.packages.find]
exclude =
Expand Down

0 comments on commit a82dffb

Please sign in to comment.