changesets 0.2.0__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.
changesets/__init__.py ADDED
@@ -0,0 +1,39 @@
1
+ import importlib
2
+ import platform
3
+ import subprocess
4
+ import sys
5
+ from pathlib import Path
6
+
7
+
8
+ def get_path() -> Path:
9
+ plat = ""
10
+ machine = ""
11
+ match sys.platform:
12
+ case "linux":
13
+ plat = "linux"
14
+ case "darwin":
15
+ plat = "darwin"
16
+ case "win32":
17
+ plat = "win32"
18
+ case _:
19
+ raise ValueError(f"Unsupported platform: {sys.platform}")
20
+ match platform.machine().lower():
21
+ case "x86_64" | "amd64":
22
+ machine = "x64"
23
+ case "arm64" | "aarch64":
24
+ machine = "arm64"
25
+ case _:
26
+ raise ValueError(f"Unsupported architecture: {platform.machine()}")
27
+ mod = f"changesets_{plat}_{machine}"
28
+ module = importlib.import_module(mod)
29
+ return module.get_path()
30
+
31
+
32
+ def run() -> None:
33
+ path = get_path()
34
+ path.chmod(0o774)
35
+ subprocess.run([path, *sys.argv[1:]], check=True)
36
+
37
+
38
+ if __name__ == "__main__":
39
+ run()
changesets/py.typed ADDED
File without changes
@@ -0,0 +1,17 @@
1
+ Metadata-Version: 2.4
2
+ Name: changesets
3
+ Version: 0.2.0
4
+ Summary: Git-based changelog manager for JavaScript, Python, and Go projects.
5
+ Project-URL: Repository, https://github.com/dworthen/changelog
6
+ Author-email: Derek Worthen <worthend.derek@gmail.com>
7
+ License-Expression: MIT
8
+ Requires-Python: >=3.11
9
+ Requires-Dist: changesets-darwin-arm64==0.2.0; sys_platform == 'darwin' and platform_machine == 'arm64'
10
+ Requires-Dist: changesets-darwin-x64==0.2.0; sys_platform == 'darwin' and platform_machine == 'x86_64'
11
+ Requires-Dist: changesets-linux-arm64==0.2.0; sys_platform == 'linux' and platform_machine == 'aarch64'
12
+ Requires-Dist: changesets-linux-x64==0.2.0; sys_platform == 'linux' and platform_machine == 'x86_64'
13
+ Requires-Dist: changesets-win32-arm64==0.2.0; sys_platform == 'win32' and platform_machine == 'ARM64'
14
+ Requires-Dist: changesets-win32-x64==0.2.0; sys_platform == 'win32' and platform_machine == 'AMD64'
15
+ Description-Content-Type: text/markdown
16
+
17
+ # Changelog2
@@ -0,0 +1,6 @@
1
+ changesets/__init__.py,sha256=gTVolz-zwgZZonBZVjEvBHccO01t-8oeoZ9sLTC9VAU,932
2
+ changesets/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ changesets-0.2.0.dist-info/METADATA,sha256=zBg16AeNa4i_Rw975-e3w-wpBliX6ISpNsm8GeZT5aY,965
4
+ changesets-0.2.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
5
+ changesets-0.2.0.dist-info/entry_points.txt,sha256=czx-WLF6gOQpXHUilF-lwYnCc6qBmVLb7UrPWrgNm3M,56
6
+ changesets-0.2.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.27.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ changelog = py_changelog.__init__:run