From 39300ff27c0e28b463944b0d69e4ee76850ff878 Mon Sep 17 00:00:00 2001 From: Thomas Goirand Date: Fri, 17 Sep 2021 16:41:50 +0200 Subject: [PATCH] Initial packaging. --- debian/changelog | 5 +++ debian/control | 60 +++++++++++++++++++++++++++ debian/copyright | 28 +++++++++++++ debian/python-oslo.limit-doc.doc-base | 9 ++++ debian/python3-oslo.limit.install | 1 + debian/rules | 36 ++++++++++++++++ debian/source/format | 1 + debian/source/options | 1 + debian/watch | 4 ++ 9 files changed, 145 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/python-oslo.limit-doc.doc-base create mode 100644 debian/python3-oslo.limit.install create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 debian/source/options create mode 100644 debian/watch diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..9d15ec3 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +python-oslo.limit (1.4.0-1) unstable; urgency=medium + + * Initial release. (Closes: #994546) + + -- Thomas Goirand Fri, 17 Sep 2021 16:31:55 +0200 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..95fb663 --- /dev/null +++ b/debian/control @@ -0,0 +1,60 @@ +Source: python-oslo.limit +Section: python +Priority: optional +Maintainer: Debian OpenStack +Uploaders: + Thomas Goirand , +Build-Depends: + debhelper-compat (= 11), + dh-python, + openstack-pkg-tools, + python3-all, + python3-setuptools, + python3-sphinx, +Build-Depends-Indep: + python3-fixtures, + python3-hacking, + python3-keystoneauth1, + python3-openstackdocstheme , + python3-openstacksdk, + python3-oslo.config, + python3-oslo.i18n, + python3-oslo.log, + python3-oslotest, + python3-stestr, + python3-subunit, + python3-sphinxcontrib.apidoc , +Standards-Version: 4.5.1 +Vcs-Browser: https://salsa.debian.org/openstack-team/oslo/python-oslo.limit +Vcs-Git: https://salsa.debian.org/openstack-team/oslo/python-oslo.limit.git +Homepage: https://docs.openstack.org/oslo.limit/latest/ + +Package: python3-oslo.limit +Architecture: all +Depends: + python3-keystoneauth1, + python3-openstacksdk, + python3-oslo.config, + python3-oslo.i18n, + python3-oslo.log, + ${misc:Depends}, + ${python3:Depends}, +Suggests: + python-oslo.limit-doc, +Description: OpenStack limit enforcement library to assist with quota calculation + Oslo.limit is the limit enforcement library to assist with quota calculation. + It aims to provide support for quota enforcement across all OpenStack services. + It provides functions such as get_project_limits() and enforce_limits(). + +Package: python-oslo.limit-doc +Build-Profiles: +Section: doc +Architecture: all +Depends: + ${misc:Depends}, + ${sphinxdoc:Depends}, +Description: OpenStack limit enforcement library to assist with quota calculation - doc + Oslo.limit is the limit enforcement library to assist with quota calculation. + It aims to provide support for quota enforcement across all OpenStack services. + . + This package contains the documentation. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..9048916 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,28 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: oslo.limit +Source: https://docs.openstack.org/oslo.limit/latest/ + +Files: * +Copyright: (c) 2010-2021, OpenStack Foundation + (c) 2020-2021, Red Hat, Inc +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/python-oslo.limit-doc.doc-base b/debian/python-oslo.limit-doc.doc-base new file mode 100644 index 0000000..678b110 --- /dev/null +++ b/debian/python-oslo.limit-doc.doc-base @@ -0,0 +1,9 @@ +Document: python-oslo.limit-doc +Title: oslo.limit Documentation +Author: N/A +Abstract: Sphinx documentation for oslo.limit +Section: Programming/Python + +Format: HTML +Index: /usr/share/doc/python-oslo.limit-doc/html/index.html +Files: /usr/share/doc/python-oslo.limit-doc/html/* diff --git a/debian/python3-oslo.limit.install b/debian/python3-oslo.limit.install new file mode 100644 index 0000000..74e4e23 --- /dev/null +++ b/debian/python3-oslo.limit.install @@ -0,0 +1 @@ +/usr diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..2278918 --- /dev/null +++ b/debian/rules @@ -0,0 +1,36 @@ +#!/usr/bin/make -f + +UPSTREAM_GIT := https://github.com/openstack/oslo.limit.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: + echo "Do nothing..." + +override_dh_install: + pkgos-dh_auto_install --no-py2 --in-tmp + +ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS))) + pkgos-dh_auto_test --no-py2 +endif + + dh_install + +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.limit-doc/usr/share/doc/python-oslo.limit-doc/html + dh_sphinxdoc +endif diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /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 0000000..cb61fa5 --- /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 0000000..bea08a0 --- /dev/null +++ b/debian/watch @@ -0,0 +1,4 @@ +version=3 +opts=uversionmangle=s/(rc|a|b|c)/~$1/ \ +https://pypi.debian.net/oslo.limit/oslo.limit-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz))) + -- GitLab