-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
684ead0
commit 8e9ea44
Showing
3 changed files
with
34 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
from argparse import ArgumentParser | ||
|
||
from packaging.version import Version | ||
|
||
parser = ArgumentParser() | ||
|
||
parser.add_argument("--python", type=Version, help="Python version") | ||
parser.add_argument("--dagster", type=Version, help="Dagster version") | ||
parser.add_argument("--ray", type=Version, help="Dagster version") | ||
|
||
|
||
def check_python_312( | ||
python: Version, | ||
dagster: Version, | ||
ray: Version, | ||
): | ||
if python > Version("3.12") and ray < Version("2.37.0"): | ||
raise RuntimeError("Ray version must be at least 2.37.0 for Python 3.12") | ||
|
||
|
||
def main(): | ||
args = parser.parse_args() | ||
check_python_312( | ||
python=args.python, | ||
dagster=args.dagster, | ||
ray=args.ray, | ||
) | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |