Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
workspaces
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
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
ssa
workspaces
Commits
ee09091b
Commit
ee09091b
authored
1 year ago
by
Daniel Lyons
Browse files
Options
Downloads
Patches
Plain Diff
Correct the pex build template
parent
d49b15fb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!1452
Merge 2.8.2 to main
,
!1369
Correct the pex build template
Pipeline
#9983
passed
1 year ago
Stage: pull-db
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ci/pex-build.template.yml
+5
-4
5 additions, 4 deletions
ci/pex-build.template.yml
with
5 additions
and
4 deletions
ci/pex-build.template.yml
+
5
−
4
View file @
ee09091b
...
...
@@ -6,8 +6,9 @@
-
WD=$PWD
-
cd ${PEX_PATH}
-
poetry install --with test
# - pytest test
-
NAME=$(awk -F' = ' '/^\[tool.poetry\]/ { project = 1; next } /^\[.*\]/ { project = 0 } project && $1 == "name" { gsub(/"/, "", $2); print $2 }' pyproject.toml)
-
VERSION=$(sed -n 's/^__version__ = "\(.*\)\"$/\1/p' */__init__.py)
-
'
curl
--header
"JOB-TOKEN:
$CI_JOB_TOKEN"
--upload-file
dist/${NAME}-${VERSION}-py3-none-any.whl
"$CI_API_V4_URL/projects/$CI_PROJECT_ID/packages/generic/${NAME}/${VERSION}/${NAME}-${VERSION}-py3-none-any.whl"'
-
poetry build
-
pytest test
-
poetry config repositories.gitlab "https://gitlab.nrao.edu/api/v4/projects/$CI_PROJECT_ID/packages/pypi"
-
poetry config http-basic.gitlab gitlab-ci-token "$CI_JOB_TOKEN"
-
poetry publish --repository gitlab
-
cd $WD
\ No newline at end of file
This diff is collapsed.
Click to expand it.
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