django-language-server/python/build.py
Josh Thomas d99c96d6b6
Some checks are pending
lint / pre-commit (push) Waiting to run
lint / rustfmt (push) Waiting to run
lint / clippy (push) Waiting to run
lint / cargo-check (push) Waiting to run
release / release (push) Blocked by required conditions
test / generate-matrix (push) Waiting to run
release / build (push) Waiting to run
release / test (push) Waiting to run
test / Python , Django () (push) Blocked by required conditions
test / tests (push) Blocked by required conditions
zizmor 🌈 / zizmor latest via PyPI (push) Waiting to run
Replace PyO3 with IPC approach for Python/project information (#214)
2025-09-09 19:08:42 -05:00

24 lines
592 B
Python

from __future__ import annotations
import zipapp
from pathlib import Path
def main():
source_dir = Path(__file__).parent / "src" / "djls_inspector"
output_file = Path(__file__).parent / "dist" / "djls_inspector.pyz"
output_file.parent.mkdir(exist_ok=True)
zipapp.create_archive(
source_dir,
target=output_file,
interpreter=None, # No shebang - will be invoked explicitly
compressed=True,
)
print(f"Successfully created {output_file}")
print(f"Size: {output_file.stat().st_size} bytes")
if __name__ == "__main__":
main()