- Better Windows support #568
- Implement PyBuilder access to git describe #565
- Fix for #523 for the 0.11 branch #527
- FINAL VERSION TO SUPPORT PYTHON 2.6/3.3
- Final 0.11.x release #505
- using / as path separator in setup.py #488
- Move setuptools to 35.x #478
- Update setuptools to ~=34.0 #465
- Allow obsoleting packages with “obsoletes” #456
- PyBuilder needs to depend on modern setuptools #452
- Allow specifying python version constraint #450
- Add Python 3.6 support #446
- Copy resource doesn’t include the
LICENSEfile in the distro #443
- Coverage plugin fails when fails to load covered module #441
- Increasing test coverage on vcs_tests.py #439
- Allow modifying default targets similar to manner of adding them in #412 #438
- Fix PyPI documentation #435
pandoc>=1.18is installed with
- python.distutils plugin:
- Flake8 3.2.0 broke the build #420
- Uptake new PIP upgrade features #416
- Allow to append build targets to default from command line #413
- Generate package summary and description based on a
- Wrong dependency version error formatting #405
- Fix paths in the Sphinx PyB quickstart and runtime configuration #403
- Wrong logging level for
- Sphinx configuration should share PyB at runtime #398 #399
- Color escape sequence not properly terminated #390
expand_pathfor Windows and
- Pathing issues on pypi upload on Windows #391
python.distutilsplugin doesn’t support
- Coverage should be setup to cover multiprocessing and forks #384
- Recursive dependency upgrades should be subject to global version constraints #380
- Coverage for missing modules should cause a failure #377
- Fix path separators and protect log file names on Windows #371
include_directoryfix for manifest and
- Entry-points should handle a single entry correctly #359
- Add a proper pdoc plugin #353
@dependentsignores customized task name #357
@dependentsdoes not inject dependencies from plugin if task is already defined earlier #355
install_dependenciesbehavior should mirror #340 #347
- Sphinx indicates failure with -v but not without it #350
- Support for pip trusted hosts #341
- Add possibility to specify plugin versions #340
- Fix issue in generated
unittest-xml-reportingdependency to maintain py2.6 support #333 (thanks @snordhausen)
- Distutils upload signing #325
- Ability to customize packaging options ad nauseam #331
- Success message after generating
- Windows fixes (thanks @Lucas-C and @guillermooo).
- Cram plugin can now run cram from the
targetdirectory and does so by default #318
install_dependencies_(extra_)index_urlshould affect all PIP operations #313
install_dependenciesdoesn’t work in version 0.11.3 #311
- Allow dynamic discovery
- Coverage plugin now excludes namespaces (not backed by an actual source file) #301
- Installing dependencies with use of an HTTPS proxy is now possible #299
- Python 3.5 issue resolved #287
- External tool dependencies for plugins are now properly updated #272
pyb installnow forces the reinstallation #282
- Cram now handles the case where there are no tests #280
- Plugins can be installed via VCS #276
- PyBuilder projects can be installed via URL-based install #200
- Plugins can now find out if a task is in the current execution plan #275
- Handling system exits gracefully #255
- Plugin-specified constraints for PyBuilder API version #257
pyb -onow properly excludes all optional tasks #263
- Fixed missing
pyb -Tshows build plan #262
- Possibility to inject tasks as dependent #188
- Fixed egg/wheel shebangs #168
- Optional automatic version augmentation based on
- Upload repository for distutils upload task now works #243
- Fixed issue with
- New tasks for printing module and script directory path #208
- Support for setuptools pre- and post-install logic #227
- Flake8 plugin now checks for directory existence before including it #230
- Helpful error message when
pyb -tis not called in the project root directory #226
project.include_directoryfunctionality #223. Pull request by @glujan
- Coverage plugin will not reset modules per default (only if
coverage_reset_modulesis set to
- Coverage forking disabled for windows OS #184
- Coverage / branch coverage discrepancy fix #203
- Resolved flake8 plugin filtering issue #202
- New plugin for debian packaging by @locolupo #190
- The distutils plugin can now upload distributions #187
- Resolved issue with
install_dependencieson windows OS #185.
0.11.0metadata claimed to support python 3.2. This has been fixed.
- Nearly this entire release is courtesy of arcivanov. Thanks!!!
- Fixed an issue where a forked coverage measurement would not properly failed the build.
- unit test and coverage measurement are now library functions in an API sense.
pyb installnow works and acts like
setup.py install(distutils plugin).
- PyBuilder can now be installed with
pip install git://github.com/pybuilder/pybuilder.git@<branch>
- Forked processes (like coverage measurements) now correctly report back their errors.
- Huge improvements to coverage accuracy when building PyBuilder itself / libraries which use part of their own code in order to build, e.G. if you run library code in
- Branch coverage and html reports have been added to the
python.coverageprocess will now always fork when measuring coverage, disregarding the
coverage_forksetting is now deprecated.
python.unittestplugin will now always fork.
- Module reloading has been removed. It is no longer useful since coverage and unit tests run in separate forks.
unittest_runnermust now accept a positional argument which is a filelike object. Writing to this filelike object is preferred rather than using stdout/stderr.
- Introduced teardown actions. Also action ordering is now stable/guaranteed.
- Introduced optional task dependencies (as opposed to required task dependencies). With the command line switch
-x task_namea set of optional tasks can be skipped (repeat if required). With the command line switch
--force-excludethis can be expanded to exclude required dependencies as well (but might lead to build consistency problems).
- Python 3.2 support has been dropped, please upgrade to 3.3 or 3.4
python.unittestplugin now generates nUnit-style XML reports by default (these can be parsed by jenkins).
- Fixed a regression introduced in
0.10.62where the unit test reports generated by the
python.unittestplugin would always be empty.
- pycharm plugin: Generate entries for unit and integration test directories (if respective plugins are activated) and mark them as test sources (pull request by arcivanov)
- sphinx plugin: you can now configure sphinx_doc_author, sphinx_doc_builder, sphinx_project_name, sphinx_project_version via project.set_property in your build.py (pull request by @locolupo)
- sphinx plugin: pyb –start-project now asking for a documentation folder (pull request by @locolupo)
- sphinx plugin: new task,
sphinx_quickstart(pull request by @locolupo)
- install dependencies plugin: Setting the property
install_dependencies_local_mappingto a dictionary allows to specify where the dependencies are to be installed locally. The dictionary should map dependency names to paths where the dependencies should be installed.
- integrationtest plugin: The property
integrationtest_always_verbosecan now be used to always display the integration test output, even when the tests are green. Pull request by @snordhausen
- Fixed python3 incompatibility introduced in 0.10.57
- Using editable URLs in a
requirements.txtfile now works - integrating the requirements into PyBuilder with
project.depends_on_requirements("requirements.txt")was not generating the correct setup script.
- Resolved problems where the python unittest plugin would cause a crash when a test failed with an exception containing non-ascii text.
- Resolved python3 compatibility issue introduced with
- Improved the cyclic dependency detection algorithm used to resolve task dependencies
- Added possibility for tasks to introspect their dependencies (see #122)
Fix autoversioning for older git version like found on RHEL6.
Pull request by @schlomo, thanks!
- Ignore errors while trying to save coverage data
This fixes #119. In cases where there is no coverage data at all, saving
leads to an error, which would crash the build even if
coverage_break_buildwas set to False.
- The snakefood plugin will now pull in the snakefood dependency as intended.
- The snakefood plugin will now generate external and internal project reports (external dependencies and internal dependencies, respectively).
- Added API functionality to automatically version the project based on the version control system.
- Sonarqube plugin: Should now correctly report coverage.
- Sonarqube plugin: Fixed source path setting.
- Coverage plugin: now writes a cobertura compatible XML report to the reports directory.
- New plugin: sonarqube plugin, which can be used to run sonar analysis.
- Coverage plugin: Should now work with coveralls without further adjustements since a coverage data file is written.
Coverage plugin: Try really hard to work well with coveralls
The coverage configuration is used to tell coverage to avoid covering the python stdlib if possible, and also specifies the source root to cover. Additionally a .coverage file is written in the coverage root, so that it can be consumed by coveralls.
detect teamcity environment automatically
If the environment variable TEAMCITY_VERSION is set, teamcity output will be generated automatically. It can still be forced with the project property “teamcity_output”, and setting both the property and the environment variable will also result in teamcity specific output being generated.
- Default project version (when no version is given in the
build.pyis now 1.0.dev0 instead of 1.0-SNAPSHOT, as per PEP 440. Pull request by @zroadhouse-wsm, thanks!
- Improved error messages when the setup commands from
- Naming a script (
src/main/scripts/foo) like a package (
src/main/python/foo/__init__.py) now works without any specific configuration. Technical detail: the property
dir_dist_scriptsis now set to
"scripts"by default instead of
- Resolved problems with the python core plugin on windows. Packages with leading backslashes were leading to problems with the setup script. Thanks to @SzeMengTan for reporting.
- Initial version of a sphinx plugin. Pull request by @tjpnz, thanks!.
- Fix using the
dir_dist_scriptsproperty in python3 which was breaking the setup script. Thanks to @raphiz for the pull request!
- Coverage plugin: ignored modules will no longer contribute to the
overall coverage calculation (referring to the modules or packages
coverage_exceptions). Thanks to @MirkoRossini for the pull request!
- The generated setup.py is now correct even if the
$dir_source_main_pythoncontains a trailing slash. See issue 110 for more details. Thanks @MirkoRossini for reporting!
pyb -Qtline format is now
$task_name:$task_description. This allows for better completions by also exposing the task names.
- The jedi linter has been externalized, please use
- The task list (-t) in very quiet mode (-Q) will now output space separated task data.
filter_resourcesplugin will now warn and skip keys that can not be replaced. This allows the use of
string.Templatein source files that go through the
- implement using requirements files as dependencies
- Improved output of the jedi plugin
- Resolved some problems with the bundled jedi plugin
- Added plugin
- Resolved a python 3 compatibility problem with the
- Added another pybuilder command
pyb_. which is a binary (
.exe) on windows installations of PyBuilder. This should be used instead of the
pybscript on windows installations.
- install_dependencies should now work as intended on windows.
- Fixed a problem when the installed pip had no version which is the case of old installations.
- Fixed a problem with the distutils plugin. Using slashes in
distutils_commandsresulted in problems as it was interpreted as a path. This is now resolved.
- It is now possible to use the
distutils_commandsproperty for an automated upload, since the distutils_plugin will now do the right thing when presented with a command with spaces, like [
- Unit tests names will now be logged to DEBUG as they run. Thanks @aelgru!
- Introduced a new property for the
- Maintenance release (updated trove classifiers for PyPI)
--start-project(to get started with a new project) now suggests the default scripts directory and creates it. Files in this folder will automatically be shipped as scripts (as in the setup.py
scriptskwarg) which might be
/usr/local/binor so, depending on your system.
- The frosted and flake8 linter now consider the property
frosted|flake8_include_scripts. If this is set to True (default False) then all scripts in
$dir_source_main_scriptswill be linted too.
- The integrationtest plugin may now pass arbitrary additional command line parts to the integrationtest call. The property
integrationtest_additional_commandlinecan be used for that purpose.
- Python files in
src/main/pythonby default) are now treated as standalone python modules. Previously, it was only possible to package python files by putting them in a package.
frosted_propertynow works as intended.
- The pycharm plugin now ignores the
targetdirectory by default.
- Fixed a minor rendering issue in integrationtest_parallel
- External plugin support : It is now finally possible to use plugins published to PyPI. See the manual for more information.
- Cram support : The
python.cramplugin can be used to run cram tests. Kudos go to @esc for the implementation.
- Bldsup support : custom tasks and per-project specifics can be stored in a separate directory (default:
bldsup). Kudos go to @markmevans for implementing this.
- New plugin : python.frosted
- New API to write plugins that wrap a console command that is run on source files
- Flake8 error handling improved
- It should no longer occur that CI servers count unit tests twice when coverage is used.
- TeamCity service messages for unit test failures are now well-formed
- The property “teamcity_output” can be set to True so that teamcity messages are produced by the
python.integrationtestplugin. Please note that the coverage plugin also runs unit tests and might lead to teamcity counting the amount of unit tests twice.
pyb --start-projectnow activates the plugin
pyb --start-projectwill now suggest a few plugins.
pyb --start-projectnow always generates an initializer so that plugin can be configured more easily.
- There is now a workaround for a distutils bug available through the distutils plugin. See the GitHub issue or the documentation.
- The unittest, pyfix and integrationtest plugins now find modules (or files, for the integrationtest plugin) using globs. Kudos to markmevans for this feature!
- Fixed a bug leading to the creation of strange files when dependencies with a version greater than x (
foo>=1.0) were specified.
- Source and test directories are now correctly handed to the unittest’s PYTHONPATH, thus it is no longer a pain to test a package which is also locally installed.
- Better reporting when unittests fail. Thanks @esc!
- The parallel integration test progress bar now uses backspaces instead of carriage returns. This improves the experience on small width terminals.
- The deprecated module
pythonbuilderhas now been removed. Please replace
pybuilderin your imports if that is not already the case.
- There is now a pacman in your integration tests!
- Integration test progress bar now works on Mac OS.
- Improved error messages when
integrationtest_additional_environmentis not a map.
- Improved resilience of the integration test plugin when running tests in parallel and there are errors in the plugin code itself.
- The integrationtest plugin now displays a progress bar when tests are run in parallel. The bar indicates the amount of tests that are finished, running, and not started yet. In an automated CI build environment without TTY (Jenkins, Teamcity, …) text based output is used to avoid cluttering the logs with carriage returns.
- The unittest plugin is now able to provide useful error messages when unit tests have import errors.
- The pytddmon plugin now disables the color pulse for more focus.
- Added a command,
pyb --start-project, to create a python project skeleton.
flake8plugin now complies with the project
- Increased severity of the
pythonbuildermodule deprecation warning.
- Added a new plugin,
python.pycharm, which can generate PyCharm project files.
- Added a new plugin,
python.pytddmon, which can be used to monitor unit tests
- Allows the user to define a project variable “unittest_test_method_prefix” as a prefix for the unit test method names.
- The flake8 plugin no longer causes build errors when used on a project without unittests or integrationtests
in conjunction with the property
- The flake8 plugin is now able to also lint test sources.
This behaviour is disabled by default but may be enabled by setting the
- The flake8 plugin now requires
prepareto run first and thus no longer results in errors after
- Fixed a compatibility issue on windows
- It is now possible to use external plugins.
An external plugin should be an importable python package that exposes its tasks
in the top-level (e.G. in
__init__.py). The plugin can be used through the
use_plugindirective without further ado but must currently be bootstrapped manually.
- The property
integrationtest_workerswas removed. Instead, you may now set
integrationtest_cpu_scaling_factorto an integer n, which will use
n * cpu_countworkers to run the integration tests.
The integrationtest plugin can now run test in parallel. This behaviour can be enabled with
The degree of parallelization defaults to four times the amount of cores but may be overridden with
- It can no longer occur that the
ronn_manpageplugin fails due to the reports directory not existing.
- New plugin ronn_manpage to generate manpages from markdown sources
- The -t option no longer causes an error on python3
- option “-t” list of tasks: improved layout
- django plugin: task djang_run_server is now ready for django 1.5
- django plugin bug fix: import django only when executing task
- the project itself now has a property “verbose”. It’s possible to set the project verbose by default via: project.set_property(“verbose”, True)
- install_dependencies plugin has verbose output now
- integrationtest plugin: prints output and error files if verbose option enabled
- pep8 and flake8 define their own dependencies
- created -v/–verbose option for “pyb”
- flake8 plugin offers verbose option
- Verbose output for report generating plugins. Pull request by Vanuan.
- Added several new options for the
install_dependenciesplugin to customize the
pyfixplugins define their dependencies.
very-quietcommand line option.
- Bug fix:
copy_resourcesplugin uses correct target.
pyfix_unittestplugin that executes unittests written using pyfix.
- Bug fix: Fixed version “operator” when handling dependencies in distutils.
- Bug fix: Reading default tasks after initializers have been executed.
- Initial release of environments.
- Added two properties that allow the customization of the environment used for integration tests.
- Added validation step that validates the integrity of dependencies.
- Distutils plugin supports URLs for dependencies and adds a
- Bugfix release for
- Dependencies take an optional URL which is used for installation.
- Added install_dependencies plugin which provides capabilities to install build and runtime dependencies for Python projects.
- pybuilder is now compatible with Python 3.
- Snakefood plugin has been discontinued because snakefood seems rather unmaintained and is not compatible to Python 3.
- Introduced build dependencies that do not get added as install_requires to setup.py files
- Added flake8 plugin. Added support for installing files.