Prepare for bumpr

This commit is contained in:
Axel Haustant 2013-03-27 09:30:54 +01:00
commit c61f6f402a
4 changed files with 35 additions and 8 deletions

30
bumpr.rc Normal file
View file

@ -0,0 +1,30 @@
[bumpr]
file = pelican/__init__.py
vcs = git
clean =
python setup.py clean
rm -rf *egg-info build dist
tests = tox
publish = python setup.py sdist register upload
files = README.rst
[bump]
unsuffix = true
message = Bump version {version}
[prepare]
part = patch
suffix = dev
message = Prepare version {version} for next development cycle
[changelog]
file = docs/changelog.rst
separator = =
bump = {version} ({date:%Y-%m-%d})
prepare = Next release
[readthedoc]
url = http://docs.getpelican.com/{tag}
[commands]
bump = sed -i "s/last_stable\s*=.*/last_stable = '{version}'/" docs/conf.py

View file

@ -2,7 +2,7 @@ Release history
############### ###############
Next release Next release
================ ============
* Rename signals for better consistency (some plugins may need to be updated) * Rename signals for better consistency (some plugins may need to be updated)
* Move metadata extraction from generators to readers; metadata extraction no * Move metadata extraction from generators to readers; metadata extraction no

View file

@ -4,7 +4,7 @@ import sys, os
sys.path.append(os.path.abspath(os.pardir)) sys.path.append(os.path.abspath(os.pardir))
from pelican import __version__, __major__, __minor__ from pelican import __version__
# -- General configuration ----------------------------------------------------- # -- General configuration -----------------------------------------------------
templates_path = ['_templates'] templates_path = ['_templates']
@ -14,9 +14,9 @@ master_doc = 'index'
project = 'Pelican' project = 'Pelican'
copyright = '2010, Alexis Metaireau and contributors' copyright = '2010, Alexis Metaireau and contributors'
exclude_patterns = ['_build'] exclude_patterns = ['_build']
version = '%s.%s' % (__major__, __minor__)
release = __version__ release = __version__
last_stable = '3.1.1' version = '.'.join(release.split('.')[:1])
last_stable = '3.2.2'
rst_prolog = ''' rst_prolog = '''
.. |last_stable| replace:: :pelican-doc:`{0}` .. |last_stable| replace:: :pelican-doc:`{0}`
'''.format(last_stable) '''.format(last_stable)

View file

@ -22,10 +22,7 @@ from pelican.settings import read_settings
from pelican.utils import clean_output_dir, folder_watcher, file_watcher from pelican.utils import clean_output_dir, folder_watcher, file_watcher
from pelican.writers import Writer from pelican.writers import Writer
__major__ = 3 __version__ = "3.2.3.dev"
__minor__ = 2
__micro__ = 0
__version__ = "{0}.{1}.{2}.dev".format(__major__, __minor__, __micro__)
DEFAULT_CONFIG_NAME = 'pelicanconf.py' DEFAULT_CONFIG_NAME = 'pelicanconf.py'