Bug fixes:
- Fixed import of packaging.markers. [maurits] (#621)
New features:
- Add support for PEP 508 markers in section condition expressions.
For example:
[versions:python_version <= "3.9"]
. [maurits] (#621)
Bug fixes:
- Command-line 'extends' now works with dirs in file names [gotcha] (cli-extends)
- Add support for python311-315 in conditional section expressions. (#311)
- Make compatible with pip 22.2+, restoring Requires-Python functionality there. Fixes issue 613. [maurits] (#613)
Bug fixes:
- Fix TypeError: dist must be a Distribution instance due to issue between setuptools and pip. (#600)
New features:
- add support for PEP496 environment markers (pep496)
Bug fixes:
- Fix TypeError for missing required use_deprecated_html5lib with pip 22. Keep compatible with earlier pip versions. (#598)
Bug fixes:
- Call pip via python -m pip. (#569)
Bug fixes:
- Fix when c extension implements namespace packages without the corresponding directories. (#589)
- Honor command-line buildout:extends (#592)
New features:
- Allow to run buildout in FIPS enabled environments. (#570)
- Proper error message if extends-cache tries to expand ${section:variable} (#585)
Bug fixes:
- Forward verbose option to pip (#576)
- Check that file top_level.txt exists before opening. Add check for other files as well. (#582)
- Return code of pip install subprocess is now properly returned to buildout. (#586)
New features:
- Improve warning message when a section contains unused options. (#483)
Bug fixes:
- Fix support of
pip>=21.1
(#567) - Fix confusion when using multiple Python versions and installing packages with C extensions without proper binary wheel available. (#574)
Development:
- Avoid broken jobs on Travis because of security on PRs (travis-pr)
New features:
- Improve error message when a package version is not pinned and allow-picked-versions = false. (#481)
Bug fixes:
- Fix FileNotFoundError when installing eggs with top-level directory without code (like doc). (#556)
Development:
- Login to docker hub to avoid pull limits (travis)
- Initialize towncrier (#519)
- Fix issue with combination of > specs and extras and recent setuptools.
- Fix issue with incrementing options from .buildout/default.cfg.
- Support python37, python38 and python39 in conditional section expressions.
- Fix bootstrapping for python27 and python35.
- Ignore .git when computing signature of a recipe develop egg
- Warn when the name passed to zc.recipe.egg:scripts is not defined in egg entry points.
- Show pip warning about Python version only once.
- Better patch for
pkg_resources.Distribution.hashcmp
performance.
- Scripts: ensure eggs are inserted before
site-packages
insys.path
. - Fix forever loop when changing
zc.buildout
version viabuildout
. - Add support for
Requires-Python
metadata. Fragile monkeypatch that relies onpip._internal
. Emits a warning when support is disabled due to changes inpip
. - Use
pip install
instead of deprecatedsetuptools.easy_install
. - Patch
pkg_resources.Distribution
to make install of unpinned versions quicker. Most obvious withsetuptools
.
- Fix DeprecationWarning about MutableMapping. (#484)
- Fixed DeprecationWarning on python 3.7: "'U' mode is deprecated".
- Documentation update for the new
buildout query
command.
- Get information about the configuration with new command
buildout query
.
- Upon an error, buildout exits with a non-zero exit code. This now also works
when running with
-D
. - Fixed most 'Deprecation' and 'Resource' warnings.
- zc.buildout now explicitly requests zc.recipe.egg >=2.0.6 now.
Add a new buildout option
allow-unknown-extras
to enable installing requirements that specify extras that do not exist. This needs a corresponding update to zc.recipe.egg. See issue 457.zc.recipe.egg has been updated to 2.0.6 for this change.
- Fix for issue 295. On windows, deletion of temporary egg files is more robust now.
- Fix for issue 451: distributions with a version number that normalizes to a shorter version number (3.3.0 to 3.3, for instance) can be installed now.
- Update to use the new PyPI at https://pypi.org/.
- Fix for the #442 issue: AttributeError on
pkg_resources.SetuptoolsVersion
.
- Made upgrade check more robust. When using extensions, the improvement introduced in 2.11 could prevent buildout from restarting itself when it upgraded setuptools.
- Installed packages are added to the working set immediately. This helps in some corner cases that occur when system packages have versions that conflict with our specified versions.
Setuptools 38.2.0 started supporting wheels. Through setuptools, buildout now also supports wheels! You need at least version 38.2.3 to get proper namespace support.
This setuptools change interfered with buildout's recent support for buildout.wheel, resulting in a sudden "Wheels are not supported" error message (see issue 435). Fixed by making setuptools the default, though you can still use the buildout.wheel if you want.
- Fixed: could not install eggs when sdist file name and package name had different case.
- Use HTTPS for PyPI's index. PyPI redirects HTTP to HTTPS by default now so using HTTPS directly avoids the potential for that redirect being modified in flight.
Sort the distributions used to compute
__buildout_signature__
to ensure reproducibility under Python 3 or under Python 2 when-R
is used onPYTHONHASHSEED
is set torandom
. Fixes issue 392.NOTE: This may cause existing
.installed.cfg
to be considered outdated and lead to parts being reinstalled spuriously under Python 2.Add support code for doctests to be able to easily measure code coverage. See issue 397.
- Add more verbosity to
annotate
results with-v
- Select one or more sections with arguments after
buildout annotate
.
- Fixed: We unnecessarily used a function from newer versions of setuptools that caused problems when older setuptools or pkg_resources installs were present (as in travis.ci).
- Fixed a minor packaging bug that broke the PyPI page.
- Added new syntax to explicitly declare that a part depends on other part. See http://docs.buildout.org/en/latest/topics/implicit-parts.html
- Internal refactoring to work with buildout.wheel.
- Fixed a bugs in
zc.buildout.testing.Buildout
. It was loading user-default configuration. It didn't support calling thecreated
method on its sections. - Fixed a bug (windows, py 3.4)
When processing metadata on "old-style" distutils scripts, .exe stubs
appeared in
metadata_listdir
, in turn reading those burped withUnicodeDecodeError
. Skipping .exe stubs now.
- Added a hook to enable a soon-to-be-released buildout extension to provide wheel support.
- Fixed a bug introduced in 2.6.0:
zc.buildout and its dependeoncies were reported as picked even when
their versions were fixed in a
versions
section. Worse, when theupdate-versions-file
option was used, theversions
section was updated needlessly on every run.
Added a buildout option,
abi-tag-eggs
that, when true, causes the ABI tag for the buildout environment to be added to the eggs directory name.This is useful when switching Python implementations (e.g. CPython vs PyPI or debug builds vs regular builds), especially when environment differences aren't reflected in egg names. It also has the side benefit of making eggs directories smaller, because eggs for different Python versions are in different directories.
- Updated to work with the latest setuptools.
- Added (verified) Python 3.6 support.
- After a dist is fetched and put into its final place, compile its python files. No longer wait with compiling until all dists are in place. This is related to the change below about not removing an existing egg. [maurits]
- Do not remove an existing egg. When installing an egg to a location that already exists, keep the current location (directory or file). This can only happen when the location at first did not exist and this changed during the buildout run. We used to remove the previous location, but this could cause problems when running two buildouts at the same time, when they try to install the same new egg. Fixes #307. [maurits]
- In
zc.buildout.testing.system
, setTERM=dumb
in the environment. This avoids invisible control characters popping up in some terminals, likexterm
. Note that this may affect tests by buildout recipes. [maurits] - Removed Python 2.6 and 3.2 support. [do3cc]
- Fixed
-=
and+=
when extending sections. See #161. [puittenbroek]
- Fix python 2 for downloading external config files with basic auth in the URL. Fixes #257.
Added more elaborate version and requirement information when there's a version conflict. Previously, you could get a report of a version conflict without information about which dependency requested the conflicing requirement.
Now all this information is logged and displayed in case of an error. [reinout]
Dropped 3.2 support (at least in the automatic tests) as setuptools will soon stop supporting it. Added python 3.5 to the automatic tests. [reinout]
- Fix for #279. Distutils script detection previously broke on windows with
python 3 because it errored on
.exe
files. [reinout]
- Relative paths are now also correctly generated for the current directory ("develop = ."). [youngking]
- More complete fix for #24. Distutils scripts are now also generated for develop eggs. [reinout]
- zc.buildout is now also released as a wheel. (Note: buildout itself doesn't support installing wheels yet.) [graingert]
- Added nested directory creation support [guyzmo]
- If a downloaded config file in the "extends-cache" gets corrupted, buildout now tells you the filename in the cache. Handy for troubleshooting. [reinout]
- Check the
use-dependency-links
option earlier. This can give a small speed increase. [maurits] - When using python 2, urllib2 is used to work around Python issue 24599, which affects downloading from behind a proxy. [stefano-m]
- Buildout no longer breaks on packages that contain a file with a non-ascii filename. Fixes #89 and #148. [reinout]
- Undo breakage on Windows machines where
sys.prefix
can also be asite-packages
directory: don't remove it fromsys.path
. See buildout#217 . - Remove assumption that
pkg_resources
is a module (untrue since release of setuptools 8.3`). See buildout#227 . - Fix for #212. For certain kinds of conflict errors you'd get an UnpackError when rendering the error message. Instead of a nicely formatted version conflict message. [reinout]
- Making sure we use the correct easy_install when setuptools is installed globally. See buildout#232 and buildout#222 . [lrowe]
- Updated buildout's travis-ci configuration so that tests run much quicker so that buildout is easier and quicker to develop. [reinout]
- Note: zc.recipe.egg has also been updated to 2.0.2 together with this
zc.buildout release. Fixed: In
zc.recipe.egg#custom
recipe'srpath
support, don't assume path elements are buildout-relative if they start with one of the "special" tokens (e.g.,$ORIGIN
). See: buildout#225. [tseaver] download-cache
,eggs-directory
andextends-cache
are now automatically created if their parent directory exists. Also they can be relative directories (relative to the location of the buildout config file that defines them). Also they can now be in the form~/subdir
, with the usual convention that the~
char means the home directory of the user running buildout. [lelit]- A new bootstrap.py file is released (version 2015-07-01).
- When bootstrapping, the
develop-eggs/
directory is first removed. This prevents old left-over.egg-link
files from breaking buildout's careful package collection mechanism. [reinout] - The bootstrap script now accepts
--to-dir
. Setuptools is installed there. If already available there, it is reused. This can be used to bootstrap buildout without internet access. Similarly, a localez_setup.py
is used when available instead of it being downloaded. You need setuptools 14.0 or higher for this functionality. [lrowe] - The bootstrap script now uses
--buildout-version
instead of--version
to pick a specific buildout version. [reinout] - The bootstrap script now accepts
--version
which prints the bootstrap version. This version is the date the bootstrap.py was last changed. A date is handier or less confusing than either tracking zc.buildout's version or having a separate bootstrap version number. [reinout]
- Fixed: Buildout merged single-version requirements with version-range requirements in a way that caused it to think there wasn't a single-version requirement. IOW, buildout through that versions were being picked when they weren't.
- Suppress spurious (and possibly non-spurious) version-parsing warnings.
- Buildout is now compatible with (and requires) setuptools 8.
- Improved fix for #198: when bootstrapping with an extension, buildout was too strict on itself, resulting in an inability to upgrade or downgrade its own version. [reinout]
- Setuptools must be at 3.3 or higher now. If you use the latest bootstrap from http://downloads.buildout.org/2/bootstrap.py you're all set. [reinout]
- Installing recipes that themselves have dependencies used to fail with a VersionConflict if such a dependency was installed globally with a lower version. Buildout now ignores the version conflict in those cases and simply installs the correct version. [reinout]
- Fix for #198: buildout 2.2.3 caused a version conflict when bootstrapping a buildout with a version pinned to an earlier one. Same version conflict could occur with system-wide installed packages that were newer than the pinned version. [reinout]
- Fix #197, Python 3 regression [aclark4life]
- Open files for
exec()
in universal newlines mode. See buildout#130 - Add
BUILDOUT_HOME
as an alternate way to control how the user default configuration is found. - Close various files when finished writing to them. This avoids ResourceWarnings on Python 3, and better supports doctests under PyPy.
- Introduce improved easy_install Install.install function. This is present in 1.5.X and 1.7X but was never merged into 2.X somehow.
distutils
scripts: correct order of operations onfrom ... import
lines (see buildout#134).- Add an
--allow-site-packges
option tobootstrap.py
, defaulting to False. If the value is false, strip any "site packages" (as defined by thesite
module) fromsys.path
before attempting to importsetuptools
/pkg_resources
. - Updated the URL used to fetch
ez_setup.py
to the official, non-version- pinned version.
- Handle both addition and subtraction of elements (+= and -=) on the same key in the same section. Forward-ported from buildout 1.6.
- Suppress the useless
Link to <URL> ***BLOCKED*** by --allow-hosts
error message being emitted by distribute / setuptools. - Extend distutils script generation to support module docstrings and __future__ imports.
- Refactored picked versions logic to make it easier to use for plugins.
- Use
get_win_launcher
API to find Windows launcher (falling back toresource_string
forcli.exe
). - Remove
data_files
fromsetup.py
: it was installingREADME.txt
in current directory during installation (merged from 1.x branch). - Switch dependency from
distribute 0.6.x
tosetuptools 0.7.x
.
- Meta-recipe support
- Conditional sections
- Buildout now accepts a
--version
command-line option to print its version.
- Fixed: Builout didn't exit with a non-zero exit status if there was a
- failure in combination with an upgrade.
- Fixed: We now fail with an informative error when an old bootstrap
- script causes buildout 2 to be used with setuptools.
- Fixed: An error incorrectly suggested that buildout 2 implemented all
- of the functionality of dumppickedversions.
- Fixed: Buildout generated bad scripts when no eggs needed to be added
- to
sys.path
. - Fixed: Buildout didn't honour Unix umask when generating scripts.
- https://bugs.launchpad.net/zc.buildout/+bug/180705
- Fixed:
update-versions-file
didn't work unless show-picked-versions
was also set. buildout#71
- Fixed: buildout didn't honor umask settings when creating scripts.
- Fix for distutils scripts installation on Python 3, related to
__pycache__
directories. - Fixed: encoding data in non-entry-point-based scripts was lost.