Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
TOPFARM
TopFarm2
Commits
ca5d398e
Commit
ca5d398e
authored
Jan 03, 2019
by
Mikkel Friis-Møller
Committed by
Mads M. Pedersen
Jan 03, 2019
Browse files
Pypi
parent
8d863f25
Pipeline
#6496
passed with stages
in 2 minutes and 17 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
ca5d398e
...
...
@@ -55,6 +55,22 @@ pages: # "pages" is a job specifically for GitLab pages [1]
tags
:
# only runners with this tag can do the job [3]
-
python
# ===== BUILD WHEELS AND UPLOAD TO PYPI =====
pypi
:
stage
:
deploy
only
:
-
tags
# - master
script
:
-
python3 -m pip install -U setuptools wheel
-
python3 setup.py sdist bdist_wheel
-
python3 -m pip install -U twine
# - twine upload --repository-url https://test.pypi.org/legacy/ dist/* -u $TWINE_USERNAME -p $TWINE_PASSWORD # for testing purposes
-
twine upload dist/* -u $TWINE_USERNAME -p $TWINE_PASSWORD
tags
:
-
python
# [1] GitLab page: https://docs.gitlab.com/ee/ci/yaml/#pages
# [2] CI stages: https://docs.gitlab.com/ee/ci/yaml/#stages
...
...
.pypirc
0 → 100644
View file @
ca5d398e
[distutils]
index-servers=
pypi
#testpypi # include this line for testing
[testpypi]
#repository: https://test.pypi.org/legacy/ # use this line when testing
repository: https://upload.pypi.org/legacy/
username: DTUWindEnergy
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