-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added async functionality to non-git archives
This includes moving most of the functions in plugin_helper.py to async generators. The GitSyncView also opens the console view whenever anything is written to it -- error or just progress output.
- Loading branch information
1 parent
10385bb
commit ab80daf
Showing
22 changed files
with
683 additions
and
320 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,6 +1,5 @@ | ||
include *.md | ||
include LICENSE | ||
include setup.cfg | ||
recursive-include nbgitpuller/plugins * | ||
recursive-include nbgitpuller/static * | ||
recursive-include nbgitpuller/templates * |
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,21 +1,22 @@ | ||
import pluggy | ||
|
||
hookspec = pluggy.HookspecMarker("nbgitpuller") | ||
hookimpl = pluggy.HookimplMarker("nbgitpuller") | ||
|
||
|
||
@hookspec | ||
def handle_files(self, repo, repo_parent_dir): | ||
@hookspec(firstresult=True) | ||
def handle_files(query_line_args): | ||
""" | ||
:param str repo: download url to source | ||
:param str repo_parent_dir: where we will store the downloaded repo | ||
:param json query_line_args: this includes any argument you put on the url | ||
:return two parameter json unzip_dir and origin_repo_path | ||
:rtype json object | ||
This handles the downloading of non-git source | ||
files into the user directory. Once downloaded, | ||
the files are merged into a local git repository. | ||
Once the local git repository is updated(or created | ||
the first time), git puller can then handle this | ||
directory as it would sources coming from a | ||
git repository. | ||
The developer uses this function to download, un-compress and save the | ||
source files to the TEMP_DOWNLOAD_REPO_DIR folder. | ||
The parameter, query_line_args, is any argument you put on the URL | ||
Once the files are saved to the directly, git puller can handle all the | ||
standard functions needed to make sure source files are updated or created | ||
as needed. | ||
""" |
Oops, something went wrong.