AutoCython-zhang 2.3.8__tar.gz → 2.3.10__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.
Files changed (21) hide show
  1. {autocython_zhang-2.3.8 → autocython_zhang-2.3.10}/AutoCython/AutoCython.py +7 -3
  2. {autocython_zhang-2.3.8 → autocython_zhang-2.3.10}/AutoCython/_version.py +1 -1
  3. autocython_zhang-2.3.10/AutoCython/compile.py +823 -0
  4. autocython_zhang-2.3.10/AutoCython/obfuscate.py +933 -0
  5. {autocython_zhang-2.3.8 → autocython_zhang-2.3.10}/AutoCython/run_tasks.py +22 -4
  6. {autocython_zhang-2.3.8 → autocython_zhang-2.3.10}/AutoCython/tools.py +123 -34
  7. {autocython_zhang-2.3.8 → autocython_zhang-2.3.10/AutoCython_zhang.egg-info}/PKG-INFO +20 -6
  8. {autocython_zhang-2.3.8/AutoCython_zhang.egg-info → autocython_zhang-2.3.10}/PKG-INFO +20 -6
  9. {autocython_zhang-2.3.8 → autocython_zhang-2.3.10}/README.md +19 -5
  10. {autocython_zhang-2.3.8 → autocython_zhang-2.3.10}/pyproject.toml +3 -1
  11. autocython_zhang-2.3.8/AutoCython/compile.py +0 -263
  12. autocython_zhang-2.3.8/AutoCython/obfuscate.py +0 -620
  13. {autocython_zhang-2.3.8 → autocython_zhang-2.3.10}/AutoCython/__init__.py +0 -0
  14. {autocython_zhang-2.3.8 → autocython_zhang-2.3.10}/AutoCython_zhang.egg-info/SOURCES.txt +0 -0
  15. {autocython_zhang-2.3.8 → autocython_zhang-2.3.10}/AutoCython_zhang.egg-info/dependency_links.txt +0 -0
  16. {autocython_zhang-2.3.8 → autocython_zhang-2.3.10}/AutoCython_zhang.egg-info/entry_points.txt +0 -0
  17. {autocython_zhang-2.3.8 → autocython_zhang-2.3.10}/AutoCython_zhang.egg-info/requires.txt +1 -1
  18. {autocython_zhang-2.3.8 → autocython_zhang-2.3.10}/AutoCython_zhang.egg-info/top_level.txt +0 -0
  19. {autocython_zhang-2.3.8 → autocython_zhang-2.3.10}/LICENSE +0 -0
  20. {autocython_zhang-2.3.8 → autocython_zhang-2.3.10}/MANIFEST.in +0 -0
  21. {autocython_zhang-2.3.8 → autocython_zhang-2.3.10}/setup.cfg +0 -0
@@ -1,7 +1,7 @@
1
1
  import os
2
2
  import sys
3
3
  from .run_tasks import run_tasks
4
- from .compile import compile_to_binary
4
+ from .compile import check_output_collisions, compile_to_binary
5
5
  from .tools import parse_arguments, find_python_files
6
6
  from .tools import show_no_compilable_files, show_file_not_found, show_path_not_found
7
7
 
@@ -13,23 +13,26 @@ def compile():
13
13
  if args.file:
14
14
  if os.path.isfile(args.file):
15
15
  compile_file = args.file
16
+ check_output_collisions([compile_file])
16
17
  del_source = args.del_source
17
18
  tasks = [
18
- # 函数, 位置参数, 关键字参数
19
+ # 函数, 显示名称, 位置参数, 关键字参数
19
20
  (compile_to_binary, compile_file, (compile_file, del_source, True, obfuscate_seed), {}),
20
21
  ]
21
22
  run_tasks(tasks, max_workers=1, raise_on_failure=True) # 执行编译
22
23
  else:
23
24
  show_file_not_found(args.file)
25
+ sys.exit(1)
24
26
  elif args.path:
25
27
  if os.path.exists(args.path) and not os.path.isfile(args.path):
26
28
  compile_file_list = find_python_files(args.path)
27
29
  if compile_file_list:
30
+ check_output_collisions(compile_file_list)
28
31
  del_source = args.del_source
29
32
  tasks = []
30
33
  for compile_file in compile_file_list:
31
34
  tasks.append(
32
- # 函数, 位置参数, 关键字参数
35
+ # 函数, 显示名称, 位置参数, 关键字参数
33
36
  (compile_to_binary, compile_file, (compile_file, del_source, True, obfuscate_seed), {}),
34
37
  )
35
38
  run_tasks(tasks, max_workers=args.conc, raise_on_failure=True) # 执行编译
@@ -37,6 +40,7 @@ def compile():
37
40
  show_no_compilable_files(args.path)
38
41
  else:
39
42
  show_path_not_found(args.path)
43
+ sys.exit(1)
40
44
  except KeyboardInterrupt:
41
45
  sys.exit(130)
42
46
  except Exception as e:
@@ -2,4 +2,4 @@
2
2
  # -*- coding: utf-8 -*-
3
3
  """版本号模块 - 单一版本号来源"""
4
4
 
5
- __version__ = "2.3.8"
5
+ __version__ = "2.3.10"