Changeset 866

Show
Ignore:
Timestamp:
04/27/06 03:16:43 (3 years ago)
Author:
arjanmol
Message:

Updated README.txt with a word about versioning.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/gaphas/README.txt

    r863 r866  
    155155        Simple example classes. 
    156156 
     157Guidelines 
     158---------- 
     159Following the Python coding guidelines 
     160<http://www.python.org/dev/peps/pep-0008/> indentation should be 4 spaces 
     161(no tabs), function and method names should be lowercase_with_underscore(), 
     162and files should contain a __version__ property, like this: 
    157163 
     164  __version__ = "$Revision$" 
     165  # $HeadURL$ 
     166 
     167It should be placed after the module docstring. 
     168 
     169This inhibits that for each .py file, the svn:keywords property should be set 
     170to "Revision HeadURL". This can be done manually: 
     171 
     172  $ svn propset svn:keywords "Revision HeadURL" myfile.py 
     173 
     174or by configuring your ~/.subversion/config file to use auto-props: 
     175 
     176  [miscellany] 
     177  # ... 
     178  enable-auto-props = yes 
     179 
     180  [auto-props] 
     181  # ... 
     182  *.py = svn:keywords=Revision HeadURL 
     183 
     184 
  • trunk/gaphas/pylintrc

    r864 r866  
    8888 
    8989# Required attributes for module, separated by a comma 
    90 required-attributes= 
    91 #required-attributes=__revision__ 
     90required-attributes=__version__ 
    9291 
    9392# Regular expression which should only match functions or classes name which do