Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.devtools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bob
bob.devtools
Commits
7dbf3c06
Commit
7dbf3c06
authored
6 years ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
[ci] Make localized imports
parent
3d52b5fd
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/devtools/scripts/ci.py
+6
-3
6 additions, 3 deletions
bob/devtools/scripts/ci.py
with
6 additions
and
3 deletions
bob/devtools/scripts/ci.py
+
6
−
3
View file @
7dbf3c06
...
...
@@ -14,9 +14,7 @@ from click_plugins import with_plugins
from
.
import
bdt
from
..log
import
verbosity_option
from
..webdav3
import
client
as
webdav
from
..constants
import
SERVER
,
WEBDAV_PATHS
,
CACERT
from
..bootstrap
import
set_environment
,
run_cmdline
from
..constants
import
SERVER
@with_plugins
(
pkg_resources
.
iter_entry_points
(
'
bdt.ci.cli
'
))
...
...
@@ -30,6 +28,7 @@ def ci():
may occur.
"""
# ensure messages don't get garbled at the output on the CI logs
from
..bootstrap
import
set_environment
set_environment
(
'
PYTHONUNBUFFERED
'
,
'
1
'
,
os
.
environ
)
...
...
@@ -69,10 +68,12 @@ def deploy(dry_run):
visible
=
(
os
.
environ
[
'
CI_PROJECT_VISIBILITY
'
]
==
'
public
'
)
# determine if building master branch or tag - and if tag is on master
from
..ci
import
is_stable
stable
=
is_stable
(
package
,
os
.
environ
[
'
CI_COMMIT_REF_NAME
'
],
os
.
environ
[
'
CI_COMMIT_TAG
'
])
from
..constants
import
WEBDAV_PATHS
server_info
=
WEBDAV_PATHS
[
stable
][
visible
]
logger
.
info
(
'
Deploying conda packages to %s%s%s...
'
,
SERVER
,
...
...
@@ -85,6 +86,7 @@ def deploy(dry_run):
'
webdav_login
'
:
os
.
environ
[
'
DOCUSER
'
],
'
webdav_password
'
:
os
.
environ
[
'
DOCPASS
'
],
}
from
..webdav3
import
client
as
webdav
davclient
=
webdav
.
Client
(
webdav_options
)
assert
davclient
.
valid
()
...
...
@@ -192,6 +194,7 @@ def pypi(dry_run):
logger
.
info
(
'
Deploying python package %s to PyPI
'
,
zip_files
[
0
])
#twine upload --skip-existing --username ${PYPIUSER} --password ${PYPIPASS}
#dist/*.zip
from
..constants
import
CACERT
from
twine.settings
import
Settings
settings
=
Settings
(
...
...
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