From 36f87849cae43351fd0e4f876399134aec3e81b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=ABl=20Ma=C3=AFzi?= Date: Wed, 5 Aug 2020 09:21:59 +0200 Subject: [PATCH] Remove gitpy2 dependency. --- halfapi/cli/__init__.py | 3 --- setup.py | 1 - 2 files changed, 4 deletions(-) diff --git a/halfapi/cli/__init__.py b/halfapi/cli/__init__.py index 3eecc08..64981ac 100644 --- a/halfapi/cli/__init__.py +++ b/halfapi/cli/__init__.py @@ -346,8 +346,6 @@ def update_db(domains): @click.option('--repo', default=None) @cli.command() def init_project(project, repo): - import pygit2 - if not re.match('^[a-z0-9_]+$', project, re.I): click.echo('Project name must match "^[a-z0-9_]+$", retry.', err=True) sys.exit(1) @@ -358,7 +356,6 @@ def init_project(project, repo): click.echo(f'Initialize project repository in directory {project}') - pygit2.init_repository(project) try: pdb = ProjectDB(project) diff --git a/setup.py b/setup.py index 6c4a686..15e5be2 100755 --- a/setup.py +++ b/setup.py @@ -47,7 +47,6 @@ setup( "starlette", "half_orm @ git+ssh://git@gite.lirmm.fr/maizi/halfORM.git", "click", - "pygit2", "uvicorn" ], extras_require={