2021-12-23 Fred Gleason <fredg@paravelsystems.com>

* Refactored the build of the 'python3-rivwebpyapi' deb package
	so as to include proper PyPI package metadata.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2021-12-23 10:00:54 -05:00
parent 6a01538bf3
commit c1d95b01a9
6 changed files with 38 additions and 3 deletions

View File

@@ -22833,3 +22833,6 @@
* Removed the 'RDAirPlayConf::soundPanelChannelName()' method.
2021-12-21 David Klann <dklann@broadcasttool.com>
* Add missing files to EXTRA_DIST in versions.
2021-12-23 Fred Gleason <fredg@paravelsystems.com>
* Refactored the build of the 'python3-rivwebpyapi' deb package
so as to include proper PyPI package metadata.

View File

@@ -23,10 +23,13 @@
SUBDIRS = api\
tests
all: pypi
pypi:
rm -rf pypi
../../helpers/build_pypi_package.sh rivwebpyapi
cp pypi/dist/* .
cp pypi/src/rivwebpyapi.egg-info/* .
rm -rf pypi
post-pypi:
@@ -43,7 +46,13 @@ CLEANFILES = *~\
*.qm\
*.tar.gz\
*.whl\
moc_*
PKG-INFO\
SOURCES.txt\
dependency_links.txt\
moc_*\
not-zip-safe\
requires.txt\
top_level.txt
DISTCLEANFILES = setup.cfg

View File

@@ -26,6 +26,7 @@
DATESTAMP=`date +%a,\ %d\ %b\ %Y\ %T\ %z`
sed s/@VERSION@/`cat versions/PACKAGE_VERSION`/ < debian/control.src > debian/control
sed s/@VERSION@/`cat versions/PACKAGE_VERSION`/ < debian/changelog.src | sed "s/@DATESTAMP@/$DATESTAMP/" > debian/changelog
sed s/@RIVWEBPYAPI_VERSION@/`cat versions/RIVWEBPYAPI_VERSION`/ < debian/rules.src > debian/rules
mkdir -p m4

6
debian/Makefile.am vendored
View File

@@ -30,7 +30,9 @@ EXTRA_DIST = changelog\
postinst\
postrm\
prerm\
rules
rules\
rules.src
MAINTAINERCLEANFILES = changelog\
control
control\
rules

6
debian/control.src vendored
View File

@@ -69,3 +69,9 @@ Depends: python3, python3-pycurl, python3-mysqldb, python3-serial, python3-reque
Description: PyPAD Program Associated Data script system for Rivendell
This package contains Rivendell's PyPAD scripting system for transmitting
Program Associated Data (PAD) using Python scripts.
Package: python3-rivwebpyapi
Architecture: all
Depends: python3, python3-requests
Description: Python 3 interface for accessing the Rivendell Web API
This is a Python 3 language binding for the Rivendell Web API.

View File

@@ -104,6 +104,20 @@ binary:
mv debian/tmp/usr/lib/python3/dist-packages/pypad.py debian/rivendell-pypad/usr/lib/python3/dist-packages/
mv debian/tmp/usr/lib/python3/dist-packages/__pycache__/* debian/rivendell-pypad/usr/lib/python3/dist-packages/__pycache__/
#
# python3-rivwebpyapi
#
mkdir -p debian/python3-rivwebpyapi/usr/lib/python3/dist-packages
mv debian/tmp/usr/lib/python3/dist-packages/rivwebpyapi debian/python3-rivwebpyapi/usr/lib/python3/dist-packages/
mkdir -p debian/python3-rivwebpyapi/usr/lib/python3/dist-packages/rivwebpyapi-@RIVWEBPYAPI_VERSION@.egg-info
cp apis/rivwebpyapi/PKG-INFO debian/python3-rivwebpyapi/usr/lib/python3/dist-packages/rivwebpyapi-@RIVWEBPYAPI_VERSION@.egg-info/
cp apis/rivwebpyapi/dependency_links.txt debian/python3-rivwebpyapi/usr/lib/python3/dist-packages/rivwebpyapi-@RIVWEBPYAPI_VERSION@.egg-info/
cp apis/rivwebpyapi/requires.txt debian/python3-rivwebpyapi/usr/lib/python3/dist-packages/rivwebpyapi-@RIVWEBPYAPI_VERSION@.egg-info/
cp apis/rivwebpyapi/top_level.txt debian/python3-rivwebpyapi/usr/lib/python3/dist-packages/rivwebpyapi-@RIVWEBPYAPI_VERSION@.egg-info/
mkdir -p debian/python3-rivwebpyapi/usr/share/doc/python3-rivwebpyapi/examples
cp apis/rivwebpyapi/tests/*.py debian/python3-rivwebpyapi/usr/share/doc/python3-rivwebpyapi/examples/
#
# rivendell-select
#