Skip to content
Snippets Groups Projects
Commit b9b5ac9d authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

Add a check for python -m pip install line

parent 04c01a23
No related branches found
No related tags found
1 merge request!252Add a check for python -m pip install line
Pipeline #54687 canceled
......@@ -1021,6 +1021,18 @@ def check():
f"pyprojecttoml"
)
# check if the package uses pip to install itself
path = "conda/meta.yaml"
if os.path.isfile(path):
with open(path) as f:
content = f.read()
if '- "{{ PYTHON }} -m pip install . -vv"' not in content:
raise RuntimeError(
f"""Could not find the pip install line inside the {path} file.
Please apply similar changes to the {path} file:
https://gitlab.idiap.ch/bob/bob.extension/-/merge_requests/133/diffs"""
)
# if there is a pre-commit configuration file, run the tests
path = ".pre-commit-config.yaml"
if os.path.isfile(path):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment