From a82dffb53e7d9efea6f995f5b12c19610f378bda Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Tue, 5 Dec 2023 03:23:25 -0500 Subject: [PATCH] Remove mask for environment when invoking hg as the underlying issue has been corrected. Ref #7 --- jaraco/vcs/subprocess.py | 14 -------------- newsfragments/7.feature.rst | 1 + setup.cfg | 1 - 3 files changed, 1 insertion(+), 15 deletions(-) create mode 100644 newsfragments/7.feature.rst diff --git a/jaraco/vcs/subprocess.py b/jaraco/vcs/subprocess.py index 5f5bdb6..0959d80 100644 --- a/jaraco/vcs/subprocess.py +++ b/jaraco/vcs/subprocess.py @@ -1,8 +1,6 @@ import os import subprocess -from jaraco.collections import Mask - from . import base from . import cmd @@ -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): """ diff --git a/newsfragments/7.feature.rst b/newsfragments/7.feature.rst new file mode 100644 index 0000000..431e977 --- /dev/null +++ b/newsfragments/7.feature.rst @@ -0,0 +1 @@ +Remove mask for environment when invoking hg as the underlying issue has been corrected. \ No newline at end of file diff --git a/setup.cfg b/setup.cfg index 9044e7b..faa7f9a 100644 --- a/setup.cfg +++ b/setup.cfg @@ -22,7 +22,6 @@ install_requires = jaraco.classes more_itertools jaraco.versioning - jaraco.collections [options.packages.find] exclude =