diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000000000000000000000000000000000000..2682c8d47e31aabd3f12855286e477ef67870675 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +python-oslo.metrics (0.3.0-1) experimental; urgency=medium + + * Initial release. (Closes: #993120) + + -- Thomas Goirand Fri, 27 Aug 2021 15:42:31 +0200 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000000000000000000000000000000000000..1491a020810ce5489e60608537bedc8272824584 --- /dev/null +++ b/debian/control @@ -0,0 +1,61 @@ +Source: python-oslo.metrics +Section: python +Priority: optional +Maintainer: Debian OpenStack +Uploaders: + Thomas Goirand , +Build-Depends: + debhelper-compat (= 11), + dh-python, + openstack-pkg-tools, + python3-all, + python3-pbr, + python3-setuptools, + python3-sphinx, +Build-Depends-Indep: + python3-bandit, + python3-coverage, + python3-hacking, + python3-openstackdocstheme, + python3-oslo.config, + python3-oslo.log, + python3-oslo.utils, + python3-oslotest, + python3-prometheus-client, + python3-sphinxcontrib.apidoc, + python3-stestr, + subunit, +Standards-Version: 4.6.0 +Vcs-Browser: https://salsa.debian.org/openstack-team/python/python-oslo.metrics +Vcs-Git: https://salsa.debian.org/openstack-team/python/python-oslo.metrics.git +Homepage: https://opendev.org/openstack/oslo.metrics + +Package: python3-oslo.metrics +Architecture: all +Depends: + python3-oslo.config, + python3-oslo.log, + python3-oslo.utils, + python3-pbr, + python3-prometheus-client, + ${misc:Depends}, + ${python3:Depends}, +Suggests: + python-oslo.metrics-doc, +Description: OpenStack Oslo Metrics API - Python 3.x + This Oslo metrics API supports collecting metrics data from other Oslo + libraries and exposing the metrics data to monitoring system. + . + This package contains the Python 3.x module. + +Package: python-oslo.metrics-doc +Section: doc +Architecture: all +Depends: + ${misc:Depends}, + ${sphinxdoc:Depends}, +Description: OpenStack Oslo Metrics API - doc + This Oslo metrics API supports collecting metrics data from other Oslo + libraries and exposing the metrics data to monitoring system. + . + This package contains the documentation. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000000000000000000000000000000000000..02b4bfb91b607f24dc431bfefcd11fd70e477f0e --- /dev/null +++ b/debian/copyright @@ -0,0 +1,27 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: oslo.metrics +Source: https://opendev.org/openstack/oslo.metrics + +Files: * +Copyright: (c) 2019, OpenStack +License: Apache-2 + +Files: debian/* +Copyright: (c) 2019, Thomas Goirand +License: Apache-2 + +License: Apache-2 + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + . + http://www.apache.org/licenses/LICENSE-2.0 + . + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + . + On Debian-based systems the full text of the Apache version 2.0 license + can be found in /usr/share/common-licenses/Apache-2.0. diff --git a/debian/patches/remove-intersphinx-from-doc.patch b/debian/patches/remove-intersphinx-from-doc.patch new file mode 100644 index 0000000000000000000000000000000000000000..0d02370de7b0fc78f694c326081e5c3c0c7b4143 --- /dev/null +++ b/debian/patches/remove-intersphinx-from-doc.patch @@ -0,0 +1,15 @@ +Description: Remove intersphinx from docs +Author: Thomas Goirand +Forwarded: not-needed +Last-Update: 2021-08-27 + +--- python-oslo.metrics-0.3.0.orig/doc/source/conf.py ++++ python-oslo.metrics-0.3.0/doc/source/conf.py +@@ -22,7 +22,6 @@ sys.path.insert(0, os.path.abspath('../. + # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones. + extensions = [ + 'sphinxcontrib.apidoc', +- 'sphinx.ext.intersphinx', + 'openstackdocstheme', + 'oslo_config.sphinxext', + ] diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000000000000000000000000000000000000..36be5c461565fb6333e5f6377dac31ec0ffe8aee --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +remove-intersphinx-from-doc.patch diff --git a/debian/python-oslo.metrics-doc.doc-base b/debian/python-oslo.metrics-doc.doc-base new file mode 100644 index 0000000000000000000000000000000000000000..a5a9b596a3bb587e044a991926396302a6b37cb4 --- /dev/null +++ b/debian/python-oslo.metrics-doc.doc-base @@ -0,0 +1,9 @@ +Document: python-oslo.metrics-doc +Title: oslo.metrics Documentation +Author: N/A +Abstract: Sphinx documentation for oslo.metrics +Section: Programming/Python + +Format: HTML +Index: /usr/share/doc/python-oslo.metrics-doc/html/index.html +Files: /usr/share/doc/python-oslo.metrics-doc/html/* diff --git a/debian/python3-oslo.metrics.install b/debian/python3-oslo.metrics.install new file mode 100644 index 0000000000000000000000000000000000000000..74e4e23b0176541176f4e5f591bcbe3c6b5e4cde --- /dev/null +++ b/debian/python3-oslo.metrics.install @@ -0,0 +1 @@ +/usr diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000000000000000000000000000000000000..033ab4280a7e69b63091182df6aff479cfbfbaec --- /dev/null +++ b/debian/rules @@ -0,0 +1,35 @@ +#!/usr/bin/make -f + +UPSTREAM_GIT := https://opendev.org/openstack/oslo.metrics.git +include /usr/share/openstack-pkg-tools/pkgos.make + +%: + dh $@ --buildsystem=python_distutils --with python3,sphinxdoc + +override_dh_auto_clean: + rm -rf build .stestr + find . -iname '*.pyc' -delete + for i in $$(find . -type d -iname __pycache__) ; do rm -rf $$i ; done + +override_dh_auto_build: + echo "Do nothing..." + +override_dh_auto_install: + pkgos-dh_auto_install --no-py2 --in-tmp + +override_dh_auto_test: +ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS))) + pkgos-dh_auto_test --no-py2 +endif + +override_dh_auto_test: + echo "Do nothing..." + +override_dh_sphinxdoc: +ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS))) + PYTHONPATH=. python3 -m sphinx -b html doc/source debian/python-oslo.metrics-doc/usr/share/doc/python-oslo.metrics-doc/html + dh_sphinxdoc +endif + +override_dh_python3: + dh_python3 --shebang=/usr/bin/python3 diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000000000000000000000000000000000000..163aaf8d82b6c54f23c45f32895dbdfdcc27b047 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/source/options b/debian/source/options new file mode 100644 index 0000000000000000000000000000000000000000..cb61fa5267b6ad8b3bbc2a612754b79dae466292 --- /dev/null +++ b/debian/source/options @@ -0,0 +1 @@ +extend-diff-ignore = "^[^/]*[.]egg-info/" diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000000000000000000000000000000000000..423d4cd57e8ed3317c3d4a14a6bbdb571f78d830 --- /dev/null +++ b/debian/watch @@ -0,0 +1,4 @@ +version=3 +opts=uversionmangle=s/(rc|a|b|c)/~$1/ \ +https://pypi.debian.net/oslo.metrics/oslo.metrics-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz))) +