This repository has been archived by the owner on Jan 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
73 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# app | ||
from .controllers import * # noQA | ||
from .converters import * # noQA | ||
from .models import * # noQA | ||
from .converters import * # noQA | ||
from .models import * # noQA | ||
from .__version__ import * # noQA |
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,4 @@ | ||
|
||
__version__ = '0.3.1' | ||
__author__ = 'Gram (@orsinium)' | ||
__license__ = 'MIT' |
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,36 @@ | ||
# built-in | ||
import sys | ||
from argparse import ArgumentParser | ||
from pathlib import Path | ||
|
||
# app | ||
from ..actions import make_json | ||
from ..config import builders | ||
from ..__version__ import __version__ | ||
from .base import BaseCommand | ||
|
||
|
||
class InspectSelfCommand(BaseCommand): | ||
"""Show information about DepHell installation. | ||
https://dephell.readthedocs.io/en/latest/cmd-inspect-self.html | ||
""" | ||
@classmethod | ||
def get_parser(cls): | ||
parser = ArgumentParser( | ||
prog='dephell inspect self', | ||
description=cls.__doc__, | ||
) | ||
builders.build_config(parser) | ||
builders.build_output(parser) | ||
builders.build_other(parser) | ||
return parser | ||
|
||
def __call__(self): | ||
data = dict( | ||
path=str(Path(__file__).parent.parent), | ||
python=sys.executable, | ||
version=__version__, | ||
) | ||
print(make_json(data=data, key=self.config.get('filter'))) | ||
return True |
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
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 @@ | ||
# dephell inspect self | ||
|
||
Shows information about DepHell installation. | ||
|
||
```bash | ||
$ dephell inspect self | ||
{ | ||
"path": "/home/gram/Documents/dephell/dephell", | ||
"python": "/usr/local/bin/python3.7", | ||
"version": "0.3.1" | ||
} | ||
``` | ||
|
||
## See also | ||
|
||
1. [dephell autocomplete](cmd-venv-create) to enable params autocomplete for commands in your shell. | ||
1. [dephell inspect config](cmd-inspect-config) to get information about config parameters. |
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 |
---|---|---|
|
@@ -45,6 +45,7 @@ | |
:caption: Inspect | ||
cmd-inspect-config | ||
cmd-inspect-self | ||
cmd-inspect-venv | ||
.. toctree:: | ||
|
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