From de2939d1a45718ebd66ab704f09175ea0be4eac5 Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Mon, 11 Sep 2017 12:23:40 +0200 Subject: [PATCH] Support of pyang debian package generation Change-Id: If344b5e0fd005a09e431fa0a5ef9eb279e59bf51 Signed-off-by: garciadeblas --- Makefile | 8 ++++++-- devops-stages/stage-archive.sh | 1 + setup.py | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 396956c..b606e30 100644 --- a/Makefile +++ b/Makefile @@ -52,12 +52,16 @@ $(RW_PB_EXT): package: tox -e build -pyangbind: +pyangbind: pyang git clone https://github.com/robshakir/pyangbind cd pyangbind; python setup.py --command-packages=stdeb.command bdist_deb; cd .. +pyang: + git clone https://github.com/mbj4668/pyang + cd pyang; python setup.py --command-packages=stdeb.command bdist_deb; cd .. + pyang-json-schema-plugin: git clone https://github.com/cmoberg/pyang-json-schema-plugin clean: - $(Q)rm -rf build dist osm_im.egg-info deb deb_dist *.gz pyangbind pyang-json-schema-plugin $(OUT_DIR) + $(Q)rm -rf build dist osm_im.egg-info deb deb_dist *.gz pyang pyangbind pyang-json-schema-plugin $(OUT_DIR) diff --git a/devops-stages/stage-archive.sh b/devops-stages/stage-archive.sh index 9640bac..c696ce6 100755 --- a/devops-stages/stage-archive.sh +++ b/devops-stages/stage-archive.sh @@ -6,6 +6,7 @@ rm -rf dists mkdir -p pool/$MDG mv deb_dist/*.deb pool/$MDG/ mv pyangbind/deb_dist/*.deb pool/$MDG/ +mv pyang/deb_dist/*.deb pool/$MDG/ mkdir -p dists/unstable/$MDG/binary-amd64/ apt-ftparchive packages pool/$MDG > dists/unstable/$MDG/binary-amd64/Packages diff --git a/setup.py b/setup.py index ce3d5d6..6cfe17b 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ setup( packages=find_packages(), include_package_data=True, install_requires=[ - #'pyangbind' + 'pyangbind' ], setup_requires=['setuptools-version-command'], test_suite='nose.collector', -- 2.25.1