pk3make 1.1.1__py3-none-any.whl → 1.1.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pk3make/__main__.py +21 -27
- {pk3make-1.1.1.dist-info → pk3make-1.1.3.dist-info}/METADATA +3 -3
- {pk3make-1.1.1.dist-info → pk3make-1.1.3.dist-info}/RECORD +6 -6
- pk3make-1.1.3.dist-info/entry_points.txt +2 -0
- pk3make-1.1.1.dist-info/entry_points.txt +0 -2
- {pk3make-1.1.1.dist-info → pk3make-1.1.3.dist-info}/WHEEL +0 -0
- {pk3make-1.1.1.dist-info → pk3make-1.1.3.dist-info}/licenses/LICENSE +0 -0
pk3make/__main__.py
CHANGED
@@ -265,33 +265,27 @@ def main():
|
|
265
265
|
|
266
266
|
return
|
267
267
|
|
268
|
-
|
269
|
-
import argparse
|
270
|
-
import pathlib
|
271
|
-
|
272
|
-
# Shell argument API
|
273
|
-
verbs = [
|
274
|
-
'clean', # Delete workdir
|
275
|
-
'prepare', # Make workdir tree etc.
|
276
|
-
'build', # Convert formats & copy files to workdir according to METAINFO
|
277
|
-
'pack', # Pack existing workdir into pk3. (May be used for music packs?)
|
278
|
-
'all', # Do everything
|
279
|
-
]
|
280
|
-
ap_main = argparse.ArgumentParser(
|
281
|
-
prog='pk3make',
|
282
|
-
description='PK3Make - Make for (Weissblatt) PK3s',
|
283
|
-
epilog='Type `pk3make --help` for more info.')
|
284
|
-
ap_sub = ap_main.add_subparsers(title='Build steps', dest='verb', metavar="")
|
285
|
-
|
286
|
-
ap_clean = ap_sub.add_parser('clean', help='Delete the build directory')
|
287
|
-
ap_build = ap_sub.add_parser('build', help='Compile assets into the build directory')
|
288
|
-
ap_pack = ap_sub.add_parser('pack', help='Assemble a PK3 file from the build directory')
|
268
|
+
### CLI Interface ###
|
289
269
|
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
270
|
+
import argparse
|
271
|
+
import pathlib
|
272
|
+
|
273
|
+
ap_main = argparse.ArgumentParser(
|
274
|
+
prog='pk3make',
|
275
|
+
description='PK3Make - Make for (Weissblatt) PK3s',
|
276
|
+
epilog='Type `pk3make --help` for more info.')
|
277
|
+
ap_sub = ap_main.add_subparsers(title='Build steps', dest='verb', metavar="")
|
296
278
|
|
279
|
+
ap_clean = ap_sub.add_parser('clean', help='Delete the build directory')
|
280
|
+
ap_build = ap_sub.add_parser('build', help='Compile assets into the build directory')
|
281
|
+
ap_pack = ap_sub.add_parser('pack', help='Assemble a PK3 file from the build directory')
|
282
|
+
|
283
|
+
ap_main.add_argument('-v', '--verbose' , action='store_true', help='Verbose log output')
|
284
|
+
ap_build.add_argument('target', nargs='?', help='Target LUMPDEF')
|
285
|
+
|
286
|
+
ap_main.add_argument('makefile', nargs='?', const='./PK3Makefile', help='PK3Makefile to reference')
|
287
|
+
|
288
|
+
args = ap_main.parse_args()
|
289
|
+
|
290
|
+
if __name__ == "__main__":
|
297
291
|
main()
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: pk3make
|
3
|
-
Version: 1.1.
|
3
|
+
Version: 1.1.3
|
4
4
|
Summary: Build system for Weissblatt PK3 files
|
5
5
|
Project-URL: Homepage, https://github.com/liquidunderground/pk3make
|
6
6
|
Project-URL: GitHub, https://github.com/liquidunderground/pk3make
|
@@ -34,11 +34,11 @@ Description-Content-Type: text/markdown
|
|
34
34
|
|
35
35
|
To fully build your project, simply run:
|
36
36
|
|
37
|
-
|
37
|
+
pk3make
|
38
38
|
|
39
39
|
To get an overview of options for PK3Make, type:
|
40
40
|
|
41
|
-
|
41
|
+
pk3make --help
|
42
42
|
|
43
43
|
|
44
44
|
By default, will use `./PK3Makefile` for it's PK3Makefile. Other can be given through `pk3make [PK3MAKEFILE]`. More on PK3Makefiles in the PK3Makefile reference below.
|
@@ -1,11 +1,11 @@
|
|
1
1
|
pk3make/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
-
pk3make/__main__.py,sha256=
|
2
|
+
pk3make/__main__.py,sha256=X4FsR9bZVebgxzziZldxUgrplbKQV6vTXG4SKNqLWM0,10503
|
3
3
|
pk3make/modules/doomglob.py,sha256=tXRiFwScIP1KGmSJI-bfAeKbXzI-KGB5oc8LG0Yg7DE,1278
|
4
4
|
pk3make/modules/doompic.py,sha256=KOZURZPrUcgL0yHhyloiCyKYl-6Y7LLnk-v9xQpuAmU,14208
|
5
5
|
pk3make/modules/pk3makefile.py,sha256=YaNx0NoVwEZq1t1m1RTd3i5uRm3l-DikWsVp-HVdnfE,2199
|
6
6
|
pk3make/modules/pk3zip.py,sha256=ZdaEa1wh4gTrWZrkE4Orf7IS_PyMidgII4yRK215Bpg,3209
|
7
|
-
pk3make-1.1.
|
8
|
-
pk3make-1.1.
|
9
|
-
pk3make-1.1.
|
10
|
-
pk3make-1.1.
|
11
|
-
pk3make-1.1.
|
7
|
+
pk3make-1.1.3.dist-info/METADATA,sha256=w4-vFyslYIVijrQ5n4i-fwXX_C6gmzqcjmFpKUXSe_0,6408
|
8
|
+
pk3make-1.1.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
9
|
+
pk3make-1.1.3.dist-info/entry_points.txt,sha256=9sK6-KM5uPhUMHVHzq2VU4ZvIdrc7oh-AbTxjg9OUrk,50
|
10
|
+
pk3make-1.1.3.dist-info/licenses/LICENSE,sha256=zfXyi_cMnW2CRuY9eAQyCiSvFLG3n8OpQEnsj7x2Eyk,7626
|
11
|
+
pk3make-1.1.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|