Replace PyO3 with IPC approach for Python/project information (#214)
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

This commit is contained in:
Josh Thomas 2025-09-09 19:08:42 -05:00 committed by GitHub
parent 31b0308a40
commit d99c96d6b6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
39 changed files with 903 additions and 696 deletions

24
python/build.py Normal file
View file

@ -0,0 +1,24 @@
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()