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
The Universal Packaging Tool
upt
Commits
90bc7bbc
Commit
90bc7bbc
authored
Mar 17, 2018
by
Cyril Roelandt
Browse files
upt package: add a '--output' option.
parent
16157d97
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGELOG
View file @
90bc7bbc
...
...
@@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file.
Based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
## [Unreleased]
### Added
- upt package: Add the '--output' option
## [0.3] - 2018-03-13
### Added
- Added 'frontends' and 'backends' extras to make installation easier
...
...
upt/upt.py
View file @
90bc7bbc
...
...
@@ -102,6 +102,10 @@ def create_parser():
help
=
'Frontend to use'
)
required_args
.
add_argument
(
'-b'
,
'--backend'
,
required
=
True
,
help
=
'Backend to use'
)
parser_package
.
add_argument
(
'-o'
,
'--output'
,
help
=
'Output file/directory. Defaults to '
'stdout/current directory. This may be '
'ignored by the backend.'
)
parser_package
.
add_argument
(
'package'
,
help
=
'Name of the package'
)
return
parser
...
...
@@ -161,7 +165,7 @@ def main():
try
:
upt_pkg
=
frontend
.
parse
(
args
.
package
)
upt_pkg
.
frontend
=
args
.
frontend
backend
.
create_package
(
upt_pkg
)
backend
.
create_package
(
upt_pkg
,
output
=
args
.
output
)
except
upt
.
exceptions
.
UnhandledFrontendError
as
e
:
print
(
e
,
file
=
sys
.
stderr
)
sys
.
exit
(
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