Skip to content

Commit

Permalink
Add package script
Browse files Browse the repository at this point in the history
  • Loading branch information
synesthesiam committed Nov 29, 2023
1 parent 30c958c commit 083da06
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ venv/
*.egg-info/

/local/
/dist/
11 changes: 11 additions & 0 deletions script/package
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env python3
import subprocess
import venv
from pathlib import Path

_DIR = Path(__file__).parent
_PROGRAM_DIR = _DIR.parent
_VENV_DIR = _PROGRAM_DIR / ".venv"

context = venv.EnvBuilder().ensure_directories(_VENV_DIR)
subprocess.check_call([context.env_exe, _PROGRAM_DIR / "setup.py", "bdist_wheel"])

0 comments on commit 083da06

Please sign in to comment.