Project

General

Profile

« Previous | Next » 

Revision e6408637

Added by koszko over 1 year ago

add support for --version option

View differences:

src/hydrilla/builder/build.py
404 404
              help=_('path_instead_of_index_json'))
405 405
@click.option('-d', '--dstdir', type=dir_type, required=True,
406 406
              help=_('built_package_files_destination'))
407
@click.version_option(version=_version.version, prog_name='Hydrilla builder',
408
                      message=_('%(prog)s_%(version)s_license'),
409
                      help=_('version_printing'))
407 410
def perform(srcdir, index_json, dstdir):
408 411
    """<this will be replaced by a localized docstring for Click to pick up>"""
409 412
    build = Build(Path(srcdir), Path(index_json))
src/hydrilla/builder/locales/en_US/LC_MESSAGES/hydrilla-messages.po
7 7
msgstr ""
8 8
"Project-Id-Version: hydrilla.builder 0.1.dev16+g4e46d7f.d20220211\n"
9 9
"Report-Msgid-Bugs-To: koszko@koszko.org\n"
10
"POT-Creation-Date: 2022-02-12 14:40+0100\n"
10
"POT-Creation-Date: 2022-04-19 13:51+0200\n"
11 11
"PO-Revision-Date: 2022-02-12 00:00+0000\n"
12 12
"Last-Translator: Wojtek Kosior <koszko@koszko.org>\n"
13 13
"Language: en_US\n"
......
18 18
"Content-Transfer-Encoding: 8bit\n"
19 19
"Generated-By: Babel 2.8.0\n"
20 20

  
21
#: src/hydrilla/builder/build.py:107
21
#: src/hydrilla/builder/build.py:118
22 22
msgid "couldnt_import_reuse_is_it_installed"
23 23
msgstr ""
24 24
"Could not import 'reuse'. Is the tool installed and visible to this "
25 25
"Python instance?"
26 26

  
27
#: src/hydrilla/builder/build.py:112
27
#: src/hydrilla/builder/build.py:123
28 28
msgid "spdx_report_from_reuse_incompliant"
29 29
msgstr "Attempt to generate an SPDX report for a REUSE-incompliant package."
30 30

  
31
#: src/hydrilla/builder/build.py:196
31
#: src/hydrilla/builder/build.py:207
32 32
msgid "loading_{}_outside_package_dir"
33 33
msgstr "Attempt to load '{}' which lies outside package source directory."
34 34

  
35
#: src/hydrilla/builder/build.py:200
35
#: src/hydrilla/builder/build.py:211
36 36
msgid "loading_reserved_index_json"
37 37
msgstr "Attempt to load 'index.json' which is a reserved filename."
38 38

  
39
#: src/hydrilla/builder/build.py:314
39
#: src/hydrilla/builder/build.py:329
40 40
msgid "report_spdx_not_in_copyright_list"
41 41
msgstr ""
42 42
"Told to generate 'report.spdx' but 'report.spdx' is not listed among "
43 43
"copyright files. Refusing to proceed."
44 44

  
45
#: src/hydrilla/builder/build.py:386
45
#: src/hydrilla/builder/build.py:402
46 46
msgid "source_directory_to_build_from"
47 47
msgstr "Source directory to build from."
48 48

  
49
#: src/hydrilla/builder/build.py:388
49
#: src/hydrilla/builder/build.py:404
50 50
msgid "path_instead_of_index_json"
51 51
msgstr ""
52 52
"Path to file to be processed instead of index.json (if not absolute, "
53 53
"resolved relative to srcdir)."
54 54

  
55
#: src/hydrilla/builder/build.py:390
55
#: src/hydrilla/builder/build.py:406
56 56
msgid "built_package_files_destination"
57 57
msgstr "Destination directory to write built package files to."
58 58

  
59
#: src/hydrilla/builder/build.py:396
59
#: src/hydrilla/builder/build.py:408
60
#, python-format
61
msgid "%(prog)s_%(version)s_license"
62
msgstr ""
63
"%(prog)s %(version)s\n"
64
"Copyright (C) 2021,2022 Wojtek Kosior and contributors.\n"
65
"License GPLv3+: GNU AGPL version 3 or later "
66
"<https://gnu.org/licenses/gpl.html>\n"
67
"This is free software: you are free to change and redistribute it.\n"
68
"There is NO WARRANTY, to the extent permitted by law."
69

  
70
#: src/hydrilla/builder/build.py:409
71
msgid "version_printing"
72
msgstr "Print version information and exit."
73

  
74
#: src/hydrilla/builder/build.py:415
60 75
msgid "build_package_from_srcdir_to_dstdir"
61 76
msgstr ""
62 77
"Build Hydrilla package from `scrdir` and write the resulting files under "
63 78
"`dstdir`."
64 79

  
65
#: src/hydrilla/util/_util.py:76
80
#: src/hydrilla/util/_util.py:79
66 81
msgid "bad_comment"
67 82
msgstr "bad comment"
68 83

  

Also available in: Unified diff