From 76cb0c63ae2c04ad3f99256b561b8d3e05e62858 Mon Sep 17 00:00:00 2001
From: Ivan Tyagov <ivan@nexedi.com>
Date: Thu, 1 Jul 2021 13:28:26 +0200
Subject: [PATCH] Osie runtime slaposify

---
 slapos/software/osie-runtime/software.cfg | 20 ++++++++++++--------
 1 file changed, 12 insertions(+), 8 deletions(-)

diff --git a/slapos/software/osie-runtime/software.cfg b/slapos/software/osie-runtime/software.cfg
index 624bbd0..22957b0 100644
--- a/slapos/software/osie-runtime/software.cfg
+++ b/slapos/software/osie-runtime/software.cfg
@@ -1,6 +1,8 @@
 # the default SlapOs profile which setup a modbus server instance usually over OSIE's coupler
 [buildout]
 allow-picked-versions = true
+extensions = mr.developer
+auto-checkout = beremiz
 extends =
   buildout.hash.cfg
   https://lab.nexedi.com/nexedi/slapos/raw/master/stack/monitor/buildout.cfg
@@ -16,14 +18,14 @@ parts =
 # fix for pypi: https://mail.python.org/pipermail/distutils-sig/2017-October/031712.html
 index = https://pypi.python.org/simple/
 
-#[wxPython]
-#recipe  = zc.recipe.egg:custom 
-#egg     = wxPython 
-#setup-eggs =  
-#    setuptools
+[sources]
+beremiz = hg https://hg.beremiz.org/beremiz/
 
-#[bootstrap2.7]
-#eggs += setuptools
+
+[beremiz]
+recipe  = zc.recipe.egg:develop
+egg     = beremiz
+setup   = ${buildout:directory}/src/beremiz
 
 [Twisted]
 recipe  = zc.recipe.egg:custom
@@ -47,6 +49,7 @@ eggs = click
        Nevow
        msgpack
        autobahn
+       ${beremiz:egg}
        ${Twisted:egg}
 
 [osie-repository]
@@ -55,7 +58,6 @@ git-executable = ${git:location}/bin/git
 # token must be removed if going public!!!
 repository = https://gitlab+deploy-token-4:pLwtBu8TbusqZDKPUpZA@lab.nexedi.com/nexedi/osie.git
 location = ${buildout:parts-directory}/osie
-branch = slaposify
 
 [instance-profile]
 recipe = slapos.recipe.template:jinja2
@@ -101,3 +103,5 @@ typing = 3.10.0.0
 
 autobahn = 19.11.2
 txaio = 18.8.1
+idna = 2.10
+mr.developer = 2.0.1
-- 
2.30.9