Update default projects repo [ci skip]

This commit is contained in:
Ines Montani 2020-09-10 11:42:14 +02:00
parent 15bc3a37b4
commit 908f3a4494
3 changed files with 10 additions and 3 deletions

View File

@ -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"

View File

@ -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.

View File

@ -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.
<!-- TODO: update with real example project -->
```cli
python -m spacy project clone some_example_project
```