Modified run-server for trunk.
Fixed URL generation (stripping leading and trailing dashes). Dynamically add revision number to version in setup.py.
This commit is contained in:
parent
f6761bc2a6
commit
9b8bdce543
@ -1 +1 @@
|
||||
/home/raoul/VirtualEnv/ScribeEngine/tags/bin/paster serve development.ini --reload
|
||||
/home/raoul/VirtualEnv/ScribeEngine/trunk/bin/paster serve development.ini --reload
|
||||
|
@ -67,7 +67,7 @@ def generate_url(title):
|
||||
``title``
|
||||
The title of the blog post.
|
||||
"""
|
||||
return re.sub(r'[^a-zA-Z0-9]+', u'-', title.lower()).strip()
|
||||
return re.sub(r'[^a-zA-Z0-9]+', u'-', title.lower()).strip('-')
|
||||
|
||||
def hash_password(password):
|
||||
"""
|
||||
|
14
setup.py
14
setup.py
@ -5,9 +5,21 @@ except ImportError:
|
||||
use_setuptools()
|
||||
from setuptools import setup, find_packages
|
||||
|
||||
try:
|
||||
from bzrlib.branch import Branch
|
||||
b = Branch.open_containing('.')[0]
|
||||
b.lock_read()
|
||||
try:
|
||||
revno = b.revno()
|
||||
finally:
|
||||
b.unlock()
|
||||
except:
|
||||
revno = 0
|
||||
|
||||
|
||||
setup(
|
||||
name='ScribeEngine',
|
||||
version='0.1',
|
||||
version='0.1.%s' % str(revno),
|
||||
description='',
|
||||
author='',
|
||||
author_email='',
|
||||
|
Reference in New Issue
Block a user