Skip to content

Commit

Permalink
increase supervisor buildout and setuptools versions for support for …
Browse files Browse the repository at this point in the history
…newer python
  • Loading branch information
elikoga committed Jun 17, 2024
1 parent 57b9422 commit 6ddd0d2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
5 changes: 3 additions & 2 deletions src/batou/lib/resources/supervisor.buildout.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@ versions = versions
allow-picked-versions = false

[versions]
setuptools = 50.3.2
setuptools = 68.0.0
meld3 = 2.0.1
nagiosplugin = 1.3.2
superlance = 1.0
supervisor = 4.2.1
zc.buildout = 2.13.3
zc.buildout = 3.0.1
zc.recipe.egg = 2.0.7
wheel = 0.40.0

[nagiosplugin]
recipe = zc.recipe.egg
Expand Down
9 changes: 6 additions & 3 deletions src/batou/lib/supervisor.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ def configure(self):
class Supervisor(Component):

address = Attribute(Address, default=ConfigString("localhost:9001"))
buildout_version = Attribute(default="3.0.1")
setuptools_version = Attribute(default="68.0.0")
buildout_cfg = os.path.join(
os.path.dirname(__file__), "resources", "supervisor.buildout.cfg"
)
Expand Down Expand Up @@ -203,12 +205,13 @@ class Supervisor(Component):
def configure(self):
self.provide("supervisor", self)

buildout_cfg = File("buildout.cfg", source=self.buildout_cfg)
buildout_cfg = File("buildout3.cfg", source=self.buildout_cfg)
self += Buildout(
version="2.13.3",
setuptools="50.3.2",
version=self.buildout_version,
setuptools=self.setuptools_version,
config=buildout_cfg,
python="3",
wheel="0.40.0",
)

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

0 comments on commit 6ddd0d2

Please sign in to comment.