Make the StrEnums proper Enums

This commit is contained in:
Joe Rickerby
2020-12-31 16:35:26 +00:00
parent 5b5078e5e9
commit aa871284fc
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ def get_python_configurations(
# and match the build/skip rules # and match the build/skip rules
return [ return [
c for c in python_configurations c for c in python_configurations
if any(c.identifier.endswith(arch) for arch in architectures) if any(c.identifier.endswith(arch.value) for arch in architectures)
and build_selector(c.identifier) and build_selector(c.identifier)
] ]
+2 -2
View File
@@ -123,7 +123,7 @@ class DependencyConstraints:
return f'{self.__class__.__name__}{self.base_file_path!r})' return f'{self.__class__.__name__}{self.base_file_path!r})'
class Architecture(str, Enum): class Architecture(Enum):
# mac/linux archs # mac/linux archs
x86_64 = 'x86_64' x86_64 = 'x86_64'
i686 = 'i686' i686 = 'i686'
@@ -201,7 +201,7 @@ def strtobool(val: str) -> bool:
return False return False
class CIProvider(str, Enum): class CIProvider(Enum):
travis_ci = 'travis' travis_ci = 'travis'
appveyor = 'appveyor' appveyor = 'appveyor'
circle_ci = 'circle_ci' circle_ci = 'circle_ci'