Difference between revisions of "Documentation/Labs/ExtensionsFrameworkRoadmap"
From Slicer Wiki
m (→Progress) |
|||
Line 87: | Line 87: | ||
** Slicer: Creation of python extension directly from within Slicer. '''ToBeDone''' | ** Slicer: Creation of python extension directly from within Slicer. '''ToBeDone''' | ||
*** Slicer: Optional Restart. '''ToBeDone''' | *** Slicer: Optional Restart. '''ToBeDone''' | ||
+ | |||
+ | * Slicer: Creation of python extension directly from Slicer. '''ToBeDone''' | ||
* ExtensionServer: Consolidate ExtensionsIndex account creation. '''ToBeDone''' | * ExtensionServer: Consolidate ExtensionsIndex account creation. '''ToBeDone''' |
Revision as of 16:53, 28 February 2014
Home < Documentation < Labs < ExtensionsFrameworkRoadmapThis page serves as roadmap for the Slicer Extensions framework.
Extension contribution process
The goal here is to simplify the number of steps allowing people to contribute extension.
Current process
The current process to create an empty extension is documented here, then the steps to contribute the extension are documented here.
For all type of extension (C++ or python), the steps can then be summarized as:
To create an extension
- Workstation: Build Slicer application in Release
- Workstation: Use the Wizard to create an extension 5 commands to enter in a terminal
- Workstation: Initialize git repository 1 command
- Workstation: Implement extension / local commits
To save extension code
- Github: Create an account
- Github: Create a repository
- Workstation -> Github: Push local work on Github
To contribute an extension to Index
- SlicerWiki: Create documentation page
- Extension Server: Create an account
- Extension Server: Join community
- Extension Server: Ask permission for experimental folder.
- Workstation: Configure upload credential
- Workstation -> ExtensionServer: Test upload [1 command to enter in a terminal / 1 click in visual studio]
- Github: Fork ExtensionsIndex
- Workstation: Clone fork locally
- Workstation: Create branch add-YourExtensionName
- Workstation: Commit description file obtained from build tree
- Workstation -> Github: Push the topic to fork
- Github: Click on Pull request button
To update an extension in Index
- SlicerWiki: Update documentation page
- Workstation: In extension index clone: 5 commands to type
- Workstation: Create branch update-YourExtensionName
- Workstation: Commit description file obtained from build tree
- Workstation -> Github: Create pull request manually creating the URL
- Github: Add a comment in the pull request with a Compare link also manually generated
Proposed changes
To create an extension
For all type of extensions, the simplified workflow is:
- Workstation: Build Slicer application in Release
- Workstation: Use the Wizard to create an extension 1 commands to enter in a terminal
- Workstation: Initialize git repository 1 command
- Workstation: Implement extension / local commits
For scripted extensions, creation directly from within Slicer:
- Slicer: Python interactor ->
createScriptedExtension('Foo')
Note: The final API may be slightly different - Slicer: Restart - 'Foo' module should show up. Note: This last step could probably be removed
To save extension code
- Github: Create an account
- Workstation -> Github: Create repository done with 1 command.
ExtensionWizard.py --publish ~/code/MyExtension
To contribute an extension to the Index
- SlicerWiki: Create documentation page
- Extension Server: Create an account [Join community + experimental folder permission consolidated in one location]
- Workstation: Configure upload credential
- Workstation -> ExtensionServer: Test upload [1 command to enter in a terminal / 1 click in visual studio]
- Add extension to the index using 1 command:
ExtensionWizard.py --contribute --target master ~/code/MyExtension
Progress
- Improve Wizard to create empty extension: reduce number of terminal commands to 1
- 3566: Wizard: Simplify creation of extensions/modules: Completed - Review in progress
- 3572: Add ExtensionWizard wiki page: Completed - Review in progress
- 3572: Add developer documentation for ExtensionWizard: Completed - Review in progress
- Publish extension on Github by creating github repo - Completed - Review in progress
- In case of Python extension, remove the need for a Slicer build tree: 50%
- Wizard: Remove dependency on build tree or CMake generated file. - Review in progress
- 3269: Simplify contribution of scripted extension: 50%
- Slicer: Creation of python extension directly from within Slicer. ToBeDone
- Slicer: Optional Restart. ToBeDone
- Slicer: Creation of python extension directly from Slicer. ToBeDone
- ExtensionServer: Consolidate ExtensionsIndex account creation. ToBeDone
- SlicerWiki: Automatic creation of extension wiki page. ToBeDone
- Slicer: Given an extension python script. Should be possible to upload the extension directly from Slicer. ToBeDone