Update debian packaging for tsconfig

- Update debian packaging python3
- Add missing files required to build package
- Adapt to the starlingx build system

Story: 2009101
Task: 43022

Signed-off-by: Charles Short <charles.short@windriver.com>
Change-Id: Idf2bf888e96ff3b9963190bb5c3ab31a859a1b31
This commit is contained in:
Charles Short 2021-08-16 11:47:53 -04:00
parent 7fdf046f14
commit 73eb89d863
10 changed files with 107 additions and 20 deletions

View File

@ -1,14 +0,0 @@
Source: tsconfig
Priority: optional
Maintainer: The StarlingX Developer Team <starlingx-discuss@lists.starlingx.io>
Build-Depends: debhelper,
dh-python,
python-setuptools,
python-all
Standards-Version: 3.9.6
Package: tsconfig
Architecture: all
Depends: ${misc:Depends}, ${python:Depends}
Description: This package contains the StarlingX tsconfig project.

View File

@ -0,0 +1,5 @@
tsconfig (1.0-1) unstable; urgency=medium
* Initial release.
-- Chuck Short <charles.short@windriver.com> Sun, 08 Aug 2021 12:14:46 -0400

View File

@ -0,0 +1,33 @@
Source: tsconfig
Section: admin
Priority: optional
Maintainer: StrarlingX Developers <starlingx-discuss@lists.starlingx.io>
Build-Depends: debhelper-compat (= 13),
dh-python,
python3-setuptools,
python3-all,
python3-hacking,
python3-coverage,
python3-mock,
python3-stestr,
python3-testrepository,
python3-wheel,
Standards-Version: 4.4.1
Homepage: https://www.starlingx.io
Package: tsconfig
Architecture: all
Depends: ${python3:Depends}, ${misc:Depends}, python3-six
Description: Starlingx Config Info
Starlingx platform's configuration management system.
.
This is the Python 3 version of the package.
Package: tsconfig-wheel
Architecture: all
Depends: ${python3:Depends}, ${misc:Depends}, python3-six, python3-wheel
Description: Starlingx Config Info
Starlingx platform's configuration management system.
.
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,40 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: tsconfig
Source: https://opendev.org/starlingx/config
Files: *
Copyright: (c) 2013-2019 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
.
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'.
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
.
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'.

View File

@ -0,0 +1,18 @@
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#export DH_VERBOSE = 1
export PYBUILD_NAME=tsconfig
DEBIAN_DESTDIR := $(CURDIR)/debian/tmp
%:
dh $@ --with python3 --buildsystem=pybuild
override_dh_install:
python3 setup.py install -f --install-layout=deb \
--root=${DEBIAN_DESTDIR}
python3 setup.py bdist_wheel \
--universal \
-d ${CURDIR}/debian/tsconfig-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,2 @@
scripts/tsconfig usr/sbin/tsconfig
/usr/lib/python*/dist-packages/*

View File

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

View File

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