Просмотр исходного кода

Update release script

tags/v0.7.2
Ben Kurtovic 1 год назад
Родитель
Сommit
dd614455c2
3 измененных файлов: 14 добавлений и 4 удалений
  1. +4
    -0
      CHANGELOG
  2. +8
    -0
      docs/changelog.rst
  3. +2
    -4
      scripts/release.sh

+ 4
- 0
CHANGELOG Просмотреть файл

@@ -1,3 +1,7 @@
v0.7.2 (unreleased):

- ...

v0.7.1 (released June 30, 2025): v0.7.1 (released June 30, 2025):


- Modernize packaging. - Modernize packaging.


+ 8
- 0
docs/changelog.rst Просмотреть файл

@@ -1,6 +1,14 @@
Changelog Changelog
========= =========


v0.7.2
------

Unreleased
(`changes <https://github.com/earwig/mwparserfromhell/compare/v0.7.1...main>`__):

- ...

v0.7.1 v0.7.1
------ ------




+ 2
- 4
scripts/release.sh Просмотреть файл

@@ -68,7 +68,7 @@ post_release() {
echo "*** Release completed." echo "*** Release completed."
echo "*** Update: https://github.com/earwig/mwparserfromhell/releases/tag/v$VERSION" echo "*** Update: https://github.com/earwig/mwparserfromhell/releases/tag/v$VERSION"
echo "*** Verify: https://pypi.org/project/mwparserfromhell" echo "*** Verify: https://pypi.org/project/mwparserfromhell"
echo "*** Verify: https://ci.appveyor.com/project/earwig/mwparserfromhell"
echo "*** Verify: https://github.com/earwig/mwparserfromhell/actions"
echo "*** Verify: https://mwparserfromhell.readthedocs.io" echo "*** Verify: https://mwparserfromhell.readthedocs.io"
echo "*** Press enter to sanity-check the release." echo "*** Press enter to sanity-check the release."
read read
@@ -100,6 +100,7 @@ test_release() {
echo " done." echo " done."
fi fi
pip -q uninstall -y mwparserfromhell pip -q uninstall -y mwparserfromhell
deactivate
echo -n "Downloading mwparserfromhell source tarball..." echo -n "Downloading mwparserfromhell source tarball..."
curl -sL "https://files.pythonhosted.org/packages/source/m/mwparserfromhell/mwparserfromhell-$VERSION.tar.gz" -o "mwparserfromhell.tar.gz" curl -sL "https://files.pythonhosted.org/packages/source/m/mwparserfromhell/mwparserfromhell-$VERSION.tar.gz" -o "mwparserfromhell.tar.gz"
echo " done." echo " done."
@@ -110,13 +111,11 @@ test_release() {
uv run pytest uv run pytest
if [[ "$?" != "0" ]]; then if [[ "$?" != "0" ]]; then
echo "*** ERROR: Unit tests failed!" echo "*** ERROR: Unit tests failed!"
deactivate
cd ../.. cd ../..
rm -rf $virtdir rm -rf $virtdir
exit 1 exit 1
fi fi
echo -n "Everything looks good. Cleaning up..." echo -n "Everything looks good. Cleaning up..."
deactivate
cd ../.. cd ../..
rm -rf $virtdir rm -rf $virtdir
echo " done." echo " done."
@@ -129,7 +128,6 @@ check_git
update_changelog update_changelog
update_docs_changelog update_docs_changelog
do_git_stuff do_git_stuff
upload_to_pypi
post_release post_release
test_release test_release




Загрузка…
Отмена
Сохранить