Commit bd7cf61e authored by Alexandre Vincent's avatar Alexandre Vincent
Browse files

Merge branch 'avincent/support-pip-compile-on-requirements' into 'master'

support pip compile on requirements

See merge request !256
parents a563becb dd508996
Pipeline #70163 passed with stages
in 6 minutes and 34 seconds
......@@ -65,6 +65,50 @@ include:
- project: "osdu/platform/ci-cd-pipelines"
file: "cloud-providers/aws-python.yml"
verify_existing_requirements:
extends:
- .python
- .skipForTriggeringMergeRequests
stage: build
before_script:
- pip3 install --upgrade pip-tools
script:
- pip-compile requirements.in
- pip-compile requirements_dev.in
# checking difference between existing requirements and the newly generated one
# and using the number of lines as exit status code
- exit $(git status -s | grep -e "^ M " | wc -l)
artifacts:
when: always
paths:
- "requirements*.txt"
expire_in: 2 days
generate_updated_requirements:
extends:
- .python
- .skipForTriggeringMergeRequests
stage: build
before_script:
- pip3 install --upgrade pip-tools
script:
- pip-compile requirements.in --upgrade --output-file requirements.upg
- pip-compile requirements_dev.in --upgrade --output-file requirements_dev.upg
artifacts:
when: always
paths:
- "*.upg"
expire_in: 2 days
allow_failure: true
containerize:
extends: .skipForTriggeringMergeRequests
stage: containerize
......
#
# This file is autogenerated by pip-compile with python 3.9
# This file is autogenerated by pip-compile with python 3.7
# To update, run:
#
# pip-compile requirements.in
......@@ -107,8 +107,6 @@ cloudpickle==1.6.0
# via
# dask
# distributed
colorama==0.4.4
# via click
cryptography==3.4.7
# via
# -r requirements.in
......@@ -192,6 +190,8 @@ idna==3.2
# requests
# rfc3986
# yarl
importlib-metadata==4.8.1
# via click
isodate==0.6.0
# via msrest
jmespath==0.10.0
......@@ -323,8 +323,6 @@ pytz==2021.1
# via
# google-api-core
# pandas
# pywin32==301
# via portalocker
pyyaml==5.4.1
# via
# dask
......@@ -389,9 +387,16 @@ tornado==6.1
typing-extensions==3.10.0.0
# via
# aiohttp
# aioitertools
# anyio
# asgiref
# importlib-metadata
# osdu-data-ecosystem-search
# osdu-data-ecosystem-storage
# pydantic
# structlog
# uvicorn
# yarl
urllib3==1.26.6
# via
# botocore
......@@ -406,6 +411,8 @@ yarl==1.6.3
# via aiohttp
zict==2.0.0
# via distributed
zipp==3.6.0
# via importlib-metadata
# The following packages are considered to be unsafe in a requirements file:
# setuptools
......@@ -58,7 +58,7 @@ idna==3.2
# anyio
# requests
# rfc3986
importlib-metadata==4.6.4
importlib-metadata==4.8.1
# via
# -c requirements.txt
# click
......@@ -197,7 +197,7 @@ urllib3==1.26.6
# requests
wheel==0.36.2
# via pip-tools
zipp==3.5.0
zipp==3.6.0
# via
# -c requirements.txt
# importlib-metadata
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment