-
-
Notifications
You must be signed in to change notification settings - Fork 283
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade PyApp to 0.13.0 for binary builds (#1190)
- Loading branch information
Showing
6 changed files
with
56 additions
and
5 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
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import os | ||
|
||
import click | ||
|
||
__management_command = os.environ.get('PYAPP_COMMAND_NAME', 'self') | ||
|
||
|
||
@click.group(name=__management_command, short_help='Manage Hatch') | ||
def self_command(): | ||
pass | ||
|
||
|
||
if __management_command: | ||
from hatch.cli.self.restore import restore | ||
from hatch.cli.self.update import update | ||
|
||
self_command.add_command(restore) | ||
self_command.add_command(update) |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from __future__ import annotations | ||
|
||
from typing import TYPE_CHECKING | ||
|
||
import click | ||
|
||
if TYPE_CHECKING: | ||
from hatch.cli.application import Application | ||
|
||
|
||
@click.command( | ||
short_help='Restore the installation', context_settings={'help_option_names': [], 'ignore_unknown_options': True} | ||
) | ||
@click.argument('args', nargs=-1) | ||
@click.pass_obj | ||
def restore(app: Application, *, args: tuple[str, ...]): # noqa: ARG001 | ||
app.abort('Hatch is not installed as a binary') |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from __future__ import annotations | ||
|
||
from typing import TYPE_CHECKING | ||
|
||
import click | ||
|
||
if TYPE_CHECKING: | ||
from hatch.cli.application import Application | ||
|
||
|
||
@click.command( | ||
short_help='Install the latest version', context_settings={'help_option_names': [], 'ignore_unknown_options': True} | ||
) | ||
@click.argument('args', nargs=-1) | ||
@click.pass_obj | ||
def update(app: Application, *, args: tuple[str, ...]): # noqa: ARG001 | ||
app.abort('Hatch is not installed as a binary') |