pyarmor.cli 8.4.0__zip → 8.4.2__zip

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.
Files changed (33) hide show
  1. {pyarmor.cli-8.4.0 → pyarmor.cli-8.4.2}/PKG-INFO +1 -1
  2. {pyarmor.cli-8.4.0 → pyarmor.cli-8.4.2}/pyarmor/cli/__init__.py +1 -1
  3. pyarmor.cli-8.4.2/pyarmor/cli/core.data.1 +0 -0
  4. pyarmor.cli-8.4.2/pyarmor/cli/core.data.2 +0 -0
  5. pyarmor.cli-8.4.2/pyarmor/cli/core.data.3 +0 -0
  6. {pyarmor.cli-8.4.0 → pyarmor.cli-8.4.2}/pyarmor/cli/default.cfg +1 -1
  7. {pyarmor.cli-8.4.0 → pyarmor.cli-8.4.2}/pyarmor/cli/docker.py +3 -2
  8. {pyarmor.cli-8.4.0 → pyarmor.cli-8.4.2}/pyarmor/cli/merge.py +1 -1
  9. {pyarmor.cli-8.4.0 → pyarmor.cli-8.4.2}/pyarmor/cli/register.py +1 -1
  10. {pyarmor.cli-8.4.0 → pyarmor.cli-8.4.2}/pyarmor.cli.egg-info/PKG-INFO +1 -1
  11. {pyarmor.cli-8.4.0 → pyarmor.cli-8.4.2}/pyarmor.cli.egg-info/entry_points.txt +1 -0
  12. {pyarmor.cli-8.4.0 → pyarmor.cli-8.4.2}/setup.py +2 -1
  13. pyarmor.cli-8.4.0/pyarmor/cli/core.data.1 +0 -0
  14. pyarmor.cli-8.4.0/pyarmor/cli/core.data.2 +0 -0
  15. pyarmor.cli-8.4.0/pyarmor/cli/core.data.3 +0 -0
  16. {pyarmor.cli-8.4.0 → pyarmor.cli-8.4.2}/README.rst +0 -0
  17. {pyarmor.cli-8.4.0 → pyarmor.cli-8.4.2}/pyarmor/cli/__main__.py +0 -0
  18. {pyarmor.cli-8.4.0 → pyarmor.cli-8.4.2}/pyarmor/cli/bootstrap.py +0 -0
  19. {pyarmor.cli-8.4.0 → pyarmor.cli-8.4.2}/pyarmor/cli/config.py +0 -0
  20. {pyarmor.cli-8.4.0 → pyarmor.cli-8.4.2}/pyarmor/cli/context.py +0 -0
  21. {pyarmor.cli-8.4.0 → pyarmor.cli-8.4.2}/pyarmor/cli/generate.py +0 -0
  22. {pyarmor.cli-8.4.0 → pyarmor.cli-8.4.2}/pyarmor/cli/group.py +0 -0
  23. {pyarmor.cli-8.4.0 → pyarmor.cli-8.4.2}/pyarmor/cli/mixer.py +0 -0
  24. {pyarmor.cli-8.4.0 → pyarmor.cli-8.4.2}/pyarmor/cli/plugin.py +0 -0
  25. {pyarmor.cli-8.4.0 → pyarmor.cli-8.4.2}/pyarmor/cli/public_capsule.zip +0 -0
  26. {pyarmor.cli-8.4.0 → pyarmor.cli-8.4.2}/pyarmor/cli/repack.py +0 -0
  27. {pyarmor.cli-8.4.0 → pyarmor.cli-8.4.2}/pyarmor/cli/resource.py +0 -0
  28. {pyarmor.cli-8.4.0 → pyarmor.cli-8.4.2}/pyarmor/cli/shell.py +0 -0
  29. {pyarmor.cli-8.4.0 → pyarmor.cli-8.4.2}/pyarmor.cli.egg-info/SOURCES.txt +0 -0
  30. {pyarmor.cli-8.4.0 → pyarmor.cli-8.4.2}/pyarmor.cli.egg-info/dependency_links.txt +0 -0
  31. {pyarmor.cli-8.4.0 → pyarmor.cli-8.4.2}/pyarmor.cli.egg-info/requires.txt +0 -0
  32. {pyarmor.cli-8.4.0 → pyarmor.cli-8.4.2}/pyarmor.cli.egg-info/top_level.txt +0 -0
  33. {pyarmor.cli-8.4.0 → pyarmor.cli-8.4.2}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.1
2
2
  Name: pyarmor.cli
3
- Version: 8.4.0
3
+ Version: 8.4.2
4
4
  Summary: A comand line tool to obfuscate python scripts
5
5
  Home-page: https://github.com/dashingsoft/pyarmor
6
6
  Author: Jondy Zhao
@@ -1,6 +1,6 @@
1
1
  import logging
2
2
 
3
- __VERSION__ = '8.4.0'
3
+ __VERSION__ = '8.4.2'
4
4
 
5
5
  logger = logging.getLogger('cli')
6
6
 
@@ -3,7 +3,7 @@
3
3
  ;; Pyarmor version
4
4
  major = 8
5
5
  minor = 4
6
- patch = 0
6
+ patch = 2
7
7
 
8
8
  ;; Compatible core version
9
9
  cli.core = 5.4.0
@@ -6,7 +6,7 @@ import struct
6
6
  import sys
7
7
 
8
8
  from .context import Context
9
- from .generate import Builder, Pytransform3
9
+ from .generate import Pytransform3
10
10
  from .register import Register, MACHFLAGS
11
11
 
12
12
 
@@ -53,7 +53,8 @@ class DockerAuthHandler(socketserver.BaseRequestHandler):
53
53
  def generate_runtime_key(self, userdata):
54
54
  ctx = CONFIG['ctx']
55
55
  ctx.cmd_options['user_data'] = userdata
56
- return Builder(ctx).generate_runtime_key()
56
+ Pytransform3._pytransform3.init_ctx(ctx)
57
+ return Pytransform3.generate_runtime_key(ctx)
57
58
 
58
59
 
59
60
  def register_pyarmor(ctx, regfile):
@@ -38,7 +38,7 @@ def parse_script(filename):
38
38
  for line in f:
39
39
  if line.startswith('__pyarmor__('):
40
40
  i = line.find('(')
41
- args = line.strip()[i+1:-1].split(', ')
41
+ args = line.strip()[i+1:-1].split(', ', 2)
42
42
  co = compile(line, '<str>', 'exec')
43
43
  return args, co.co_consts[0]
44
44
 
@@ -211,7 +211,7 @@ class Register(object):
211
211
  def _get_docker_hostname(self):
212
212
  try:
213
213
  from socket import socket, AF_INET, SOCK_STREAM
214
- host = 'host.docker.internal'
214
+ host = os.getenv('PYARMOR_DOCKER_HOST', 'host.docker.internal')
215
215
  port = 29092
216
216
  rlist = []
217
217
  with socket(AF_INET, SOCK_STREAM) as s:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.1
2
2
  Name: pyarmor.cli
3
- Version: 8.4.0
3
+ Version: 8.4.2
4
4
  Summary: A comand line tool to obfuscate python scripts
5
5
  Home-page: https://github.com/dashingsoft/pyarmor
6
6
  Author: Jondy Zhao
@@ -1,3 +1,4 @@
1
1
  [console_scripts]
2
2
  pyarmor = pyarmor.cli.__main__:main
3
+ pyarmor-auth = pyarmor.cli.docker:main
3
4
 
@@ -1,6 +1,6 @@
1
1
  from setuptools import setup
2
2
 
3
- __VERSION__ = ' 8.4.0'
3
+ __VERSION__ = ' 8.4.2'
4
4
 
5
5
  with open('README.rst') as f:
6
6
  long_description = f.read()
@@ -56,6 +56,7 @@ setup(
56
56
  entry_points={
57
57
  'console_scripts': [
58
58
  'pyarmor=pyarmor.cli.__main__:main',
59
+ 'pyarmor-auth=pyarmor.cli.docker:main',
59
60
  ],
60
61
  },
61
62
 
Binary file
Binary file
Binary file
File without changes
File without changes