-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
4 changed files
with
23 additions
and
5 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
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,18 @@ | ||
""" | ||
This is to avoid the fractions.gcd import done in networkx (used by sceptre) | ||
Once this issue is resolved https://github.com/Sceptre/sceptre/issues/942 | ||
we can update sceptre and remove this logic | ||
""" | ||
import fractions | ||
|
||
try: | ||
fractions.gcd | ||
except AttributeError: | ||
from math import gcd | ||
|
||
setattr(fractions, "gcd", gcd) | ||
|
||
from sceptre.cli.helpers import setup_logging # noqa | ||
from sceptre.context import SceptreContext # noqa | ||
from sceptre.plan.plan import SceptrePlan # noqa |