mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-24 17:06:29 +03:00
Update default projects repo [ci skip]
This commit is contained in:
parent
15bc3a37b4
commit
908f3a4494
|
@ -4,4 +4,5 @@ __version__ = "3.0.0a16"
|
||||||
__release__ = True
|
__release__ = True
|
||||||
__download_url__ = "https://github.com/explosion/spacy-models/releases/download"
|
__download_url__ = "https://github.com/explosion/spacy-models/releases/download"
|
||||||
__compatibility__ = "https://raw.githubusercontent.com/explosion/spacy-models/master/compatibility.json"
|
__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"
|
||||||
|
|
|
@ -16,7 +16,7 @@ def project_clone_cli(
|
||||||
name: str = Arg(..., help="The name of the template to clone"),
|
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),
|
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"),
|
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
|
# fmt: on
|
||||||
):
|
):
|
||||||
"""Clone a project template from a repository. Calls into "git" and will
|
"""Clone a project template from a repository. Calls into "git" and will
|
||||||
|
@ -32,7 +32,11 @@ def project_clone_cli(
|
||||||
|
|
||||||
|
|
||||||
def project_clone(
|
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:
|
) -> None:
|
||||||
"""Clone a project template from a repository.
|
"""Clone a project template from a repository.
|
||||||
|
|
||||||
|
|
|
@ -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
|
project, e.g. to train a pipeline and edit the commands and scripts to build
|
||||||
fully custom workflows.
|
fully custom workflows.
|
||||||
|
|
||||||
|
<!-- TODO: update with real example project -->
|
||||||
|
|
||||||
```cli
|
```cli
|
||||||
python -m spacy project clone some_example_project
|
python -m spacy project clone some_example_project
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue
Block a user