Commit ae8d9a8c authored by Thomas Goirand's avatar Thomas Goirand
Browse files

Initial packaging.

parent 43eee506
python-oslo.metrics (0.3.0-1) experimental; urgency=medium
* Initial release. (Closes: #993120)
-- Thomas Goirand <zigo@debian.org> Fri, 27 Aug 2021 15:42:31 +0200
Source: python-oslo.metrics
Section: python
Priority: optional
Maintainer: Debian OpenStack <team+openstack@tracker.debian.org>
Uploaders:
Thomas Goirand <zigo@debian.org>,
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.
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 <openstack-discuss@lists.openstack.org>
License: Apache-2
Files: debian/*
Copyright: (c) 2019, Thomas Goirand <zigo@debian.org>
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.
Description: Remove intersphinx from docs
Author: Thomas Goirand <zigo@debian.org>
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',
]
remove-intersphinx-from-doc.patch
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/*
#!/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
extend-diff-ignore = "^[^/]*[.]egg-info/"
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)))
Supports Markdown
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