Skip to content

Commit

Permalink
pass package versions to supervisor cfg file
Browse files Browse the repository at this point in the history
  • Loading branch information
elikoga committed Jun 17, 2024
1 parent 2e48923 commit 67cf14e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/batou/lib/resources/supervisor.buildout.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ versions = versions
allow-picked-versions = false

[versions]
setuptools = 68.0.0
setuptools = {{component.setuptools_version}}
meld3 = 2.0.1
nagiosplugin = 1.3.2
superlance = 1.0
supervisor = 4.2.1
zc.buildout = 3.0.1
zc.buildout = {{component.buildout_version}}
zc.recipe.egg = 2.0.7
wheel = 0.40.0
wheel = {{component.wheel_version}}

[nagiosplugin]
recipe = zc.recipe.egg
Expand Down
3 changes: 2 additions & 1 deletion src/batou/lib/supervisor.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ class Supervisor(Component):
address = Attribute(Address, default=ConfigString("localhost:9001"))
buildout_version = Attribute(default="3.0.1")
setuptools_version = Attribute(default="68.0.0")
wheel_version = Attribute(default="0.40.0")
buildout_cfg = os.path.join(
os.path.dirname(__file__), "resources", "supervisor.buildout.cfg"
)
Expand Down Expand Up @@ -211,7 +212,7 @@ def configure(self):
setuptools=self.setuptools_version,
config=buildout_cfg,
python="3",
wheel="0.40.0",
wheel=self.wheel_version,
)

self.program_config_dir = Directory("etc/supervisor.d", leading=True)
Expand Down

0 comments on commit 67cf14e

Please sign in to comment.