Skip to content

Commit

Permalink
Use zc.buildout 3.2.0 to optionally extend local.cfg.
Browse files Browse the repository at this point in the history
I added this option in buildout/buildout#665

For inspiration, here is part of my own `local.cfg`:

```
[buildout]
develop +=
    /Users/maurits/community/zest.releaser
auto-checkout +=
    plone.releaser
custom-eggs +=
    pdbpp

allow-picked-versions = true

[remotes]
plone = git@github.com:plone
collective = git@github.com:collective
zope = git@github.com:zopefoundation

[versions]
zest.releaser =
```

Originally the file started with these lines:

```
[buildout]
extends =
   buildout.cfg
```

and then I always ran `bin/buildout -c local.cfg`.
When I then wanted to use `plips/plip-distributions.cfg`, it got tricky because this was in a different directory, so I needed actual changes in git.
Now it works in both cases thanks to the `optional-extends`.
  • Loading branch information
mauritsvanrees committed Sep 26, 2024
1 parent 8246d00 commit 6d7ae8c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions core.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ extends =
versions-extra.cfg
bare.cfg

# New in zc.buildout 3.2.0: optionally extend a local (non-git) config file:
optional-extends =
local.cfg

extensions +=
plone.versioncheck

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pip==24.2
setuptools==74.0.0
wheel==0.44.0
zc.buildout==3.1.0
zc.buildout==3.2.0

# Windows specific down here (has to be installed here, fails in buildout)
# Dependency of zope.sendmail:
Expand Down
2 changes: 1 addition & 1 deletion versions.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ extends = https://zopefoundation.github.io/Zope/releases/5.10/versions.cfg
pip = 24.2
setuptools = 74.0.0
wheel = 0.44.0
zc.buildout = 3.1.0
zc.buildout = 3.2.0

# windows specific
nt-svcutils = 2.13.0
Expand Down

0 comments on commit 6d7ae8c

Please sign in to comment.