Commit f9464dc6 authored by Katia Saurfelt's avatar Katia Saurfelt
Browse files

[debian] update packaging

* Move to source 3.0 quilt
* Update to Standards version 4.3.0
* Add build depends to be able to run tests while building the package
parent 44810f777fa1
Pipeline #17146 passed with stages
in 2 minutes and 13 seconds
......@@ -2,21 +2,25 @@ Source: cubicweb-registration
Section: web
Priority: optional
Maintainer: Logilab Packaging Team <contact@logilab.fr>
Build-Depends: debhelper (>= 7), python (>= 2.6.5)
Standards-Version: 3.9.3
Build-Depends: debhelper (>= 9),
dh-python,
python (>= 2.6.5),
python-setuptools,
python-pytest,
Standards-Version: 4.3.0
Homepage: http://www.cubicweb.org/project/cubicweb-registration
X-Python-Version: >= 2.6
Package: cubicweb-registration
Architecture: all
Depends:
cubicweb-common (>= 3.24.0),
cubicweb-forgotpwd,
python-imaging,
python-crypto,
python-six (>= 1.4.0),
${python:Depends},
${misc:Depends},
cubicweb-common (>= 3.24.0),
cubicweb-forgotpwd,
python-imaging,
python-crypto,
python-six (>= 1.4.0),
${python:Depends},
${misc:Depends},
Description: public registration component for the CubicWeb framework
This CubicWeb component provides a public registration feature (users
can register and create an account without the need for admin
......
......@@ -4,5 +4,5 @@ Upstream Author:
Copyright:
Copyright (c) 2009-2014 LOGILAB S.A. (Paris, FRANCE).
Copyright (c) 2009-2020 LOGILAB S.A. (Paris, FRANCE).
http://www.logilab.fr -- mailto:contact@logilab.fr
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
build: build-arch build-indep
build-arch:
# Nothing to do
export PYBUILD_NAME = cubicweb-registration
export PYBUILD_OPTION = --test-pytest
build-indep: build-stamp
build-stamp:
dh_testdir
NO_SETUPTOOLS=1 python setup.py -q build
>$@
clean:
dh_testdir
rm -f build-stamp
rm -rf build
find . -name "*.pyc" -delete
dh_clean
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs -i
NO_SETUPTOOLS=1 python setup.py -q install --no-compile --prefix=debian/cubicweb-registration/usr/
# remove generated .egg-info file
rm -rf debian/cubicweb-registration/usr/lib/python*
# Build architecture-independent files here.
binary-indep: build install
dh_testdir
dh_testroot
dh_install -i
dh_installchangelogs -i
dh_installexamples -i
dh_installdocs -i
dh_installman -i
dh_python2 -i /usr/share/cubicweb
dh_link -i
dh_compress -i -X.py -X.ini -X.xml -Xtest
dh_fixperms -i
dh_installdeb -i
dh_gencontrol -i
dh_md5sums -i
dh_builddeb -i
# Build architecture-dependent files here.
binary-arch:
binary: binary-indep
.PHONY: build clean binary-arch binary-indep binary
%:
dh $@ --with python2 --buildsystem=pybuild
extend-diff-ignore = "^([^/]*\.spec$)"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment