Bläddra i källkod

Version bump to 0.4.1; fix broken sed commands in release.sh.

tags/v0.4.1
Ben Kurtovic 9 år sedan
förälder
incheckning
f0cacd5a9e
4 ändrade filer med 9 tillägg och 9 borttagningar
  1. +1
    -1
      CHANGELOG
  2. +2
    -2
      docs/changelog.rst
  3. +1
    -1
      mwparserfromhell/__init__.py
  4. +5
    -5
      scripts/release.sh

+ 1
- 1
CHANGELOG Visa fil

@@ -1,4 +1,4 @@
v0.4 (unreleased):
v0.4 (released May 23, 2015):

- The parser now falls back on pure Python mode if C extensions cannot be
built. This fixes an issue that prevented some Windows users from installing


+ 2
- 2
docs/changelog.rst Visa fil

@@ -4,8 +4,8 @@ Changelog
v0.4
----

Unreleased
(`changes <https://github.com/earwig/mwparserfromhell/compare/v0.3.3...develop>`__):
`Released May 23, 2015 <https://github.com/earwig/mwparserfromhell/tree/v0.4>`_
(`changes <https://github.com/earwig/mwparserfromhell/compare/v0.3.3...v0.4>`__):

- The parser now falls back on pure Python mode if C extensions cannot be
built. This fixes an issue that prevented some Windows users from installing


+ 1
- 1
mwparserfromhell/__init__.py Visa fil

@@ -29,7 +29,7 @@ outrageously powerful parser for `MediaWiki <http://mediawiki.org>`_ wikicode.
__author__ = "Ben Kurtovic"
__copyright__ = "Copyright (C) 2012, 2013, 2014, 2015 Ben Kurtovic"
__license__ = "MIT License"
__version__ = "0.4"
__version__ = "0.4.1.dev0"
__email__ = "ben.kurtovic@gmail.com"

from . import (compat, definitions, nodes, parser, smart_list, string_mixin,


+ 5
- 5
scripts/release.sh Visa fil

@@ -34,7 +34,7 @@ update_version() {
update_changelog() {
filename="CHANGELOG"
echo -n "Updating $filename..."
sed -e '1s/.*/v'$VERSION' (released '$RELEASE_DATE'):/' -i "" $filename
sed -e "1s/.*/v$VERSION (released $RELEASE_DATE):/" -i "" $filename
echo " done."
}

@@ -45,10 +45,10 @@ update_docs_changelog() {
previous_lineno=$(expr $(grep -n -e "^---" $filename | sed '2q;d' | cut -d ':' -f 1) - 1)
previous_version=$(sed $previous_lineno'q;d' $filename)
sed \
-e '4s/.*/v'$VERSION \
-e '5s/.*/'$dashes \
-e '7s/.*/`Released '$RELEASE_DATE' <https:\/\/github.com\/earwig\/mwparserfromhell\/tree\/v'$VERSION'>`_/' \
-e '8s/.*/(`changes <https:\/\/github.com\/earwig\/mwparserfromhell\/compare\/v'$previous_version'...v'$VERSION'>`__):/' \
-e "4s/.*/v$VERSION/" \
-e "5s/.*/$dashes/" \
-e "7s/.*/\`Released $RELEASE_DATE <https:\/\/github.com\/earwig\/mwparserfromhell\/tree\/v$VERSION>\`_/" \
-e "8s/.*/(\`changes <https:\/\/github.com\/earwig\/mwparserfromhell\/compare\/$previous_version...v$VERSION>\`__):/" \
-i "" $filename
echo " done."
}


Laddar…
Avbryt
Spara