Commit 6f382131 authored by Nicolas Chauvat's avatar Nicolas Chauvat
Browse files

stop making debian packages for this cube

parent 4c29408fdff0
Pipeline #68713 passed with stages
in 1 minute and 24 seconds
......@@ -15,14 +15,10 @@ include:
- "templates/lint/check-manifest.yml" # will do the equivalent of 'tox -e check-manifest'
- "templates/lint/yamllint.yml" # will do the equivalent of 'tox -e yamllint'
- "templates/tests/py3.yml" # will do the equivalent of 'tox -e py3'
- "templates/build-debian-package.yml" # will build a .deb and upload it to heptapod files
- "templates/create-release-on-heptapod-including-debian-package.yml" # this will create a release on heptapod AND uses uploaded .deb by build-debian-package
- "templates/upload-to-pypi.yml" # on a new mercurial tag (expected to be done with release-new), will push a release on pypi
stages:
- lint
- tests
- build-debian-package
- upload-deb-to-heptapod
- release
- publish
......@@ -7,7 +7,6 @@ recursive-include cubicweb_prometheus/wdoc *
recursive-include test/data bootstrap_cubes *.py
include *.ini
include *.md
prune debian
exclude cubicweb-prometheus.spec
exclude .gitlab-ci.yml
exclude .yamllint
cubicweb-prometheus (0.1.4-1) unstable; urgency=medium
* New patch release
-- Nicolas Chauvat <nicolas.chauvat@logilab.fr> Wed, 12 May 2021 19:25:50 +0200
cubicweb-prometheus (0.1.3-1) unstable; urgency=medium
* New patch release
-- Nicolas Chauvat <nicolas.chauvat@logilab.fr> Wed, 12 May 2021 17:23:44 +0200
cubicweb-prometheus (0.1.2-1) unstable; urgency=medium
* New patch release
-- Nicolas Chauvat <nicolas.chauvat@logilab.fr> Tue, 11 May 2021 17:29:39 +0200
cubicweb-prometheus (0.1.1-1) unstable; urgency=medium
[ LOGILAB S.A. (Paris, FRANCE) ]
* Initial release.
[ Nicolas Chauvat ]
* New patch release
-- Nicolas Chauvat <nicolas.chauvat@logilab.fr> Tue, 11 May 2021 17:24:47 +0200
Source: cubicweb-prometheus
Section: web
Priority: optional
Maintainer: LOGILAB S.A. (Paris, FRANCE) <contact@logilab.fr>
Build-Depends:
debhelper (>= 9),
dh-python,
python3-all,
python3-setuptools,
python3-pytest,
Standards-Version: 4.3.0
X-Python3-Version: >= 3.4
Package: python3-cubicweb-prometheus
Architecture: all
Depends:
${python3:Depends},
${misc:Depends},
Description: Exporting prometheus metrics
CubicWeb is a semantic web application framework.
.
Exporting prometheus metrics
.
This package will install all the components you need to run an application
using the cubicweb-prometheus cube.
Upstream Author:
LOGILAB S.A. (Paris, FRANCE) <contact@logilab.fr>
Copyright:
Copyright (c) 2021 LOGILAB S.A. (Paris, FRANCE).
http://www.logilab.fr -- mailto:contact@logilab.fr
test
tox.ini
cubicweb-prometheus.egg-info
#!/usr/bin/make -f
export PYBUILD_NAME = cubicweb-prometheus
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
......@@ -49,7 +49,7 @@ classifiers = __pkginfo__["classifiers"]
with open(join(here, "README.md")) as f:
long_description = f.read()
long_description_content_type = 'text/markdown'
long_description_content_type = "text/markdown"
# get optional metadatas
data_files = __pkginfo__.get("data_files", None)
......
......@@ -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