This repository has been archived by the owner on Jul 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve pythonPath config for Open-Needs (#40)
Fixes #38 * Improve pythonPath config for Open-Needs * Fixed linting and updated docs * Fixed inline literal * Added routine diagram for specify pythonPath * Adapted diagram for needls install process * Added trigger for diagram * Adated pythonPAth func * restructuring active() and co. * Support user ESC and update input proposol * Added test temp env for empty pythonPath * more checks for needls * version raise to 0.0.15 Co-authored-by: Daniel Woste <daniel.woste@useblocks.com>
- Loading branch information
1 parent
5cce601
commit cb04c4e
Showing
14 changed files
with
265 additions
and
105 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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"recommendations": [ | ||
"ms-python.vscode-pylance", | ||
"ms-python.python" | ||
] | ||
} |
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,49 @@ | ||
Installation routine | ||
==================== | ||
|
||
Process to install needls: | ||
|
||
.. uml:: | ||
|
||
@startuml | ||
start | ||
|
||
:Trigger\n 1. open-needs-ide.load\n 2. open .rst file; | ||
|
||
:Check needls.pythonPath specified in workspace setting; | ||
|
||
if (needls.pythonPath specified and valid?) then (no) | ||
|
||
#palegreen:repeat :Prompt inputbox to ask user to specify; | ||
if (user specify?) then (yes) | ||
:user specify python path or use default; | ||
:press ENTER; | ||
#yellow:check and validate given python path; | ||
else (no) | ||
#darkorange:press ESC; | ||
end | ||
|
||
endif | ||
|
||
repeat while (valid?) is (no) | ||
->yes; | ||
|
||
else (yes) | ||
|
||
endif | ||
|
||
:Use specified valid pythonPath to install needls; | ||
if (needls installed?) then (no) | ||
#yellowgreen:install needls; | ||
if (user confirm?) then (yes) | ||
:needls install success; | ||
else (no) | ||
end | ||
endif | ||
|
||
else (yes) | ||
|
||
endif | ||
|
||
stop | ||
@enduml |
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 |
---|---|---|
|
@@ -81,6 +81,7 @@ Content | |
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
arch | ||
installation | ||
settings | ||
features | ||
|
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 |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "0.0.14" | ||
__version__ = "0.0.15" |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{ | ||
"needls.buildPath": "{{build_path}}", | ||
"needls.docsRoot": "{{docs_root}}" | ||
"needls.docsRoot": "{{docs_root}}", | ||
"needls.pythonPath": "{{pythonPath}}", | ||
} |
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
Oops, something went wrong.