Changes between Version 9 and Version 10 of ComponentDependencyPlugin


Ignore:
Timestamp:
Jun 6, 2018, 6:05:29 AM (6 years ago)
Author:
figaro
Comment:

Moved example to description, remove reference to non-existent plugin

Legend:

Unmodified
Added
Removed
Modified
  • ComponentDependencyPlugin

    v9 v10  
    1313}}}
    1414
    15 The `Component` classes that are returned by the `requires` method will be enabled upon environment upgrade. This allows very simple dependencies. Of course, for installation, the required components are still required to be part of Python (in `install_requires` in `setup.py`) and this plugin will not work if there is trouble loading a plugin that is required.
     15The `Component` classes that are returned by the `requires` method will be enabled upon environment upgrade. This allows very simple dependencies. Of course, for installation, the required components are still required to be part of Python, as given in `install_requires` in `setup.py`.
     16
     17This plugin will not work if required plugins are not present or loaded.
     18
     19The files in [source:componentdependencyplugin/0.11/componentdependencies/test.py test.py] illustrate how to use the plugin. In your `trac.ini` file, enable the following plugins:
     20 * `ComponentDependencyPlugin`:
     21  {{{#!ini
     22componentdependencies.componentdependency.componentdependencyplugin = enabled
     23}}}
     24 * `TestDependencyPlugin`:
     25  {{{#!ini
     26componentdependencies.test.testdependencyplugin = enabled
     27}}}
     28
     29Trac will then require an upgrade. The `FooBarTest` component will be enabled in the upgrade.
    1630
    1731== Bugs/Feature Requests
     
    3751General instructions on installing Trac plugins can be found on the [TracPlugins#InstallingaTracplugin TracPlugins] page.
    3852
    39 == Example
    40 
    41 The files in [source:componentdependencyplugin/0.11/componentdependencies/test.py test.py] illustrate how to use the plugin. Enable the `ComponentDependencyPlugin` (`componentdependencies.componentdependency.componentdependencyplugin = enabled`) and enable the `TestDependencyPlugin` (`componentdependencies.test.testdependencyplugin = enabled`). Trac will then require an upgrade. The `FooBarTest` component will be enabled in the upgrade.
    42 
    43 You can also enable the AutoUpgradePlugin prior to this to allow for automatic upgrades.
    44 
    4553== Recent Changes
    4654