prakharjoshi

develop.cfg

Feb 28th, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.09 KB | None | 0 0
  1. #################################################################
  2. #
  3. # Development Configuration
  4. # =========================
  5. #
  6. # This is a buildout configuration that sets up a development
  7. # environment for Plone. It extends buildout.cfg.
  8. #
  9. # To use this configuration, run buildout via:
  10. #
  11. # bin/buildout -c develop.cfg
  12. #
  13. # This specifies develop.cfg as buildout's configuration file. This configuration
  14. # file extends buildout.cfg, so that all the options from that file are
  15. # automatically included.
  16. #
  17. # Included in the development configuration
  18. #
  19. # Common development tools:
  20. #
  21. # * mr.bob, a Python package-skeleton generator. With bobtemplates.plone
  22. # it has supportfor common Plone development packages like content-type
  23. # and theme packages.
  24. #
  25. # * mr.developer, a tool that automatically checks out source for
  26. # add ons from a versioning system, then adds them to your
  27. # development package list.
  28. #
  29. # * testrunner, which provides a command-line option to run
  30. # test suites.
  31. #
  32. # * Diazo command-line tools: diazocompile and diazorun. Useful
  33. # for debugging and understanding Diazo and plone.app.theming.
  34. # See http://docs.diazo.org/en/latest/compiler.html
  35. #
  36. # * collective.checkdocs adds new distutils commands checkdocs and
  37. # showdocs to validate restructured text in long_description
  38. # field of Python eggs.
  39. #
  40. # * zest.releaser, a kit for managing the release cycle for Python
  41. # packages. See https://pypi.python.org/pypi/zest.releaser.
  42. #
  43. # Common Customizations
  44. # =====================
  45. #
  46. # Add packages to the sources managed by mr.developer by adding them to the
  47. # [sources] section below.
  48. #
  49. # Add packages to the test suite by adding them to the "test-packages" option
  50. # in the [buildout] section below.
  51.  
  52.  
  53. ############################################
  54. # Sources
  55. # -------
  56. # Specify packages under development here.
  57. #
  58. # See http://pypi.python.org/pypi/mr.developer for mr.developer source specifications.
  59. # <name> = <kind> [key=value] <url> [path] [key=value]
  60. # kind = The kind of repository. Currently supported are one of svn (>= 1.5), hg, git, cvs or fs.
  61. #
  62. [sources]
  63. collective.easyform = git https://github.com/collective/collective.easyform.git
  64. # Examples: to check out plonetheme.sunburst from Plone's svn, use:
  65. # plonetheme.sunburst = svn https://svn.plone.org/svn/plone/plonetheme.sunburst/trunk
  66. #
  67. # To use a python package that is being developed in your src subdirectory, use:
  68. # myproduct.betterplone = fs myproduct.betterplone
  69.  
  70.  
  71. [buildout]
  72.  
  73. ############################################
  74. # Test Packages
  75. # ----------
  76. # Specify a list of packages that you wish to explicity include in your test suite.
  77. # Base eggs are automatically included
  78. #
  79. test-packages =
  80. collective.easyform
  81. # plonetheme.sunburst
  82.  
  83.  
  84. ############################################
  85. # Debug Mode
  86. # ----------
  87. # Most development work is done with Zope/Plone started
  88. # in foreground mode (bin/plonectl fg), which automatically
  89. # turns on debug mode and causes Zope/Plone to stop on
  90. # package loading errors.
  91. #
  92. # Note that debug mode makes Plone run *very* slowly due to
  93. # extra filesystem checks and granular transmission of browser resources.
  94. #
  95. # If you're developing Plone add-ons, you should want to see
  96. # deprecation warnings that let you know if you're using outmoded
  97. # methods or modules.
  98. deprecation-warnings = on
  99. #
  100. # Turning on verbose security may help diagnose security bugs.
  101. # You'll also need to disable the intercepting of "unauthorized"
  102. # errors in the error_log via the ZMI.
  103. verbose-security = off
  104.  
  105.  
  106. ############################################
  107. # Less Commonly Changed Options
  108. # -----------------------------
  109. # The remainder of the buildout mainly sets up the development
  110. # environment based on the settings above.
  111.  
  112. # we're extending buildout.cfg
  113. extends =
  114. buildout.cfg
  115.  
  116. extensions +=
  117. mr.developer
  118.  
  119. eggs +=
  120. Products.DocFinderTab
  121. plone.reload
  122.  
  123. parts +=
  124. test
  125. diazotools
  126. checkdocs
  127. robot
  128. omelette
  129. mrbob
  130. releaser
  131. code-analysis
  132. test-coverage
  133. show-picked-versions = true
  134.  
  135. [omelette]
  136. recipe = collective.recipe.omelette
  137. eggs = ${test:eggs}
  138.  
  139. # mr.developer settings:
  140. always-checkout = force
  141. sources = sources
  142. auto-checkout = *
  143.  
  144.  
  145. # [test]
  146. # recipe = collective.xmltestreport
  147. # defaults = ['--auto-color', '--auto-progress', '--ignore_dir=.git',
  148. # ignore_dir=bower_components', '--ignore_dir=node_modules']
  149. # eggs =
  150. # ${buildout:eggs}
  151. # ${buildout:test-packages}
  152.  
  153. [test]
  154. recipe = zc.recipe.testrunner
  155. eggs = ${instance:eggs}
  156. defaults = ['-s', 'collective.easyform', '--auto-color', '--auto-progress']
  157.  
  158. [robot]
  159. recipe = zc.recipe.egg
  160. eggs =
  161. Pillow
  162. ${test:eggs}
  163. plone.app.robotframework[debug,ride,reload]
  164.  
  165.  
  166. [code-analysis]
  167. recipe = plone.recipe.codeanalysis
  168. directory = ${buildout:directory}/src/
  169. flake8-exclude = bootstrap.py,bootstrap-buildout.py,docs,*.egg.,omelette
  170. flake8-max-complexity = 15
  171.  
  172. [test-coverage]
  173. recipe = collective.recipe.template
  174. input = inline:
  175. #!/bin/bash
  176. ${buildout:directory}/bin/coverage run --source=${buildout:directory}/src/experimental/safe_html_transform bin/test
  177. ${buildout:directory}/bin/coverage html
  178. ${buildout:directory}/bin/coverage report -m --fail-under=100
  179. # Fail (exit status 1) if coverage returns exit status 2 (this happens
  180. # when test coverage is below 100%.
  181. output = ${buildout:directory}/bin/test-coverage
  182. mode = 755
  183.  
  184. # Add diazo compile/run tools to bin; useful for debugging understanding
  185. # diazo. See http://docs.diazo.org/en/latest/compiler.html
  186. [diazotools]
  187. recipe = zc.recipe.egg
  188. eggs = diazo
  189.  
  190.  
  191. [checkdocs]
  192. # installs collective.checkdocs from pypi [https://github.com/collective/collective.checkdocs]
  193. recipe = zc.recipe.egg
  194. eggs =
  195. collective.checkdocs
  196.  
  197.  
  198. [mrbob]
  199. recipe = zc.recipe.egg
  200. eggs =
  201. mr.bob
  202. bobtemplates.plone
  203.  
  204.  
  205. [releaser]
  206. # installs zest.releaser, po compiler
  207. recipe = zc.recipe.egg
  208. eggs =
  209. zest.releaser
  210. zest.pocompile
Add Comment
Please, Sign In to add comment