diff --git a/.gitignore b/.gitignore index 42ba6fc..6657a28 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,9 @@ /sgloader/__pycache__/ /dataset/ *.pyc /.coverage /scratch/swhgitloader.cProfile /scratch/swhgitloader.profile /scratch/save.p +*.egg-info +version.txt diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..08ebc95 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,3 @@ +include Makefile +include requirements.txt +include version.txt diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..d033b62 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +swh-loader-git (0.0.1-1) unstable; urgency=low + + * Import initial source package. + + -- Nicolas Dandrimont Fri, 25 Sep 2015 15:55:09 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..ea205ad --- /dev/null +++ b/debian/control @@ -0,0 +1,20 @@ +Source: swh-loader-git +Maintainer: Software Heritage developers +Section: python +Priority: optional +Build-Depends: debhelper (>= 9), + dh-python, + python3-all, + python3-nose, + python3-pygit2, + python3-setuptools, + python3-swh.core, + python3-swh.storage, + python3-vcversioner +Standards-Version: 3.9.6 +Homepage: https://forge.softwareheritage.org/diffusion/DLDG/ + +Package: python3-swh.loader.git +Architecture: all +Depends: ${misc:Depends}, ${python3:Depends} +Description: Software Heritage Git loader diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..81d037d --- /dev/null +++ b/debian/copyright @@ -0,0 +1,22 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ + +Files: * +Copyright: 2015 The Software Heritage developers +License: GPL-3+ + +License: GPL-3+ + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + . + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see . + . + On Debian systems, the complete text of the GNU General Public + License version 3 can be found in `/usr/share/common-licenses/GPL-3'. diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..37cdade --- /dev/null +++ b/debian/rules @@ -0,0 +1,9 @@ +#!/usr/bin/make -f + +export PYBUILD_NAME=swh-loader-git + +%: + dh $@ --with python3 --buildsystem=pybuild + + +override_dh_auto_test: diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..226751f --- /dev/null +++ b/requirements.txt @@ -0,0 +1,4 @@ +pygit2 +vcversioner +swh.core +swh.storage diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..26b9cef --- /dev/null +++ b/setup.py @@ -0,0 +1,30 @@ +#!/usr/bin/env python3 + +from setuptools import setup + + +def parse_requirements(): + requirements = [] + with open('requirements.txt') as f: + for line in f.readlines(): + line = line.strip() + if not line or line.startswith('#'): + continue + requirements.append(line) + + return requirements + + +setup( + name='swh.loader.git', + description='Software Heritage git loader', + author='Software Heritage developers', + author_email='swh-devel@inria.fr', + url='https://forge.softwareheritage.org/diffusion/DCORE/', + packages=['swh.loader.git', 'swh.loader.git.tests'], + scripts=['bin/swh-loader-git'], + install_requires=parse_requirements(), + setup_requires=['vcversioner'], + vcversioner={}, + include_package_data=True, +)