Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
bitia-cli
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
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
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bitia
bitia-cli
Commits
7bb7ef1a
Commit
7bb7ef1a
authored
2 years ago
by
dilawar
Browse files
Options
Downloads
Patches
Plain Diff
fix: removed walrus operator
Requires python3.8 minimal
parent
d09cde5c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#3629
failed with stages
in 55 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+2
-1
2 additions, 1 deletion
CHANGELOG.md
bitia/__main__.py
+3
-2
3 additions, 2 deletions
bitia/__main__.py
with
5 additions
and
3 deletions
CHANGELOG.md
+
2
−
1
View file @
7bb7ef1a
...
@@ -8,7 +8,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
...
@@ -8,7 +8,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [0.1.3] - 2022-09-29
## [0.1.3] - 2022-09-29
## Added
## Added
-
Adds the public API.
-
Use the public API by default
-
Supports Python3.7+
## Fixed
## Fixed
-
Removed 'submit' command. It will be added later.
-
Removed 'submit' command. It will be added later.
...
...
This diff is collapsed.
Click to expand it.
bitia/__main__.py
+
3
−
2
View file @
7bb7ef1a
...
@@ -135,7 +135,8 @@ def run_pipeline(user_input: str, server: str = "https://public.bitia.link"):
...
@@ -135,7 +135,8 @@ def run_pipeline(user_input: str, server: str = "https://public.bitia.link"):
Prepare the user directory to send to the server. User can also provide link
Prepare the user directory to send to the server. User can also provide link
to the pipeline to run.
to the pipeline to run.
"""
"""
if
(
path
:
=
Path
(
user_input
)).
exists
():
path
=
Path
(
user_input
)
if
path
.
exists
():
if
path
.
is_dir
():
if
path
.
is_dir
():
pipeline_zip
=
prepare_archive
(
path
)
pipeline_zip
=
prepare_archive
(
path
)
elif
path
.
is_file
()
and
path
.
suffix
.
lower
()
==
"
.zip
"
:
elif
path
.
is_file
()
and
path
.
suffix
.
lower
()
==
"
.zip
"
:
...
@@ -150,7 +151,7 @@ def run_pipeline(user_input: str, server: str = "https://public.bitia.link"):
...
@@ -150,7 +151,7 @@ def run_pipeline(user_input: str, server: str = "https://public.bitia.link"):
else
:
else
:
# generate a temporary pipeline and submit.
# generate a temporary pipeline and submit.
pipeline_zip
=
create_pipeline_from_command
(
user_input
)
pipeline_zip
=
create_pipeline_from_command
(
user_input
)
logg
ing
.
info
(
f
"
Created pipeline in
{
pipeline_zip
}
"
)
logg
er
.
info
(
f
"
Created pipeline in
{
pipeline_zip
}
"
)
submit_job
(
pipeline_zip
,
server
)
submit_job
(
pipeline_zip
,
server
)
...
...
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