Black formatting and AppVeyor handling

This commit is contained in:
Jeremy Wright
2022-05-20 14:05:03 -04:00
parent 44413e5a6d
commit ddceab1025

View File

@ -18,12 +18,16 @@ version = "2.1"
reqs = [] reqs = []
# ReadTheDocs and AppVeyor will break if we do not handle the separately
is_rtd = False is_rtd = False
is_appveyor = False
if "READTHEDOCS" in os.environ: if "READTHEDOCS" in os.environ:
is_rtd = os.environ['READTHEDOCS'] is_rtd = os.environ["READTHEDOCS"]
if "APPVEYOR" in os.environ:
is_appveyor = os.environ["APPVEYOR"]
print(is_rtd) # Only include the installation dependencies if we are not running on RTD or AppVeyor
if not is_rtd: if not is_rtd and not is_appveyor:
reqs = [ reqs = [
"cadquery-ocp", "cadquery-ocp",
"ezdxf", "ezdxf",