{"id":24302,"library":"pybuilder","title":"PyBuilder","description":"PyBuilder is a build automation tool for Python, offering a declarative approach to managing project builds, dependencies, testing, and packaging. Current version is 0.13.20 with a stable release cadence.","status":"active","version":"0.13.20","language":"python","source_language":"en","source_url":"https://github.com/pybuilder/pybuilder","tags":["build","automation","packaging","testing","ci"],"install":[{"cmd":"pip install pybuilder","lang":"bash","label":"Install PyBuilder"}],"dependencies":[],"imports":[{"note":"Standard import alias for PyBuilder modules","symbol":"pyb","correct":"import pyb"}],"quickstart":{"code":"from pybuilder.core import use_plugin, init\n\n@init\ndef set_properties(project):\n    project.set_property('name', 'myproject')\n    project.set_property('version', '1.0')\n    project.set_property('dir_source_main_python', 'src/main/python')\n    project.set_property('dir_source_unittest_python', 'src/unittest/python')\n\n# Build script: save as build.py, then run: pyb","lang":"python","description":"Minimal PyBuilder build.py script with init decorator to set project properties."},"warnings":[{"fix":"Upgrade to Python 3.10+.","message":"PyBuilder 0.13.0 dropped support for Python 2 and older Python 3 versions; requires Python >=3.10.","severity":"breaking","affected_versions":">=0.13.0"},{"fix":"Stick to PyBuilder's built-in dependency management via build.py or use 'pyb install_dependencies'.","message":"By default, PyBuilder uses pip for dependency resolution, not pipenv or poetry. Mixing tools may cause conflicts.","severity":"gotcha","affected_versions":"all"},{"fix":"Run 'python -m pybuilder' instead of 'pyb', or add site-packages/bin to PATH.","message":"The 'pyb' command may be missing from PATH after pip install; use 'python -m pybuilder' to invoke.","severity":"deprecated","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Install with 'pip install pybuilder' and ensure you're in the correct virtualenv.","cause":"PyBuilder not installed or wrong Python environment.","error":"ModuleNotFoundError: No module named 'pybuilder'"},{"fix":"Use 'python -m pybuilder' or add the scripts directory to PATH (e.g., '$(python -m site --user-base)/bin').","cause":"The 'pyb' script is not on PATH after pip install.","error":"pyb: command not found"},{"fix":"Add 'from pybuilder.core import init' to the top of build.py.","cause":"Using @init decorator without importing 'init' from pybuilder.core.","error":"'NoneType' object has no attribute 'set_property'"},{"fix":"Use 'from pybuilder.core import ...' or 'import pyb' (if using deprecated path).","cause":"Importing 'pybuilder' directly instead of submodules.","error":"AttributeError: module 'pybuilder' has no attribute 'core'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}