Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
Domain Data Management Services
Wellbore
Lib
Wellbore-cloud
Wellbore-azure-lib
Commits
87fa4980
Commit
87fa4980
authored
Mar 05, 2021
by
Luc Yriarte
Browse files
Merge branch 'deploy_dev' into 'master'
Development packages support See merge request
!7
parents
2f6b4444
880f5c37
Pipeline
#32009
passed with stage
in 2 minutes and 6 seconds
Changes
2
Pipelines
4
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
87fa4980
...
...
@@ -36,3 +36,24 @@ deploylib:
-
TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=${CI_REGISTRY_USER} python -m twine upload --repository-url ${CI_API_V4_URL}/projects/${WDMS_LIB_REGISTRY}/packages/pypi dist/*
rules
:
-
if
:
$CI_COMMIT_BRANCH == 'master'
# Pushes merge request builds to the feed
deploydev
:
stage
:
deploy
script
:
-
echo ---- ---- ---- SET DEVELOPMENT VERSION ---- ---- ----
-
PACKAGE_VERSION_FILE='osdu_az/__init__.py'
-
PACKAGE_NAME=$(python setup.py --name)
-
PACKAGE_LIB_VERSION=$(python setup.py --version)
-
PACKAGE_DEV_VERSION=${PACKAGE_LIB_VERSION}.dev${CI_JOB_ID}
-
sed -i "s/${PACKAGE_LIB_VERSION}/${PACKAGE_DEV_VERSION}/g" ${PACKAGE_VERSION_FILE}
-
echo ---- ---- ---- BUILD IMAGE ---- ---- ----
-
pip3 install -r requirements.txt
-
pip3 install -r requirements_opengroup.txt
-
pip3 install twine
-
python3 setup.py sdist bdist_wheel
-
echo ---- ---- ---- PUSHING DEVELOPMENT PACKAGE ${PACKAGE_DEV_VERSION} TO PROJECT ${WDMS_LIB_REGISTRY} REGISTRY ---- ---- ----
-
TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=${CI_REGISTRY_USER} python -m twine upload --repository-url ${CI_API_V4_URL}/projects/${WDMS_LIB_REGISTRY}/packages/pypi dist/*
only
:
-
merge_requests
requirements_opengroup.txt
View file @
87fa4980
# osdu core lib main python
--extra-index-url \
https://community.opengroup.org/api/v4/projects/
223
/packages/pypi/simple/
https://community.opengroup.org/api/v4/projects/
465
/packages/pypi/simple/
osdu-core-lib-python>=0.4.0, <0.5
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment