Update debian packaging for cgts-client

- Update the dependencies for python3.
- Made sure that the package is buildable and installable.
- Added missing files.

Story: 2009101
Task: 43047

Signed-off-by: Charles Short <charles.short@windriver.com>
Change-Id: Ia76b0da93cce737ed00b0b1545717ba127f00c44
This commit is contained in:
Charles Short 2021-08-18 13:39:48 -04:00
parent 488b4e717c
commit c06abcda57
11 changed files with 132 additions and 37 deletions

View File

@ -1,29 +0,0 @@
Source: cgts-client
Priority: optional
Maintainer: StarlingX team <starlingx-discuss@lists.starlingx.io>
Build-Depends: python-setuptools,
python-all,
debhelper,
dh-python,
python-pbr,
python-keystoneclient,
python-fixtures,
python-dateutil,
python-httplib2,
python-dateutil,
python-six,
python-mock
Standards-Version: 3.9.6
Package: cgts-client
Architecture: all
Depends: ${misc:Depends},
${python:Depends},
python-yaml,
python-httplib2,
python-prettytable,
bash-completion,
python-keystoneclient,
python-dateutil,
python-six
Description: This package contains the cgts-client project.

View File

@ -0,0 +1 @@
/etc/bash_completion.d/

View File

@ -0,0 +1,2 @@
tools/system.bash_completion etc/bash_completion.d/
usr

View File

@ -0,0 +1,5 @@
cgts-client (1.0-1) unstable; urgency=medium
* Initial release.
-- Chuck Short <charles.short@windriver.com> Wed, 18 Aug 2021 13:13:56 -0400

View File

@ -0,0 +1,55 @@
Source: cgts-client
Section: admin
Priority: optional
Maintainer: Starlingx Developers <StarlingX-discuss@lists.StarlingX.io>
Build-Depends: debhelper-compat (= 13), dh-python, python3-setuptools, python3-all, python3-pbr, python3-wheel
Build-Depends-Indep:
python3-keyring,
python3-oslo.i18n,
python3-oslo.serialization,
python3-oslo.utils,
python3-six,
python3-prettytable,
python3-requests-toolbelt,
python3-dateutil,
tsconfig,
python3-fixtures,
python3-mock,
python3-oslotest,
python3-stestr,
python3-testscenarios,
python3-testtools,
python3-testresources,
python3-httplib2,
python3-keystoneclient
Standards-Version: 4.4.1
Homepage: https://www.starlingx.io
Package: cgts-client
Architecture: all
Depends: ${python3:Depends}, ${misc:Depends},
bash-completion,
python3-keystoneclient,
python3-httplib2,
python3-keyring,
python3-oslo.i18n,
python3-oslo.serialization,
python3-oslo.utils,
python3-six,
python3-prettytable,
python3-requests-toolbelt,
python3-dateutil,
tsconfig
Description: StarlingX - sysctem client and cli
system client and cli
.
This is the python3 version of the package
Package: cgts-client-wheel
Architecture: all
Depends: ${python3:Depends}, ${misc:Depends}, python3-wheel
Description: StarlingX - system client and cli
Starlingx Config Info
.
This is the support package for the PEP 427 wheel version of the package,
required for using pip inside a virtual environment.

View File

@ -0,0 +1,42 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: cgts-client
Source: https://opendev.org/starlingx/config
Files: *
Copyright: (c) 2013-2021 Wind River Systems, Inc
(c) Others (See individual files for more details)
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
.
https://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'.
# If you want to use GPL v2 or later for the /debian/* files use
# the following clauses, or change it to suit. Delete these two lines
Files: debian/*
Copyright: 2021 Wind River Systems, Inc
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
.
https://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'.

View File

@ -0,0 +1,18 @@
#!/usr/bin/make -f
#export DH_VERBOSE = 1
export PYBUILD_NAME=cgts-client
# (chuck) - workaround for pbr version detection when running install
export PBR_VERSION=1.0.0
%:
dh $@ --with python3 --buildsystem=pybuild
override_dh_install:
python3 setup.py install -f --install-layout=deb \
--root=$(CURDIR)/debian/tmp
python3 setup.py bdist_wheel \
--universal\
-d $(CURDIR)/debian/cgts-client-wheel/usr/share/python-wheels
dh_install

View File

@ -0,0 +1 @@
3.0 (quilt)

View File

@ -0,0 +1 @@
extend-diff-ignore = "^[^/]*[.]egg-info/"

View File

@ -0,0 +1,7 @@
---
debname: cgts-client
debver: 1.0-1
src_path: cgts-client
revision:
dist: $STX_DIST
PKG_GITREVCOUNT: true

View File

@ -1,8 +0,0 @@
#!/usr/bin/make -f
export PYBUILD_INSTALL_ARGS=--install-data=/usr/share --prefix=/usr
export PBR_VERSION=1.0
%:
dh $@ --with python2 --buildsystem=pybuild