소스 검색

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

tags/v0.4.1
Ben Kurtovic 9 년 전
부모
커밋
f0cacd5a9e
4개의 변경된 파일9개의 추가작업 그리고 9개의 파일을 삭제
  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 파일 보기

@@ -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 파일 보기

@@ -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 파일 보기

@@ -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 파일 보기

@@ -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."
}


불러오는 중...
취소
저장