Support of pyang debian package generation
Change-Id: If344b5e0fd005a09e431fa0a5ef9eb279e59bf51
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
diff --git a/Makefile b/Makefile
index 396956c..b606e30 100644
--- a/Makefile
+++ b/Makefile
@@ -52,12 +52,16 @@
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 @@
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 @@
packages=find_packages(),
include_package_data=True,
install_requires=[
- #'pyangbind'
+ 'pyangbind'
],
setup_requires=['setuptools-version-command'],
test_suite='nose.collector',