cppmake 127.0.14__py3-none-any.whl → 127.0.16__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.
Files changed (59) hide show
  1. cppmake-127.0.16.dist-info/METADATA +191 -0
  2. cppmake-127.0.16.dist-info/RECORD +55 -0
  3. {cppmake-127.0.14.dist-info → cppmake-127.0.16.dist-info}/WHEEL +1 -1
  4. cppmake-127.0.16.dist-info/entry_points.txt +3 -0
  5. cppmake-127.0.16.dist-info/top_level.txt +3 -0
  6. cppmaked.py +2 -0
  7. cppmakelib/__init__.py +32 -0
  8. cppmakelib/basic/config.py +50 -0
  9. cppmakelib/basic/context.py +39 -0
  10. cppmakelib/builder/cmake.py +71 -0
  11. cppmakelib/builder/include.py +15 -0
  12. cppmakelib/builder/makefile.py +68 -0
  13. cppmakelib/compiler/all.py +26 -0
  14. cppmakelib/compiler/clang.py +196 -0
  15. cppmakelib/compiler/emcc.py +79 -0
  16. cppmakelib/compiler/gcc.py +237 -0
  17. cppmakelib/compiler/msvc.py +24 -0
  18. cppmakelib/error/config.py +5 -0
  19. cppmakelib/error/logic.py +6 -0
  20. cppmakelib/error/subprocess.py +9 -0
  21. cppmakelib/executor/operation.py +15 -0
  22. cppmakelib/executor/run.py +84 -0
  23. cppmakelib/executor/scheduler.py +91 -0
  24. cppmakelib/logger/compile_commands.py +30 -0
  25. cppmakelib/logger/make_progress.py +0 -0
  26. cppmakelib/logger/module_mapper.py +6 -0
  27. cppmakelib/logger/unit_status.py +224 -0
  28. cppmakelib/system/all.py +25 -0
  29. cppmakelib/system/linux.py +26 -0
  30. cppmakelib/system/macos.py +26 -0
  31. cppmakelib/system/windows.py +26 -0
  32. cppmakelib/unit/binary.py +26 -0
  33. cppmakelib/unit/code.py +62 -0
  34. cppmakelib/unit/dynamic.py +12 -0
  35. cppmakelib/unit/executable.py +35 -0
  36. cppmakelib/unit/header.py +63 -0
  37. cppmakelib/unit/module.py +69 -0
  38. cppmakelib/unit/object.py +71 -0
  39. cppmakelib/unit/package.py +87 -0
  40. cppmakelib/unit/precompiled.py +6 -0
  41. cppmakelib/unit/preparsed.py +6 -0
  42. cppmakelib/unit/preprocessed.py +3 -0
  43. cppmakelib/unit/source.py +64 -0
  44. cppmakelib/utility/algorithm.py +44 -0
  45. cppmakelib/utility/color.py +14 -0
  46. cppmakelib/utility/decorator.py +120 -0
  47. cppmakelib/utility/filesystem.py +71 -0
  48. cppmakelib/utility/import_.py +21 -0
  49. cppmakelib/utility/remote/client.py +2 -0
  50. cppmakelib/utility/remote/protocol.py +32 -0
  51. cppmakelib/utility/remote/remote.py +43 -0
  52. cppmakelib/utility/remote/server.py +0 -0
  53. cppmakelib/utility/time.py +1 -0
  54. cppmakelib/utility/version.py +65 -0
  55. cppmake-127.0.14.dist-info/METADATA +0 -9
  56. cppmake-127.0.14.dist-info/RECORD +0 -6
  57. cppmake-127.0.14.dist-info/entry_points.txt +0 -2
  58. cppmake-127.0.14.dist-info/top_level.txt +0 -1
  59. /cppmake/__main__.py → /cppmake.py +0 -0
File without changes
@@ -0,0 +1 @@
1
+ time = int
@@ -0,0 +1,65 @@
1
+ from cppmakelib.error.config import ConfigError
2
+ from cppmakelib.error.logic import LogicError
3
+ from cppmakelib.error.subprocess import SubprocessError
4
+ from cppmakelib.utility.decorator import syncable
5
+ import functools
6
+ import re
7
+ import sys
8
+
9
+ @functools.total_ordering
10
+ class Version:
11
+ def __init__(self, *elements: list[int]) -> None : ...
12
+ def __str__ (self) -> str : ...
13
+ def __eq__ (self, other_version: Version | object) -> bool : ...
14
+ def __lt__ (self, other_version: Version | int | float | object) -> bool : ...
15
+ @staticmethod
16
+ def parse (text: str) -> Version: ...
17
+
18
+ # @functools.total_ordering
19
+ # class Version:
20
+ # def __init__(self, major, minor=0, patch=0):
21
+ # self.major = major
22
+ # self.minor = minor
23
+ # self.patch = patch
24
+
25
+ # def __str__(self):
26
+ # return f'{self.major}.{self.minor}.{self.patch}'
27
+
28
+ # def __eq__(self, other):
29
+ # if type(other) is Version:
30
+ # return self.major == other.major and self.minor == other.minor and self.patch == other.patch
31
+ # else:
32
+ # return NotImplemented
33
+
34
+ # def __lt__(self, other):
35
+ # if type(other) is Version:
36
+ # return (self.major < other.major) or \
37
+ # (self.major == other.major and self.minor < other.minor) or \
38
+ # (self.major == other.major and self.minor == other.minor and self.patch < other.patch)
39
+ # elif type(other) is int:
40
+ # return self < Version(other)
41
+ # elif type(other) is float:
42
+ # numbers = str(other).split('.')
43
+ # return self < Version(numbers[0], *([numbers[1]] if len(numbers) >= 2 else []))
44
+ # else:
45
+ # return NotImplemented
46
+
47
+ # @syncable
48
+ # async def async_parse(name, command, check, pipe=sys.stdout, lowest=0):
49
+ # try:
50
+ # output = await async_run(command=command, return_stdout=(pipe is sys.stdout), return_stderr=(pipe is sys.stderr))
51
+ # if check(output):
52
+ # word = re.search(r'\b\d+(\.\d+)+\b', output)
53
+ # if word is None:
54
+ # raise LogicError(f'version parse failed (with output = {output})')
55
+ # version = Version(*[int(split) for split in word.group().split('.')[:3]])
56
+ # if version >= lowest:
57
+ # return version
58
+ # else:
59
+ # raise ConfigError(f'{name} is too old (with version = {version}, requires >= {lowest})')
60
+ # else:
61
+ # raise ConfigError(f'{name} is not valid (with "{' '.join(command)}" returned "{output.replace('\n', ' ')}")')
62
+ # except SubprocessError as error:
63
+ # raise ConfigError(f'{name} is not valid (with "{' '.join(command)}" failed)') from error
64
+ # except FileNotFoundError as error:
65
+ # raise ConfigError(f'{name} is not found (with "{' '.join(command)}" not found)') from error
@@ -1,9 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: cppmake
3
- Version: 127.0.14
4
- Summary: A modern C++ builder based on C++20 Modules.
5
- Author-email: shyeyian <shyeyian@icloud.com>
6
- License-Expression: MIT
7
- Requires-Python: >=3.13
8
- Description-Content-Type: text/markdown
9
- Requires-Dist: cppmakelib
@@ -1,6 +0,0 @@
1
- cppmake/__main__.py,sha256=xbfuYDNg1BJ2MQKqP-nBZ0FGSoEB651FAxeWoR-Dyrk,1316
2
- cppmake-127.0.14.dist-info/METADATA,sha256=7I2sPZsl2Tpde08iFba8llOBd0MZrvYEKerbUrjfNio,267
3
- cppmake-127.0.14.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
4
- cppmake-127.0.14.dist-info/entry_points.txt,sha256=dK_4GLQPM14Sb1Fawz8fzllNitvsv24n91WpaH-h_m8,50
5
- cppmake-127.0.14.dist-info/top_level.txt,sha256=uH5XeYydYK0aWCewtK8qf5yjSkXO2tvS9qguV8GVRp0,8
6
- cppmake-127.0.14.dist-info/RECORD,,
@@ -1,2 +0,0 @@
1
- [console_scripts]
2
- cppmake = cppmake.__main__:main
@@ -1 +0,0 @@
1
- cppmake
File without changes