pk3make 1.1__tar.gz → 1.1.2__tar.gz
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-1.1 → pk3make-1.1.2}/PKG-INFO +22 -7
- {pk3make-1.1 → pk3make-1.1.2}/README.md +21 -6
- {pk3make-1.1 → pk3make-1.1.2}/src/pk3make/__main__.py +26 -32
- {pk3make-1.1 → pk3make-1.1.2}/.github/workflows/python-publish.yml +0 -0
- {pk3make-1.1 → pk3make-1.1.2}/.gitignore +0 -0
- {pk3make-1.1 → pk3make-1.1.2}/LICENSE +0 -0
- {pk3make-1.1 → pk3make-1.1.2}/examples/PK3Makefile +0 -0
- {pk3make-1.1 → pk3make-1.1.2}/examples/music.PK3Makefile +0 -0
- {pk3make-1.1 → pk3make-1.1.2}/pyproject.toml +0 -0
- {pk3make-1.1 → pk3make-1.1.2}/requirements.txt +0 -0
- {pk3make-1.1 → pk3make-1.1.2}/src/pk3make/__init__.py +0 -0
- {pk3make-1.1 → pk3make-1.1.2}/src/pk3make/modules/doomglob.py +0 -0
- {pk3make-1.1 → pk3make-1.1.2}/src/pk3make/modules/doompic.py +0 -0
- {pk3make-1.1 → pk3make-1.1.2}/src/pk3make/modules/pk3makefile.py +0 -0
- {pk3make-1.1 → pk3make-1.1.2}/src/pk3make/modules/pk3zip.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: pk3make
|
3
|
-
Version: 1.1
|
3
|
+
Version: 1.1.2
|
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
|
@@ -25,18 +25,33 @@ Description-Content-Type: text/markdown
|
|
25
25
|
|
26
26
|
## Installation
|
27
27
|
|
28
|
-
|
29
|
-
|
28
|
+
0. Set up a [virtual environment](https://docs.python.org/3/library/venv.html)
|
29
|
+
1. Install PK3Make: `pip install pk3make`
|
30
|
+
2. ???
|
31
|
+
3. Profits
|
30
32
|
|
31
33
|
## How to use
|
32
34
|
|
33
|
-
|
35
|
+
To fully build your project, simply run:
|
34
36
|
|
35
|
-
|
37
|
+
pk3make
|
38
|
+
|
39
|
+
To get an overview of options for PK3Make, type:
|
36
40
|
|
37
|
-
|
41
|
+
pk3make --help
|
42
|
+
|
43
|
+
|
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.
|
45
|
+
|
46
|
+
### Build steps
|
47
|
+
|
48
|
+
PK3Makefile defines four subcommands, each with their own unique options:
|
49
|
+
|
50
|
+
1. `pk3make clean`: Clean & remove the build directory
|
51
|
+
2. `pk3make build`: Compile the build directory.
|
52
|
+
3. `pk3make pack`: Assemble a PK3 file from the build directory's contents
|
53
|
+
4. `pk3make all`: Build and pack (Default).
|
38
54
|
|
39
|
-
./pk3make.py make ./PK3Makefile # Default PK3Makefile
|
40
55
|
|
41
56
|
### Notes, Tips and Caveats
|
42
57
|
|
@@ -4,18 +4,33 @@
|
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
7
|
-
|
8
|
-
|
7
|
+
0. Set up a [virtual environment](https://docs.python.org/3/library/venv.html)
|
8
|
+
1. Install PK3Make: `pip install pk3make`
|
9
|
+
2. ???
|
10
|
+
3. Profits
|
9
11
|
|
10
12
|
## How to use
|
11
13
|
|
12
|
-
|
14
|
+
To fully build your project, simply run:
|
13
15
|
|
14
|
-
|
16
|
+
pk3make
|
17
|
+
|
18
|
+
To get an overview of options for PK3Make, type:
|
15
19
|
|
16
|
-
|
20
|
+
pk3make --help
|
21
|
+
|
22
|
+
|
23
|
+
By default, will use `./PK3Makefile` for it's PK3Makefile. Other can be given through `pk3make [PK3MAKEFILE]`. More on PK3Makefiles in the PK3Makefile reference below.
|
24
|
+
|
25
|
+
### Build steps
|
26
|
+
|
27
|
+
PK3Makefile defines four subcommands, each with their own unique options:
|
28
|
+
|
29
|
+
1. `pk3make clean`: Clean & remove the build directory
|
30
|
+
2. `pk3make build`: Compile the build directory.
|
31
|
+
3. `pk3make pack`: Assemble a PK3 file from the build directory's contents
|
32
|
+
4. `pk3make all`: Build and pack (Default).
|
17
33
|
|
18
|
-
./pk3make.py make ./PK3Makefile # Default PK3Makefile
|
19
34
|
|
20
35
|
### Notes, Tips and Caveats
|
21
36
|
|
@@ -17,7 +17,7 @@ def prepare(workdir="build"):
|
|
17
17
|
|
18
18
|
def cr_build_lump(lock, lumpdef, context):
|
19
19
|
import shutil,os,re
|
20
|
-
from modules import doompic
|
20
|
+
from .modules import doompic
|
21
21
|
|
22
22
|
bytedump = None
|
23
23
|
|
@@ -61,7 +61,7 @@ def cr_build_lump(lock, lumpdef, context):
|
|
61
61
|
ofile.write(bytedump)
|
62
62
|
|
63
63
|
def get_palette(lock, lumpname, opts, pdict):
|
64
|
-
from modules import doompic, doomglob
|
64
|
+
from .modules import doompic, doomglob
|
65
65
|
import os
|
66
66
|
|
67
67
|
lock.acquire()
|
@@ -83,7 +83,7 @@ def get_palette(lock, lumpname, opts, pdict):
|
|
83
83
|
|
84
84
|
|
85
85
|
def build(makefile):
|
86
|
-
from modules import doompic, doomglob
|
86
|
+
from .modules import doompic, doomglob
|
87
87
|
from natsort import natsorted, ns
|
88
88
|
import shutil, os, re
|
89
89
|
import asyncio, concurrent.futures, multiprocessing
|
@@ -145,7 +145,7 @@ def build(makefile):
|
|
145
145
|
return
|
146
146
|
|
147
147
|
def pack(makefile):
|
148
|
-
from modules import pk3zip, doomglob
|
148
|
+
from .modules import pk3zip, doomglob
|
149
149
|
from natsort import natsorted, ns
|
150
150
|
import io, os, hashlib, pathlib, re
|
151
151
|
|
@@ -224,7 +224,7 @@ def pack(makefile):
|
|
224
224
|
return
|
225
225
|
|
226
226
|
def main():
|
227
|
-
from modules import pk3makefile
|
227
|
+
from .modules import pk3makefile
|
228
228
|
|
229
229
|
# Step switches
|
230
230
|
step_prepare = False
|
@@ -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()
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|