pyarmor.cli 8.1.dev3__py2.py3-none-any.whl → 8.1.dev4__py2.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.
- pyarmor/cli/__main__.py +4 -4
- pyarmor/cli/context.py +5 -1
- pyarmor/cli/default.cfg +2 -1
- pyarmor/cli/generate.py +3 -0
- {pyarmor.cli-8.1.dev3.dist-info → pyarmor.cli-8.1.dev4.dist-info}/METADATA +1 -1
- {pyarmor.cli-8.1.dev3.dist-info → pyarmor.cli-8.1.dev4.dist-info}/RECORD +9 -9
- {pyarmor.cli-8.1.dev3.dist-info → pyarmor.cli-8.1.dev4.dist-info}/WHEEL +0 -0
- {pyarmor.cli-8.1.dev3.dist-info → pyarmor.cli-8.1.dev4.dist-info}/entry_points.txt +0 -0
- {pyarmor.cli-8.1.dev3.dist-info → pyarmor.cli-8.1.dev4.dist-info}/top_level.txt +0 -0
pyarmor/cli/__main__.py
CHANGED
|
@@ -116,7 +116,7 @@ def check_cross_platform(ctx, platforms):
|
|
|
116
116
|
from pyarmor.cli import runtime
|
|
117
117
|
except ModuleNotFoundError:
|
|
118
118
|
raise CliError('cross platform need pyarmor.cli.runtime, please '
|
|
119
|
-
'run "pip install pyarmor.cli.runtime==1.
|
|
119
|
+
'run "pip install pyarmor.cli.runtime==2.1.dev1" first')
|
|
120
120
|
|
|
121
121
|
platnames = []
|
|
122
122
|
for path in runtime.__path__:
|
|
@@ -546,10 +546,10 @@ def log_settings(ctx, args):
|
|
|
546
546
|
handler.setLevel(logging.DEBUG)
|
|
547
547
|
root.addHandler(handler)
|
|
548
548
|
|
|
549
|
+
tracelog = logging.getLogger('trace')
|
|
550
|
+
tracelog.propagate = False
|
|
551
|
+
tracelog.addHandler(logging.NullHandler())
|
|
549
552
|
if ctx.cfg.getboolean('builder', 'enable_trace'):
|
|
550
|
-
tracelog = logging.getLogger('trace')
|
|
551
|
-
tracelog.propagate = False
|
|
552
|
-
tracelog.addHandler(logging.NullHandler())
|
|
553
553
|
handler = logging.FileHandler(ctx.trace_logfile, mode='w')
|
|
554
554
|
handler.setFormatter(logging.Formatter('%(name)-20s %(message)s'))
|
|
555
555
|
handler.setLevel(logging.DEBUG if args.debug else logging.INFO)
|
pyarmor/cli/context.py
CHANGED
|
@@ -127,6 +127,9 @@ class Context(object):
|
|
|
127
127
|
self.extra_libs = {}
|
|
128
128
|
self.obfuscated_modules = set()
|
|
129
129
|
|
|
130
|
+
self.rft_auto_excludes = set()
|
|
131
|
+
self.rft_modules = set()
|
|
132
|
+
|
|
130
133
|
self.runtime_key = None
|
|
131
134
|
|
|
132
135
|
self.cmd_options = {}
|
|
@@ -184,7 +187,8 @@ class Context(object):
|
|
|
184
187
|
extra_sect = ':'.join([name, sect])
|
|
185
188
|
if self.cfg.has_section(extra_sect):
|
|
186
189
|
options.update(self.cfg.items(extra_sect))
|
|
187
|
-
|
|
190
|
+
if sect in ('builder', 'finder'):
|
|
191
|
+
options.update(self.cmd_options)
|
|
188
192
|
cfg = self._named_config(name + '.ruler')
|
|
189
193
|
if cfg.has_section(sect):
|
|
190
194
|
options.update(cfg.items(sect))
|
pyarmor/cli/default.cfg
CHANGED
pyarmor/cli/generate.py
CHANGED
|
@@ -139,6 +139,9 @@ class Builder(object):
|
|
|
139
139
|
output = options.get('output', 'dist')
|
|
140
140
|
self.ctx.outputs = output.split(',')
|
|
141
141
|
|
|
142
|
+
rft_auto_excludes = self.ctx.cfg['rft'].get('auto_excludes').split()
|
|
143
|
+
self.ctx.rft_auto_excludes.update(rft_auto_excludes)
|
|
144
|
+
|
|
142
145
|
finder = Finder(self.ctx)
|
|
143
146
|
finder.process(pack=pack)
|
|
144
147
|
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
pyarmor/cli/__init__.py,sha256=6igxhRpSlFLtDHnn5QGkbtE8YAtX5juBbSZQ4vc6X90,22
|
|
2
|
-
pyarmor/cli/__main__.py,sha256=
|
|
2
|
+
pyarmor/cli/__main__.py,sha256=ro7uSNe491Z0jv27vDvLe5qZYQOtBqyJPMQx6UlpDAY,20053
|
|
3
3
|
pyarmor/cli/config.py,sha256=HbCIOkJ2Zd7aGeanB1tUpBhWTj1LhyMiSwWGdmFgN0A,8608
|
|
4
|
-
pyarmor/cli/context.py,sha256=
|
|
5
|
-
pyarmor/cli/default.cfg,sha256=
|
|
4
|
+
pyarmor/cli/context.py,sha256=tuwMJZTrHxc1CRW7cxIGXZf47y5DQUd82XInjQxCvpU,15496
|
|
5
|
+
pyarmor/cli/default.cfg,sha256=yGxPoGFKgSxj-oAevYLx0d0PdpVLLOBCpQuwlR6tTZc,7416
|
|
6
6
|
pyarmor/cli/errors.py,sha256=gNlPhcqgCS4OVdU9H8V23YxThyvHKtFI3LKAu-sxH60,880
|
|
7
|
-
pyarmor/cli/generate.py,sha256=
|
|
7
|
+
pyarmor/cli/generate.py,sha256=eeEEWVZrhzhFp_SesNSamBs5JvqS2gaRJjN239R8diw,5742
|
|
8
8
|
pyarmor/cli/mixer.py,sha256=CQOttISF-h55lWEbRUaywsNZybxe8KsXC7axO1ISxUE,4008
|
|
9
9
|
pyarmor/cli/public_capsule.zip,sha256=1r4u42ixfocGPMQc0OklpoHF3nvVW6GA1f4SwcEJWVI,2487
|
|
10
10
|
pyarmor/cli/register.py,sha256=Wc6Av9GgI20iZVVgpwwAgsxPaaZqO3CEcmcuGtYeGlw,10971
|
|
11
11
|
pyarmor/cli/repack.py,sha256=JTmb-KAzPLNu_VttJTym53uJg5GJlPkmNZQ-LjM8gS8,11386
|
|
12
12
|
pyarmor/cli/resource.py,sha256=VX-0rqR3xqTVdKoou9ZTl0Bk2LP7hW8qlciDVDeiGwo,6179
|
|
13
13
|
pyarmor/cli/shell.py,sha256=S1yJ5RQZhTIysQgXk3H4E_cJsV2Lymh-w-_GdnHFngU,2193
|
|
14
|
-
pyarmor.cli-8.1.
|
|
15
|
-
pyarmor.cli-8.1.
|
|
16
|
-
pyarmor.cli-8.1.
|
|
17
|
-
pyarmor.cli-8.1.
|
|
18
|
-
pyarmor.cli-8.1.
|
|
14
|
+
pyarmor.cli-8.1.dev4.dist-info/METADATA,sha256=QAbtUNJ8Oy_6Dlhu1qBMEZPWURmZMArrKoBWOJkKKQ4,2405
|
|
15
|
+
pyarmor.cli-8.1.dev4.dist-info/WHEEL,sha256=kGT74LWyRUZrL4VgLh6_g12IeVl_9u9ZVhadrgXZUEY,110
|
|
16
|
+
pyarmor.cli-8.1.dev4.dist-info/entry_points.txt,sha256=MODwyeC-iHX4KItYshzQRa5kWWQnMhIuT64w5bqKFR0,41
|
|
17
|
+
pyarmor.cli-8.1.dev4.dist-info/top_level.txt,sha256=UE1ovZ_90YzwF_lZ3LV7o8HKLe-RgzUaUUvdH5UTUus,8
|
|
18
|
+
pyarmor.cli-8.1.dev4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|