Commit 75645f77 authored by Fabien Amarger's avatar Fabien Amarger
Browse files

chore(debian): Remove debian package from skeleton

parent 0b1158fb07b4
Pipeline #68076 failed with stages
in 23 minutes and 59 seconds
......@@ -22,9 +22,6 @@ build/
dist/
node_modules/
.mypy_cache/
debian/*.log
debian/*.substvars
debian/files
test/data/database/
test/data/ldapdb/
test/data/uicache/
......
......@@ -6,7 +6,6 @@ recursive-include cubicweb_%(cubename)s/i18n *.po
recursive-include cubicweb_%(cubename)s/wdoc *
recursive-include test/data bootstrap_cubes *.py
include *.ini
prune debian
exclude cubicweb-%(cubename)s.spec
exclude .gitlab-ci.yml
exclude .yamllint
%(distname)s (0.1.0-1) UNRELEASED; urgency=medium
* Initial release.
-- %(author)s <%(author-email)s> %(rfc2822-date)s
Source: %(distname)s
Section: web
Priority: optional
Maintainer: %(author)s <%(author-email)s>
Build-Depends:
debhelper (>= 9),
dh-python,
python3-all,
python3-setuptools,
python3-pytest,
python3-cubicweb,
Standards-Version: 4.3.0
X-Python3-Version: >= 3.4
Package: python3-%(distname)s
Architecture: all
Depends:
${python3:Depends},
${misc:Depends},
Description: %(shortdesc)s
CubicWeb is a semantic web application framework.
.
%(longdesc)s
.
This package will install all the components you need to run an application
using the %(distname)s cube.
Upstream Author:
%(author)s <%(author-email)s>
Copyright:
Copyright (c) %(year)s %(author)s.
%(author-web-site)s -- mailto:%(author-email)s
#!/usr/bin/make -f
export PYBUILD_NAME = %(distname)s
export PYBUILD_OPTION = --test-pytest
%%:
dh $@ --with python3 --buildsystem=pybuild
extend-diff-ignore = "^([^/]*\.spec$)"
Tests: pytest
Depends:
@builddeps@,
# Uncomment if the tests require database access
# python3-cubicweb-postgresql-support
Restrictions:
allow-stderr,
# Uncomment if the tests require database access
# isolation-container,
#!/bin/sh
set -e
set -x
### Setup tests
# Uncomment if tests require database access
#service postgresql restart || service postgresql start
#trap 'service postgresql stop' EXIT
cp -r test tox.ini "$AUTOPKGTEST_TMP"
chown -R nobody:nogroup "$AUTOPKGTEST_TMP"
### Run tests
for py in $(py3versions -r 2>/dev/null); do
cd "$AUTOPKGTEST_TMP"
echo "Testing with $py:"
su nobody --shell /bin/sh \
-c "$py -m pytest -v"
done
......@@ -55,30 +55,6 @@ commands =
twine check dist/*
twine upload --skip-existing dist/*
[testenv:deb-publish]
passenv = JENKINS_USER JENKINS_TOKEN
basepython = python3
skip_install = true
whitelist_externals =
rm
sh
hg
deps =
httpie
commands =
hg clean --all --dirs --files
rm -rf build dist .egg .egg-info
python3 setup.py sdist
sh -c "PACKAGE_NAME=$(python3 setup.py --name) && VERSION=$(python3 setup.py --version) && \
cd dist && \
tar xf $PACKAGE_NAME-$VERSION.tar.gz && \
cd $PACKAGE_NAME-$VERSION && \
cp -a {toxinidir}/debian . && \
mk-origtargz --rename ../$PACKAGE_NAME-$VERSION.tar.gz && \
dpkg-buildpackage -us -uc --no-check-builddeps --build=source "
sh -c "cd dist && dcmd zip latest.zip *.changes"
http -f POST https://{env:JENKINS_USER}:{env:JENKINS_TOKEN}@jenkins.intra.logilab.fr/job/pkg-from-dsc/buildWithParameters DIST=buster source.zip@dist/latest.zip REPO=buster PUBLISH=true
[testenv:yamllint]
skip_install = true
deps = yamllint
......
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