Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SmartDataLab
public
CI-CD components
Python
Commits
95056049
Commit
95056049
authored
5 months ago
by
S.Thiriet
Committed by
Pierre Smeyers
5 months ago
Browse files
Options
Downloads
Patches
Plain Diff
fix: Poetry Build system test
parent
be7fd568
No related branches found
Branches containing commit
Tags
7.1
7.1.1
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
templates/gitlab-ci-python.yml
+5
-5
5 additions, 5 deletions
templates/gitlab-ci-python.yml
with
5 additions
and
5 deletions
templates/gitlab-ci-python.yml
+
5
−
5
View file @
95056049
...
@@ -630,7 +630,7 @@ variables:
...
@@ -630,7 +630,7 @@ variables:
}
}
function maybe_install_poetry() {
function maybe_install_poetry() {
if [[ "$PYTHON_BUILD_SYSTEM" =~ ^poetry
.*
]] && ! command -v poetry > /dev/null
if [[ "$PYTHON_BUILD_SYSTEM" =~ ^poetry ]] && ! command -v poetry > /dev/null
then
then
# shellcheck disable=SC2086
# shellcheck disable=SC2086
pip install ${PIP_OPTS} "$PYTHON_BUILD_SYSTEM"
pip install ${PIP_OPTS} "$PYTHON_BUILD_SYSTEM"
...
@@ -684,7 +684,7 @@ variables:
...
@@ -684,7 +684,7 @@ variables:
}
}
function _run() {
function _run() {
if [[ "$PYTHON_BUILD_SYSTEM" =
=
poetry
*
]]
if [[ "$PYTHON_BUILD_SYSTEM" =
~ ^
poetry ]]
then
then
maybe_install_poetry
maybe_install_poetry
poetry run "$@"
poetry run "$@"
...
@@ -703,7 +703,7 @@ variables:
...
@@ -703,7 +703,7 @@ variables:
}
}
function py_package() {
function py_package() {
if [[ "$PYTHON_BUILD_SYSTEM" =
=
poetry
*
]]
if [[ "$PYTHON_BUILD_SYSTEM" =
~ ^
poetry ]]
then
then
maybe_install_poetry
maybe_install_poetry
poetry build
poetry build
...
@@ -754,7 +754,7 @@ variables:
...
@@ -754,7 +754,7 @@ variables:
fi
fi
# 2: bump-my-version (+ Git commit & tag)
# 2: bump-my-version (+ Git commit & tag)
if [[ "$PYTHON_BUILD_SYSTEM" =
=
poetry
*
]]
if [[ "$PYTHON_BUILD_SYSTEM" =
~ ^
poetry ]]
then
then
maybe_install_poetry
maybe_install_poetry
if [[ -z "$py_next_version" ]]
if [[ -z "$py_next_version" ]]
...
@@ -812,7 +812,7 @@ variables:
...
@@ -812,7 +812,7 @@ variables:
}
}
function py_publish() {
function py_publish() {
if [[ "$PYTHON_BUILD_SYSTEM" =
=
poetry
*
]]
if [[ "$PYTHON_BUILD_SYSTEM" =
~ ^
poetry ]]
then
then
maybe_install_poetry
maybe_install_poetry
...
...
This diff is collapsed.
Click to expand it.
Benguria Elguezabal, Gorka
@gorka.benguria
mentioned in commit
2c0822cc
·
1 month ago
mentioned in commit
2c0822cc
mentioned in commit 2c0822cc80a46145da0e7e7bb68d342b82e755e7
Toggle commit list
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment