diff --git a/.gitignore b/.gitignore index 90d0c070..22117ac3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ *.pyc *.sw? *~ .coverage .eggs/ __pycache__ +version.txt diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 00000000..08ebc95b --- /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 00000000..86e650d6 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +swh-web-ui (0.0.1-1) unstable; urgency=low + + * Import initial source package. + + -- Antoine R. Dumont Wed, 30 Sep 2015 16:24:02 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 00000000..ec635144 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 00000000..13fb85fd --- /dev/null +++ b/debian/control @@ -0,0 +1,19 @@ +Source: swh-web-ui +Maintainer: Software Heritage developers +Section: python +Priority: optional +Build-Depends: debhelper (>= 9), + dh-python, + python3-all, + python3-nose, + python3-setuptools, + python3-swh.core, + python3-swh.storage, + python3-vcversioner +Standards-Version: 3.9.6 +Homepage: https://forge.softwareheritage.org/diffusion/DWUI/ + +Package: python3-swh.web.ui +Architecture: all +Depends: ${misc:Depends}, ${python3:Depends} +Description: Software Heritage Web UI diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 00000000..81d037db --- /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 00000000..e5f791e6 --- /dev/null +++ b/debian/rules @@ -0,0 +1,9 @@ +#!/usr/bin/make -f + +export PYBUILD_NAME=swh-web-ui + +%: + dh $@ --with python3 --buildsystem=pybuild + + +override_dh_auto_test: diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/setup.py b/setup.py new file mode 100755 index 00000000..f7698da2 --- /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.web.ui', + description='Software Heritage Web UI', + author='Software Heritage developers', + author_email='swh-devel@inria.fr', + url='https://forge.softwareheritage.org/diffusion/DWUI/', + packages=['swh.web.ui', 'swh.web.ui.tests'], + scripts=['bin/swh-web-ui'], + install_requires=parse_requirements(), + setup_requires=['vcversioner'], + vcversioner={}, + include_package_data=True, +)