diff --git a/debian/changelog b/debian/changelog index 86e650d6..b721b4c1 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,5 +1,8 @@ -swh-web-ui (0.0.1-1) unstable; urgency=low +swh-web (0.0.1-1~swh1) unstable-swh; urgency=medium - * Import initial source package. + * Initial release + * v0.0.1 + * Hash lookup to check existence in swh's backend + * Hash lookup to detail a content - -- Antoine R. Dumont Wed, 30 Sep 2015 16:24:02 +0200 + -- Antoine R. Dumont (@ardumont) Thu, 01 Oct 2015 10:01:29 +0200 diff --git a/debian/control b/debian/control index 13fb85fd..fa3f1f75 100644 --- a/debian/control +++ b/debian/control @@ -1,19 +1,46 @@ -Source: swh-web-ui +Source: swh-web Maintainer: Software Heritage developers Section: python Priority: optional -Build-Depends: debhelper (>= 9), - dh-python, +Build-Depends: curl, + debhelper (>= 9), + dh-python (>= 2), python3-all, - python3-nose, + python3-bs4, + python3-django (>= 1.10.7~), + python3-djangorestframework (>= 3.4.0~), + python3-django-webpack-loader, + python3-django-js-reverse, + python3-docutils, + python3-htmlmin, + python3-magic (>= 0.3.0~), + python3-lxml, + python3-pytest, + python3-pytest-django, + python3-pygments, + python3-pypandoc, + python3-requests, python3-setuptools, - python3-swh.core, - python3-swh.storage, - python3-vcversioner + python3-sphinx, + python3-sphinxcontrib.httpdomain, + python3-yaml, + python3-swh.core (>= 0.0.40~), + python3-swh.model (>= 0.0.25~), + python3-swh.storage (>= 0.0.109~), + python3-swh.indexer.storage (>= 0.0.52~), + python3-swh.vault (>= 0.0.20~), + python3-swh.scheduler (>= 0.0.31~) Standards-Version: 3.9.6 Homepage: https://forge.softwareheritage.org/diffusion/DWUI/ -Package: python3-swh.web.ui +Package: python3-swh.web Architecture: all -Depends: ${misc:Depends}, ${python3:Depends} -Description: Software Heritage Web UI +Depends: python3-swh.core (>= 0.0.40~), + python3-swh.model (>= 0.0.25~), + python3-swh.storage (>= 0.0.109~), + python3-swh.indexer.storage (>= 0.0.52~), + python3-swh.vault (>= 0.0.20~), + python3-swh.scheduler (>= 0.0.31~), + ${misc:Depends}, + ${python3:Depends} +Description: Software Heritage Web Applications diff --git a/debian/copyright b/debian/copyright index 81d037db..f810b2ed 100644 --- a/debian/copyright +++ b/debian/copyright @@ -1,22 +1,19 @@ Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Files: * Copyright: 2015 The Software Heritage developers -License: GPL-3+ +License: AGPL-3+ -License: GPL-3+ +License: AGPL-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 + it under the terms of the GNU Affero 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. + GNU Affero General Public License for more details. . - You should have received a copy of the GNU General Public License + You should have received a copy of the GNU Affero 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/gbp.conf b/debian/gbp.conf new file mode 100644 index 00000000..75762062 --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,6 @@ +[DEFAULT] +upstream-branch=debian/upstream +upstream-tag=debian/upstream/%(version)s +upstream-vcs-tag=v%(version)s +debian-branch=debian/unstable-swh +pristine-tar=True diff --git a/debian/postinst b/debian/postinst new file mode 100755 index 00000000..aa14081e --- /dev/null +++ b/debian/postinst @@ -0,0 +1,3 @@ +#!/bin/bash + +django-admin migrate --settings=swh.web.settings.production diff --git a/debian/rules b/debian/rules index e5f791e6..20f5d221 100755 --- a/debian/rules +++ b/debian/rules @@ -1,9 +1,12 @@ #!/usr/bin/make -f -export PYBUILD_NAME=swh-web-ui +export PYBUILD_NAME=swh.web +export PYBUILD_OPTION=--test-pytest +export PYBUILD_TEST_ARGS=./swh/web/tests %: dh $@ --with python3 --buildsystem=pybuild - -override_dh_auto_test: +override_dh_install: + dh_install + rm -v $(CURDIR)/debian/python3-*/usr/lib/python*/dist-packages/swh/__init__.py