From 908f3a449411cd1cedab93ed0e9e7ee0f0f9248d Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Thu, 10 Sep 2020 11:42:14 +0200 Subject: [PATCH] Update default projects repo [ci skip] --- spacy/about.py | 3 ++- spacy/cli/project/clone.py | 8 ++++++-- website/docs/usage/projects.md | 2 ++ 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/spacy/about.py b/spacy/about.py index c6176ad36..b8dc65455 100644 --- a/spacy/about.py +++ b/spacy/about.py @@ -4,4 +4,5 @@ __version__ = "3.0.0a16" __release__ = True __download_url__ = "https://github.com/explosion/spacy-models/releases/download" __compatibility__ = "https://raw.githubusercontent.com/explosion/spacy-models/master/compatibility.json" -__projects__ = "https://github.com/explosion/spacy-boilerplates" +__projects__ = "https://github.com/explosion/projects" +__projects_branch__ = "v3" diff --git a/spacy/cli/project/clone.py b/spacy/cli/project/clone.py index 70a640847..c6d261097 100644 --- a/spacy/cli/project/clone.py +++ b/spacy/cli/project/clone.py @@ -16,7 +16,7 @@ def project_clone_cli( name: str = Arg(..., help="The name of the template to clone"), dest: Optional[Path] = Arg(None, help="Where to clone the project. Defaults to current working directory", exists=False), repo: str = Opt(about.__projects__, "--repo", "-r", help="The repository to clone from"), - branch: str = Opt("master", "--branch", "-b", help="The branch to clone from") + branch: str = Opt(about.__projects_branch__, "--branch", "-b", help="The branch to clone from") # fmt: on ): """Clone a project template from a repository. Calls into "git" and will @@ -32,7 +32,11 @@ def project_clone_cli( def project_clone( - name: str, dest: Path, *, repo: str = about.__projects__, branch: str = "master" + name: str, + dest: Path, + *, + repo: str = about.__projects__, + branch: str = about.__projects_branch__, ) -> None: """Clone a project template from a repository. diff --git a/website/docs/usage/projects.md b/website/docs/usage/projects.md index 04edf45bd..2b16b9c18 100644 --- a/website/docs/usage/projects.md +++ b/website/docs/usage/projects.md @@ -65,6 +65,8 @@ project template and copies the files to a local directory. You can then run the project, e.g. to train a pipeline and edit the commands and scripts to build fully custom workflows. + + ```cli python -m spacy project clone some_example_project ```