-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: workspace functionality aka russ's super cool secret branch (#7)
* feat: add `ws` branch of commands * feat: add proxy setup cmd, use an overlay fs for src ws * feat: add symlink command for workspaces * fix: find_packages would find xmls in install folders * feat: resolve symlinks to platform and other pkgs, mount respectively * fix: check apt directory exists
- Loading branch information
Showing
7 changed files
with
292 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,7 +60,7 @@ def get_apt_repo_url(public: bool = False) -> str: | |
return f"[email protected]:{packages_repo}.git" | ||
|
||
|
||
def apt_clone(public: bool=False, sparse: bool=False): | ||
def apt_clone(public: bool = False, sparse: bool = False): | ||
"""Checks out the GR apt repo""" | ||
if GR_APT_REPO_PATH.is_dir(): | ||
echo(f"Packages repo has already been cloned to {GR_APT_REPO_PATH}", "blue") | ||
|
@@ -93,10 +93,10 @@ def apt_push(): | |
raise click.ClickException("Failed to push to apt repo") | ||
|
||
|
||
def apt_add(deb: Optional[Path]=None, sparse: bool=False): | ||
def apt_add(deb: Optional[Path] = None, sparse: bool = False): | ||
"""Adds a .deb to the GR apt repo""" | ||
|
||
if not GR_APT_REPO_PATH: | ||
if not GR_APT_REPO_PATH.exists(): | ||
raise click.ClickException("GR apt repo has not been cloned.") | ||
|
||
if deb: | ||
|
@@ -122,6 +122,7 @@ def apt_add(deb: Optional[Path]=None, sparse: bool=False): | |
cwd=GR_APT_REPO_PATH, | ||
) | ||
|
||
|
||
class Packaging(PlatformCliGroup): | ||
def create(self, cli: click.Group): | ||
@cli.group(help="Packaging commands") | ||
|
@@ -209,7 +210,7 @@ def get_sources(): # type: ignore reportUnusedFunction | |
default="debs", | ||
help="The output directory for the debs", | ||
) | ||
@click.option("--no-tests", type=bool, default=True) | ||
@click.option("--no-tests", type=bool, is_flag=True, default=True) | ||
def build(version: str, output: str, no_tests: bool): # type: ignore reportUnusedFunction | ||
"""Builds the package using bloom""" | ||
|
||
|
@@ -290,7 +291,7 @@ def apt_push(): # type: ignore reportUnusedFunction | |
@pkg.command(name="apt-update") | ||
def apt_update(): # type: ignore reportUnusedFunction | ||
"""Update the GR apt repo""" | ||
if not GR_APT_REPO_PATH: | ||
if not GR_APT_REPO_PATH.exists(): | ||
raise click.ClickException("GR apt repo has not been cloned.") | ||
call("git pull --rebase", cwd=GR_APT_REPO_PATH) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.