mirror of
https://github.com/joshuadavidthomas/django-language-server.git
synced 2025-09-14 06:15:07 +00:00
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
24 lines
592 B
Python
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()
|