GitHub Actions: do not install six in CI (#37361)

* GitHub Actions: do not install six in CI
* Remove workflow code that was commented out
* Remove any use of "six" from packages
This commit is contained in:
Massimiliano Culpo
2023-05-02 19:28:24 +02:00
committed by GitHub
parent 131e1c0937
commit 68a4b2e4e4
9 changed files with 19 additions and 104 deletions

View File

@@ -3,8 +3,6 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from six import string_types
import spack.platforms
from spack.package import *
from spack.pkg.builtin.mock.multimethod_base import MultimethodBase
@@ -102,7 +100,7 @@ def has_a_default(self):
@when("target=" + target.name)
def different_by_target(self):
if isinstance(self.spec.architecture.target, string_types):
if isinstance(self.spec.architecture.target, str):
return self.spec.architecture.target
else:
return self.spec.architecture.target.name