Support of pyang debian package generation 57/2157/5
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Mon, 11 Sep 2017 10:23:40 +0000 (12:23 +0200)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Mon, 11 Sep 2017 14:58:25 +0000 (16:58 +0200)
Change-Id: If344b5e0fd005a09e431fa0a5ef9eb279e59bf51
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
Makefile
devops-stages/stage-archive.sh
setup.py

index 396956c..b606e30 100644 (file)
--- 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)
index 9640bac..c696ce6 100755 (executable)
@@ -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
index ce3d5d6..6cfe17b 100644 (file)
--- 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',