Evennia 1.0.1 bug fix release

This commit is contained in:
Griatch 2022-12-07 19:36:27 +01:00
parent cd07c78240
commit 8122c4f942
5 changed files with 51 additions and 20 deletions

44
.release.sh Executable file
View File

@ -0,0 +1,44 @@
# Release helper
VERSION=$(cat evennia/VERSION.txt)
echo "This will release Evennia $VERSION (based on evennia/VERSION.txt)."
echo "Before continuing:"
echo " 1. Make sure you have Evennia upload credentials."
echo " 2. Determine if CHANGELOG.md should be updated and rebuilt."
echo " 3. Make sure VERSION.txt and pyproject.toml both show version $VERSION."
echo " 4. Make sure all changes are committed (all un-staged files will be wiped)."
echo " 5. Make sure all unit tests pass."
read -p "Continue? [Y/n]> " yn
case $yn in
[nN] ) echo "Aborting.";
exit;;
* ) echo "Starting release ...";;
esac
# clean and build the pypi distribution
echo "Preparing and Building PyPi package ..."
rm -Rf dist/
git clean -xdf
pip install --upgrade pip
pip install build twine
python -m build --sdist --wheel --outdir dist/ .
echo "Uploading PyPi package (requires credentials) ..."
python -m twine upload dist/*
# tag the latest git commit
echo "Creating and pushing release tag tag v$VERSION ..."
git tag -a v$VERSION -m "Evennia release v$VERSION"
git push --tags
echo "... Release complete."
echo ""
echo "Post-release actions:"
echo " 1. Make sure to push all commits."
echo " 2. Update github discussions to report on release."
echo " 2. Make post in discord #announcements channel pointing to discussion post."
echo " 3. Any other announcements as needed."

View File

@ -44,10 +44,8 @@ testp:
evennia migrate;\
evennia test --keepdb --parallel 4 $(TESTS);\
version:
echo $(VERSION)
release:
rm -Rf dist/
git clean -xdf
pip install --upgrade pip
pip install build twine
python -m build --sdist --wheel --outdir dist/ .
python -m twine upload dist/*
./.release.sh

View File

@ -1 +1 @@
1.0
1.0.1

View File

@ -273,22 +273,12 @@ from django.conf import settings
# i18n
from django.utils.translation import gettext as _
from evennia import CmdSet, Command
from evennia.commands import cmdhandler
from evennia.utils import logger
from evennia.utils.ansi import strip_ansi
from evennia.utils.evtable import EvColumn, EvTable
from evennia.utils.utils import (
crop,
dedent,
is_iter,
m_len,
make_iter,
mod_import,
pad,
to_str,
)
from evennia.utils.utils import crop, dedent, is_iter, m_len, make_iter, mod_import, pad, to_str
# read from protocol NAWS later?
_MAX_TEXT_WIDTH = settings.CLIENT_DEFAULT_WIDTH
@ -1179,7 +1169,6 @@ class EvMenu:
for icol in range(ncols):
start = icol * split
end = min(start + split, max_end)
print(f"col {icol}:", table[start:end])
cols_list.append(EvColumn(*table[start:end]))
return str(EvTable(table=cols_list, border="none"))

View File

@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "evennia"
version = "1.0"
version = "1.0.1"
maintainers = [{ name = "Griatch", email = "griatch@gmail.com" }]
description = "A full-featured toolkit and server for text-based multiplayer games (MUDs, MU*, etc)."
requires-python = ">=3.10"