From cabf83613c7648e01ebeb2b4207f19802d8be62a Mon Sep 17 00:00:00 2001 From: Nicolas Dandrimont Date: Tue, 27 Oct 2015 14:36:20 +0100 Subject: [PATCH] ghlister: move to swh.lister.github as per swh convention Closes T30 --- bin/ghlister | 4 ++-- {ghlister => swh/lister/github}/__init__.py | 0 {ghlister => swh/lister/github}/db_utils.py | 0 {ghlister => swh/lister/github}/lister.py | 4 ++-- {ghlister => swh/lister/github}/models.py | 0 5 files changed, 4 insertions(+), 4 deletions(-) rename {ghlister => swh/lister/github}/__init__.py (100%) rename {ghlister => swh/lister/github}/db_utils.py (100%) rename {ghlister => swh/lister/github}/lister.py (97%) rename {ghlister => swh/lister/github}/models.py (100%) diff --git a/bin/ghlister b/bin/ghlister index aceeeb0..da4c5d9 100755 --- a/bin/ghlister +++ b/bin/ghlister @@ -13,8 +13,8 @@ import sys from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker -from ghlister import lister, models -from ghlister.db_utils import session_scope +from swh.lister.github import lister, models +from swh.lister.github.db_utils import session_scope DEFAULT_CONF = { diff --git a/ghlister/__init__.py b/swh/lister/github/__init__.py similarity index 100% rename from ghlister/__init__.py rename to swh/lister/github/__init__.py diff --git a/ghlister/db_utils.py b/swh/lister/github/db_utils.py similarity index 100% rename from ghlister/db_utils.py rename to swh/lister/github/db_utils.py diff --git a/ghlister/lister.py b/swh/lister/github/lister.py similarity index 97% rename from ghlister/lister.py rename to swh/lister/github/lister.py index c4b58f1..9bbde6a 100644 --- a/ghlister/lister.py +++ b/swh/lister/github/lister.py @@ -14,8 +14,8 @@ import time from pprint import pformat from sqlalchemy import func -from ghlister.db_utils import session_scope -from ghlister.models import Repository +from swh.lister.github.db_utils import session_scope +from swh.lister.github.models import Repository GH_API_URL = 'https://api.github.com' diff --git a/ghlister/models.py b/swh/lister/github/models.py similarity index 100% rename from ghlister/models.py rename to swh/lister/github/models.py