Commits

Olemis Lang committed fd00cd4

Fixing typos in README and setup.py

Comments (0)

Files changed (3)

trac-dev/_project/README

 
 = ${project.summary} =
 
-{# In this is folder you will find stub files that can be used as a template to create new folders to develop new Trac plugins. They are written considering Genshi text template syntax so you can expand them at any time in order to setup a new envronment quickly by just providing the minimal set of meta-data (in `desc.ini`) needed to get you started (see [#Installation Installation] for further details). #} ${project.desc}
+{# In this is folder you will find stub files that can be used as a template to create new folders to develop new Trac plugins. They are written considering Genshi text template syntax so you can expand them at any time in order to setup a new environment quickly by just providing the minimal set of meta-data (in `_project.ini`) needed to get you started (see [#Installation Installation] for further details). #} ${project.desc}
 
 == !ToDo ==
 
 This plugin depends on the following components to be installed:
 
 {% for pkgnm, d in deps.iteritems() %}
-  - [${d.home} $pkgnm] {% if d.get('since') %} ,,Since version 
-    ''' ${d.since} ''',, {% end if %}. ${d.get('details', '')}
+  - [${d.home} $pkgnm] {% if d.get('since') %} ,,Since version ''' ${d.since} ''',, {% end if %}. ${d.get('details', '')}
 {% end for %}
 
 == Installation ==

trac-dev/_project/_expand.py

 prjcfg['deps'] = dict([s[5:], opts] for s, opts in prjcfg.iteritems() \
                       if s.startswith('deps/'))
 
+trac_versions = (v.strip() for v in prjcfg['project']['tracver'].split(','))
+trac_versions = [tuple(int(x) for x in v.split('.')) for v in trac_versions]
+prjcfg['project']['mintracver'] = min(trac_versions)
+
 f = None
 try :
   try :
             'GPL' : "License :: OSI Approved :: GNU General Public License",
             'LGPL' : "License :: OSI Approved :: GNU Library General Public License",
             'BSD' : "License :: OSI Approved :: BSD License",
+            'APSL' : 'License :: OSI Approved :: Apple Public Source License',
+            'MIT' : 'License :: OSI Approved :: MIT License',
+            'AFFERO_GPL' : 'License :: OSI Approved :: GNU Affero General Public License v3',
           }.get(l, 'License :: Unknown') for l in license]
 
 def expand_file(src, dst):
 
 destdir = join(destdir, prjcfg['project']['topmod'])
 mkdir(destdir)
-expand_file(join(thisdir, '__init__.py'), join(destdir, '__init__.py'))
+expand_file(join(thisdir, '__init__.py'), join(destdir, '__init__.py'))

trac-dev/_project/setup.py

 from ${project.topmod}.__init__ import __doc__ as DESC
 
 versions = [
-    (1, 0, 0),
+    (0, 1, 0),
     ]
     
 latest = '.'.join(str(x) for x in versions[-1])
 	requires = ['trac', {% for d in deps.itervalues() %} '${d.topmod}', {% end %}],
   install_requires = [
       'setuptools>=0.6b1',
-      'Trac>=0.11',
+      'Trac>=${project.mintracver}',
       {% for pkgnm, d in deps.iteritems() %}
-        '${pkgnm}${d.get('verinfo', '')}', {% end %}
+        '${pkgnm}>=${d.get("verinfo", "0.1.0")}', {% end %}
   ],
 	package_dir = dict([p, i[0]] for p, i in PKG_INFO.iteritems()),
 	packages = PKG_INFO.keys(),
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.