Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sec23
korte
pymagglobal
Commits
0af072de
Commit
0af072de
authored
May 11, 2021
by
Maximilian Schanner
Browse files
Testing version number raise.
parent
9257533c
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
0af072de
...
...
@@ -22,7 +22,7 @@ build-job:
-
'
export
ID=$(curl
--max-time
900
--connect-timeout
120
--request
GET
--header
"PRIVATE-TOKEN:
${API_ACCES_TOKEN}"
"https://git.gfz-potsdam.de/api/v4/projects/${CI_PROJECT_ID}/packages"
|
grep
-P
"(?<=.id.:)(\\d+)"
-o
|
head
-1)'
# remove the package, as we want a new build even if the version number did not change
-
'
echo
$ID'
-
'
curl
--max-time
900
--connect-timeout
120
--request
DELETE
--header
"PRIVATE-TOKEN:
${API_ACCES_TOKEN}"
"https://git.gfz-potsdam.de/api/v4/projects/${CI_PROJECT_ID}/packages/$ID"'
#
- 'curl --max-time 900 --connect-timeout 120 --request DELETE --header "PRIVATE-TOKEN: ${API_ACCES_TOKEN}" "https://git.gfz-potsdam.de/api/v4/projects/${CI_PROJECT_ID}/packages/$ID"'
# upload
-
TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=gitlab-ci-token python3 -m twine upload --repository-url https://git.gfz-potsdam.de/api/v4/projects/${CI_PROJECT_ID}/packages/pypi dist/* --verbose
only
:
...
...
pymagglobal/__init__.py
View file @
0af072de
...
...
@@ -44,4 +44,4 @@ from pymagglobal.core import master_curve, dipole_series, file2splines, \
field
,
coefficients
,
built_in_models
,
Model
from
pymagglobal
import
utils
__version__
=
'0.1.
0
'
__version__
=
'0.1.
1
'
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