pybun 1.2.9__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.
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,59 @@
1
+ Metadata-Version: 2.3
2
+ Name: pybun
3
+ Version: 1.2.9
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.2.9
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
+
22
+ The [pybun](https://pypi.org/project/pybun/) Python package redistributes the Bun executable so that it can be used as a dependency in your Python projects.
23
+
24
+
25
+ Usage
26
+ -----
27
+
28
+ ### Command line
29
+
30
+ ```shell
31
+ pybun --version
32
+ ```
33
+
34
+ ### Run library module as a script
35
+
36
+ ```shell
37
+ python -m pybun --version
38
+ ```
39
+
40
+ ### From python
41
+
42
+ ```python
43
+ import sys, subprocess
44
+
45
+ subprocess.call([sys.executable, "-m", "pybun"])
46
+ ```
47
+
48
+ License
49
+ -------
50
+
51
+ Pybun itself is released under [The Unlicense](https://choosealicense.com/licenses/unlicense/) license.
52
+
53
+ The bun executable [has its own licence](https://bun.sh/docs/project/licensing).
54
+
55
+
56
+ Credits
57
+ -------
58
+
59
+ 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.2.9.dist-info/METADATA,sha256=G4uDPp67ndNbtgF4Y8VsXoX3j-p_HCdXqv_dk8YkZ4U,1446
2
+ pybun-1.2.9.dist-info/WHEEL,sha256=KIhXrBh1nKL5BslGAiMMYcgw5QFrzUkQtvCClDyfr-M,110
3
+ pybun-1.2.9.dist-info/entry_points.txt,sha256=2yqDrzJKYDdB2mySMnlNYPyhgcucK1cnVOp3xOQxd2Q,46
4
+ pybun/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
5
+ pybun/__main__.py,sha256=VOyC3nPHt95MFI03N6GFjYx2R-HmpDutHkKoPKZOTXE,304
6
+ pybun/bun,sha256=91FxdephT0WDJJkiBTqPN6BxJ0o6RZwpk39dczYeako,62503888
7
+ pybun-1.2.9.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,2 @@
1
+ [console_scripts]
2
+ pybun = pybun.__main__:main