bundleup 0.0.1__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.
bundleup/__init__.py
ADDED
bundleup/cli.py
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"""Command-line entry point. Placeholder until the bundler exists."""
|
|
2
|
+
|
|
3
|
+
import sys
|
|
4
|
+
|
|
5
|
+
from . import __version__
|
|
6
|
+
|
|
7
|
+
MESSAGE = """\
|
|
8
|
+
bundleup {version}: pre-alpha, nothing to bundle yet.
|
|
9
|
+
|
|
10
|
+
bundleup will turn a locked Python project into one checked .pyz that runs on
|
|
11
|
+
plain Python with no install step.
|
|
12
|
+
|
|
13
|
+
Follow along: https://github.com/funkyfunc/bundleup
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def main(argv=None) -> int:
|
|
18
|
+
args = sys.argv[1:] if argv is None else argv
|
|
19
|
+
if args in (["--version"], ["-V"]):
|
|
20
|
+
print(f"bundleup {__version__}")
|
|
21
|
+
return 0
|
|
22
|
+
if not args or args[0] in ("-h", "--help"):
|
|
23
|
+
print(MESSAGE.format(version=__version__))
|
|
24
|
+
return 0
|
|
25
|
+
print(MESSAGE.format(version=__version__), file=sys.stderr)
|
|
26
|
+
return 2
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: bundleup
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: Bundle up your Python app with everything it needs: one .pyz that runs on plain Python, no install step. Pre-alpha.
|
|
5
|
+
Keywords: bundler,pyz,zipapp,packaging,distribution,cli
|
|
6
|
+
Author: funkyfunc
|
|
7
|
+
License-Expression: MIT
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
Classifier: Development Status :: 1 - Planning
|
|
10
|
+
Classifier: Environment :: Console
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Classifier: Operating System :: OS Independent
|
|
13
|
+
Classifier: Programming Language :: Python :: 3
|
|
14
|
+
Classifier: Topic :: Software Development :: Build Tools
|
|
15
|
+
Classifier: Topic :: System :: Software Distribution
|
|
16
|
+
Requires-Python: >=3.9
|
|
17
|
+
Project-URL: Homepage, https://github.com/funkyfunc/bundleup
|
|
18
|
+
Project-URL: Repository, https://github.com/funkyfunc/bundleup
|
|
19
|
+
Project-URL: Issues, https://github.com/funkyfunc/bundleup/issues
|
|
20
|
+
Description-Content-Type: text/markdown
|
|
21
|
+
|
|
22
|
+
# bundleup
|
|
23
|
+
|
|
24
|
+
**Bundle up your Python app with everything it needs.** One command turns a locked project into a
|
|
25
|
+
single `.pyz` that runs on plain Python: no install step, no network, native extensions included.
|
|
26
|
+
And it tells you *before* you ship what won't survive the trip.
|
|
27
|
+
|
|
28
|
+
Dead simple to use, but also powerful and fast: esbuild's experience, for Python.
|
|
29
|
+
|
|
30
|
+
> **Status: pre-alpha.** Research, positioning and the test suite are done; the bundler itself
|
|
31
|
+
> isn't written yet. Nothing is published on PyPI.
|
|
32
|
+
|
|
33
|
+
## Why
|
|
34
|
+
|
|
35
|
+
Python has three ways to hand a program to someone else, and the middle one is missing:
|
|
36
|
+
|
|
37
|
+
| Ship as | The other machine needs | Problem |
|
|
38
|
+
|---|---|---|
|
|
39
|
+
| Standalone executable | Nothing | Per-OS builds, code signing, antivirus |
|
|
40
|
+
| Source + `pip install` / `uv sync` | Python, an installer, network | The install step is where things break |
|
|
41
|
+
| **One file that runs on the user's Python** | **Python** | **No easy, reliable tool. That's bundleup** |
|
|
42
|
+
|
|
43
|
+
pex, shiv and zipapps can do parts of this. bundleup's bet is a much better experience on top of
|
|
44
|
+
the same correct approach: no flags to get it fast, plain-language errors, and a pre-ship check.
|
|
45
|
+
See [docs/vision.md](https://github.com/funkyfunc/bundleup/blob/main/docs/vision.md).
|
|
46
|
+
|
|
47
|
+
## Where to start reading
|
|
48
|
+
|
|
49
|
+
- [MISSION.md](https://github.com/funkyfunc/bundleup/blob/main/MISSION.md): goal, scope, what "done" means
|
|
50
|
+
- [docs/vision.md](https://github.com/funkyfunc/bundleup/blob/main/docs/vision.md): where bundleup fits and who it's for
|
|
51
|
+
- [docs/roadmap.md](https://github.com/funkyfunc/bundleup/blob/main/docs/roadmap.md): where it could go next
|
|
52
|
+
- [docs/python-primer.md](https://github.com/funkyfunc/bundleup/blob/main/docs/python-primer.md): Python packaging explained for JavaScript developers
|
|
53
|
+
- [docs/adr/](https://github.com/funkyfunc/bundleup/blob/main/docs/adr/README.md): decisions and why they were made
|
|
54
|
+
- [docs/findings/2026-10-03-baseline.md](https://github.com/funkyfunc/bundleup/blob/main/docs/findings/2026-10-03-baseline.md): how pex, shiv and zipapps fare today
|
|
55
|
+
- [gauntlet/](https://github.com/funkyfunc/bundleup/blob/main/gauntlet/README.md): the test projects every bundler is measured against
|
|
56
|
+
|
|
57
|
+
## Gauntlet
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
uv run gauntlet/check_native.py # control group: projects run normally
|
|
61
|
+
uv run gauntlet/run_bundlers.py --conditions --out run # existing bundlers, incl. hostile conditions
|
|
62
|
+
uv run gauntlet/report.py gauntlet/results/run.json > gauntlet/results/run.md
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## License
|
|
66
|
+
|
|
67
|
+
[MIT](https://github.com/funkyfunc/bundleup/blob/main/LICENSE)
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
bundleup/__init__.py,sha256=vVqWlUCwB7oEoALCH7SOwRwOjy45nZHY4VtbZqztUK8,91
|
|
2
|
+
bundleup/cli.py,sha256=_5iICJDU0SYY9t7g7ASBvtCuSBMYcWbEbnOh4DWBs0M,721
|
|
3
|
+
bundleup-0.0.1.dist-info/licenses/LICENSE,sha256=uM4KrlX60GHhNig-LvKfpkR9o0Kf2Fl33a4BdQF8Gco,1066
|
|
4
|
+
bundleup-0.0.1.dist-info/WHEEL,sha256=ZFFp7t7R4RYQ5KYZkmiFWoQvHay7SrTmn-6ZYfoFZ3U,80
|
|
5
|
+
bundleup-0.0.1.dist-info/entry_points.txt,sha256=sUnBvjhy7ZuSl2_iFFvTLffL01k3-9Hr816ki_bpmy0,48
|
|
6
|
+
bundleup-0.0.1.dist-info/METADATA,sha256=KAJVHgxnybBEn0n9ErlA7fdNODWHT26P9e05StmUw0A,3430
|
|
7
|
+
bundleup-0.0.1.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 funkyfunc
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|