Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #################################################################
- #
- # Development Configuration
- # =========================
- #
- # This is a buildout configuration that sets up a development
- # environment for Plone. It extends buildout.cfg.
- #
- # To use this configuration, run buildout via:
- #
- # bin/buildout -c develop.cfg
- #
- # This specifies develop.cfg as buildout's configuration file. This configuration
- # file extends buildout.cfg, so that all the options from that file are
- # automatically included.
- #
- # Included in the development configuration
- #
- # Common development tools:
- #
- # * mr.bob, a Python package-skeleton generator. With bobtemplates.plone
- # it has supportfor common Plone development packages like content-type
- # and theme packages.
- #
- # * mr.developer, a tool that automatically checks out source for
- # add ons from a versioning system, then adds them to your
- # development package list.
- #
- # * testrunner, which provides a command-line option to run
- # test suites.
- #
- # * Diazo command-line tools: diazocompile and diazorun. Useful
- # for debugging and understanding Diazo and plone.app.theming.
- # See http://docs.diazo.org/en/latest/compiler.html
- #
- # * collective.checkdocs adds new distutils commands checkdocs and
- # showdocs to validate restructured text in long_description
- # field of Python eggs.
- #
- # * zest.releaser, a kit for managing the release cycle for Python
- # packages. See https://pypi.python.org/pypi/zest.releaser.
- #
- # Common Customizations
- # =====================
- #
- # Add packages to the sources managed by mr.developer by adding them to the
- # [sources] section below.
- #
- # Add packages to the test suite by adding them to the "test-packages" option
- # in the [buildout] section below.
- ############################################
- # Sources
- # -------
- # Specify packages under development here.
- #
- # See http://pypi.python.org/pypi/mr.developer for mr.developer source specifications.
- # <name> = <kind> [key=value] <url> [path] [key=value]
- # kind = The kind of repository. Currently supported are one of svn (>= 1.5), hg, git, cvs or fs.
- #
- [sources]
- collective.easyform = git https://github.com/collective/collective.easyform.git
- # Examples: to check out plonetheme.sunburst from Plone's svn, use:
- # plonetheme.sunburst = svn https://svn.plone.org/svn/plone/plonetheme.sunburst/trunk
- #
- # To use a python package that is being developed in your src subdirectory, use:
- # myproduct.betterplone = fs myproduct.betterplone
- [buildout]
- ############################################
- # Test Packages
- # ----------
- # Specify a list of packages that you wish to explicity include in your test suite.
- # Base eggs are automatically included
- #
- test-packages =
- collective.easyform
- # plonetheme.sunburst
- ############################################
- # Debug Mode
- # ----------
- # Most development work is done with Zope/Plone started
- # in foreground mode (bin/plonectl fg), which automatically
- # turns on debug mode and causes Zope/Plone to stop on
- # package loading errors.
- #
- # Note that debug mode makes Plone run *very* slowly due to
- # extra filesystem checks and granular transmission of browser resources.
- #
- # If you're developing Plone add-ons, you should want to see
- # deprecation warnings that let you know if you're using outmoded
- # methods or modules.
- deprecation-warnings = on
- #
- # Turning on verbose security may help diagnose security bugs.
- # You'll also need to disable the intercepting of "unauthorized"
- # errors in the error_log via the ZMI.
- verbose-security = off
- ############################################
- # Less Commonly Changed Options
- # -----------------------------
- # The remainder of the buildout mainly sets up the development
- # environment based on the settings above.
- # we're extending buildout.cfg
- extends =
- buildout.cfg
- extensions +=
- mr.developer
- eggs +=
- Products.DocFinderTab
- plone.reload
- parts +=
- test
- diazotools
- checkdocs
- robot
- omelette
- mrbob
- releaser
- code-analysis
- test-coverage
- show-picked-versions = true
- [omelette]
- recipe = collective.recipe.omelette
- eggs = ${test:eggs}
- # mr.developer settings:
- always-checkout = force
- sources = sources
- auto-checkout = *
- # [test]
- # recipe = collective.xmltestreport
- # defaults = ['--auto-color', '--auto-progress', '--ignore_dir=.git',
- # ignore_dir=bower_components', '--ignore_dir=node_modules']
- # eggs =
- # ${buildout:eggs}
- # ${buildout:test-packages}
- [test]
- recipe = zc.recipe.testrunner
- eggs = ${instance:eggs}
- defaults = ['-s', 'collective.easyform', '--auto-color', '--auto-progress']
- [robot]
- recipe = zc.recipe.egg
- eggs =
- Pillow
- ${test:eggs}
- plone.app.robotframework[debug,ride,reload]
- [code-analysis]
- recipe = plone.recipe.codeanalysis
- directory = ${buildout:directory}/src/
- flake8-exclude = bootstrap.py,bootstrap-buildout.py,docs,*.egg.,omelette
- flake8-max-complexity = 15
- [test-coverage]
- recipe = collective.recipe.template
- input = inline:
- #!/bin/bash
- ${buildout:directory}/bin/coverage run --source=${buildout:directory}/src/experimental/safe_html_transform bin/test
- ${buildout:directory}/bin/coverage html
- ${buildout:directory}/bin/coverage report -m --fail-under=100
- # Fail (exit status 1) if coverage returns exit status 2 (this happens
- # when test coverage is below 100%.
- output = ${buildout:directory}/bin/test-coverage
- mode = 755
- # Add diazo compile/run tools to bin; useful for debugging understanding
- # diazo. See http://docs.diazo.org/en/latest/compiler.html
- [diazotools]
- recipe = zc.recipe.egg
- eggs = diazo
- [checkdocs]
- # installs collective.checkdocs from pypi [https://github.com/collective/collective.checkdocs]
- recipe = zc.recipe.egg
- eggs =
- collective.checkdocs
- [mrbob]
- recipe = zc.recipe.egg
- eggs =
- mr.bob
- bobtemplates.plone
- [releaser]
- # installs zest.releaser, po compiler
- recipe = zc.recipe.egg
- eggs =
- zest.releaser
- zest.pocompile
Add Comment
Please, Sign In to add comment