pybun 1.1.25a6__pha6-py3-none-macosx_12_0_x86_64.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.

Potentially problematic release.


This version of pybun might be problematic. Click here for more details.

pybun/__init__.py ADDED
@@ -0,0 +1 @@
1
+
pybun/__main__.py ADDED
@@ -0,0 +1,18 @@
1
+ # pyright: basic
2
+ import os
3
+ import sys
4
+
5
+
6
+ def main():
7
+ argv = [os.path.join(os.path.dirname(__file__), "bun"), *sys.argv[1:]]
8
+
9
+ if os.name == "posix":
10
+ os.execv(argv[0], argv)
11
+ else:
12
+ import subprocess
13
+
14
+ sys.exit(subprocess.call(argv))
15
+
16
+
17
+ if __name__ == "__main__":
18
+ main()
pybun/bun ADDED
Binary file
@@ -0,0 +1,54 @@
1
+ Metadata-Version: 2.3
2
+ Name: pybun
3
+ Version: 1.1.25.alpha6
4
+ Summary: Bun is an all-in-one toolkit for JavaScript and TypeScript apps.
5
+ Description-Content-Type: text/markdown
6
+ License: MIT
7
+ Classifier: License :: OSI Approved :: MIT License
8
+ Project-URL: Homepage, https://bun.sh/
9
+ Project-URL: Source Code, https://github.com/oven-sh/bun
10
+ Project-URL: Bug Tracker, https://github.com/oven-sh/bun/issues
11
+ Project-URL: Changelog, https://bun.sh/blog/bun-v1.1.25
12
+ Project-URL: Documentation, https://bun.sh/docs
13
+ Requires-Python: ~=3.9
14
+
15
+ # Pybun
16
+
17
+ **The bun toolkit, packaged for Python** 🍞 + 🐍 = 🚀
18
+
19
+
20
+ [Bun](https://bun.sh/) is an all-in-one toolkit for JavaScript and TypeScript apps.
21
+ The [pybun](https://pypi.org/project/pybun/) Python package redistributes the Bun CLI executable so that it can be used as a dependency in your Python projects.
22
+
23
+
24
+ Usage
25
+ -----
26
+
27
+ To run the Bun CLI from the command line, you can use:
28
+
29
+ ```shell
30
+ pybun --version
31
+ bun --version
32
+ python -m pybun --version
33
+ ```
34
+
35
+ To run the Bun CLI from a Python program, use `sys.executable` to locate the Python binary to invoke. For example:
36
+
37
+ ```python
38
+ import sys, subprocess
39
+
40
+ subprocess.call([sys.executable, "-m", "pybun"])
41
+ ```
42
+
43
+ License
44
+ -------
45
+
46
+ Pybun itself is released under [The Unlicense](https://choosealicense.com/licenses/unlicense/) license.
47
+
48
+ The bun executable [has its own licence](https://bun.sh/docs/project/licensing).
49
+
50
+
51
+ Credits
52
+ -------
53
+
54
+ Thanks a lot to the [zig-pypi](https://github.com/ziglang/zig-pypi) maintainers: their code heavily helped me to understand how to do the same with Bun!
@@ -0,0 +1,7 @@
1
+ pybun-1.1.25.alpha6.dist-info/METADATA,sha256=PyzNQxumF3IbRutnZJf2Y56RY6-Ayyjk11NMwALuFFM,1559
2
+ pybun-1.1.25.alpha6.dist-info/WHEEL,sha256=KIhXrBh1nKL5BslGAiMMYcgw5QFrzUkQtvCClDyfr-M,110
3
+ pybun-1.1.25.alpha6.dist-info/entry_points.txt,sha256=Aw8hSKN5rOf3dwe-KEA3FdlF84owqE-7yDZ84yJn4lw,72
4
+ pybun/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
5
+ pybun/__main__.py,sha256=VOyC3nPHt95MFI03N6GFjYx2R-HmpDutHkKoPKZOTXE,304
6
+ pybun/bun,sha256=8ACAg8x2f-51g84VNj_aqriBeQxW1r1QpoOcDeKlbSY,58507392
7
+ pybun-1.1.25.alpha6.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: pybun src/make_wheels.py
3
+ Root-Is-Purelib: false
4
+ Tag: py3-none-macosx_12_0_x86_64
@@ -0,0 +1,3 @@
1
+ [console_scripts]
2
+ bun = pybun.__main__:main
3
+ pybun = pybun.__main__:main