Remove gitpy2 dependency.

This commit is contained in:
Joël Maïzi 2020-08-05 09:21:59 +02:00
parent b34631cdd0
commit 36f87849ca
2 changed files with 0 additions and 4 deletions

View File

@ -346,8 +346,6 @@ def update_db(domains):
@click.option('--repo', default=None) @click.option('--repo', default=None)
@cli.command() @cli.command()
def init_project(project, repo): def init_project(project, repo):
import pygit2
if not re.match('^[a-z0-9_]+$', project, re.I): if not re.match('^[a-z0-9_]+$', project, re.I):
click.echo('Project name must match "^[a-z0-9_]+$", retry.', err=True) click.echo('Project name must match "^[a-z0-9_]+$", retry.', err=True)
sys.exit(1) sys.exit(1)
@ -358,7 +356,6 @@ def init_project(project, repo):
click.echo(f'Initialize project repository in directory {project}') click.echo(f'Initialize project repository in directory {project}')
pygit2.init_repository(project)
try: try:
pdb = ProjectDB(project) pdb = ProjectDB(project)

View File

@ -47,7 +47,6 @@ setup(
"starlette", "starlette",
"half_orm @ git+ssh://git@gite.lirmm.fr/maizi/halfORM.git", "half_orm @ git+ssh://git@gite.lirmm.fr/maizi/halfORM.git",
"click", "click",
"pygit2",
"uvicorn" "uvicorn"
], ],
extras_require={ extras_require={