From 9ba8fedc4c23d42251c67bdf227ecfe3f3a910a9 Mon Sep 17 00:00:00 2001 From: Nicolas Dandrimont Date: Wed, 19 Oct 2016 16:53:32 +0200 Subject: [PATCH] base: add implementation for adding origins --- debian/control | 3 ++- requirements.txt | 2 +- swh/lister/github/base.py | 3 +-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/debian/control b/debian/control index 97833e1..a3b75c8 100644 --- a/debian/control +++ b/debian/control @@ -10,7 +10,7 @@ Build-Depends: debhelper (>= 9), python3-setuptools, python3-swh.core, python3-swh.scheduler (>= 0.0.10~), - python3-swh.storage, + python3-swh.storage (>= 0.0.69~), python3-vcversioner Standards-Version: 3.9.6 Homepage: https://forge.softwareheritage.org/diffusion/DLSGH/ @@ -18,6 +18,7 @@ Homepage: https://forge.softwareheritage.org/diffusion/DLSGH/ Package: python3-swh.lister.github Architecture: all Depends: python3-swh.scheduler (>= 0.0.10~), + python3-swh.storage (>= 0.0.69~), ${misc:Depends}, ${python3:Depends} Description: Software Heritage GitHub lister diff --git a/requirements.txt b/requirements.txt index a5f57c9..020ec04 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,5 +2,5 @@ requests SQLAlchemy swh.core -swh.storage +swh.storage (>= 0.0.69) swh.scheduler (>= 0.0.10) diff --git a/swh/lister/github/base.py b/swh/lister/github/base.py index 90a85f7..a8f974c 100644 --- a/swh/lister/github/base.py +++ b/swh/lister/github/base.py @@ -38,8 +38,7 @@ class SWHLister(config.SWHConfig): Returns: a list of origin ids """ - - raise NotImplementedError + return self.storage.origin_add(origins) def create_tasks(self, tasks): """Create the tasks specified, and return their ids.