added conditional statements
for copying "requirements.txt" from "dimcli.egg-info/requires.txt"
copy only-if "requirements.txt" is not present already
@@ -17,8 +17,10 @@ build:
- dimcli = dimcli.main_cli:main_cli
- dimcli_quicktest = dimcli.tests.quicktest:main
script:
- - cp dimcli.egg-info/requires.txt requirements.txt # [not win]
- - COPY dimcli.egg-info\requires.txt requirements.txt # [win]
+ {% reqfile = "requirements.txt" %}
+ {% reqsource = "dimcli.egg-info/requires.txt" %}
+ - test -f {{ reqfile }} && cp {{ reqsource }} {{ reqfile }} # [not win]
+ - IF NOT EXIST {{ reqfile }} COPY {{ reqsource }} {{ reqfile }} && EXIT # [win]
- {{ PYTHON }} -m pip install . -vv
requirements:
