Make the StrEnums proper Enums
This commit is contained in:
@@ -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)
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
@@ -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'
|
||||||
|
|||||||
Reference in New Issue
Block a user