~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to doc/developers/plugin-api.txt

  • Committer: John Arbash Meinel
  • Date: 2009-03-06 20:42:40 UTC
  • mto: This revision was merged to the branch mainline in revision 4088.
  • Revision ID: john@arbash-meinel.com-20090306204240-mzjavv31z3gu1x7i
Fix a small bug in setup.py when an extension fails to build

Show diffs side-by-side

added added

removed removed

Lines of Context:
109
109
| bzr_repository_formats | {}      | As bzr_checkout_formats but for        |
110
110
|                        |         | repositories.                          |
111
111
+------------------------+---------+----------------------------------------+
112
 
| bzr_transports         | []      | URL prefixes for which this plugin     |
113
 
|                        |         | will register transports.              |
114
 
+------------------------+---------+----------------------------------------+
115
112
 
116
113
Control Formats
117
114
---------------
128
125
 
129
126
  # (look for a .hg directory)
130
127
  bzr_control_formats = {"Mercurial":{'.hg/': None}}
131
 
 
 
128
  
132
129
  # (look for a file called .svn/format with contents 4\n).
133
130
  bzr_control_formats = {"Subversion":{'.svn/format': '4\n'}}
134
131
 
137
134
-------
138
135
 
139
136
An example setup.py follows::
140
 
 
 
137
  
141
138
  #!/usr/bin/env python2.4
142
139
  from distutils.core import setup
143
 
 
 
140
  
144
141
  bzr_plugin_name = 'demo'
145
142
  bzr_commands = [
146
143
      'new-command',
147
144
      ]
148
 
 
 
145
  
149
146
  bzr_branch_formats = {
150
147
      "Branch label on disk\n":"demo branch",
151
148
      }
152
149
 
153
150
  bzr_control_formats = {"Subversion":{'.svn/format': '4\n'}}
154
 
 
155
 
  bzr_transports = ["hg+ssh://"]
156
 
 
 
151
  
157
152
  bzr_plugin_version = (1, 3, 0, 'dev', 0)
158
153
  bzr_minimum_version = (1, 0, 0)
159
 
 
 
154
  
160
155
  if __name__ == 'main':
161
156
      setup(name="Demo",
162
157
            version="1.3.0dev0",