Evennia 1.0.1 bug fix release
This commit is contained in:
parent
cd07c78240
commit
8122c4f942
5 changed files with 51 additions and 20 deletions
44
.release.sh
Executable file
44
.release.sh
Executable 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."
|
||||||
10
Makefile
10
Makefile
|
|
@ -44,10 +44,8 @@ testp:
|
||||||
evennia migrate;\
|
evennia migrate;\
|
||||||
evennia test --keepdb --parallel 4 $(TESTS);\
|
evennia test --keepdb --parallel 4 $(TESTS);\
|
||||||
|
|
||||||
|
version:
|
||||||
|
echo $(VERSION)
|
||||||
|
|
||||||
release:
|
release:
|
||||||
rm -Rf dist/
|
./.release.sh
|
||||||
git clean -xdf
|
|
||||||
pip install --upgrade pip
|
|
||||||
pip install build twine
|
|
||||||
python -m build --sdist --wheel --outdir dist/ .
|
|
||||||
python -m twine upload dist/*
|
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
1.0
|
1.0.1
|
||||||
|
|
|
||||||
|
|
@ -273,22 +273,12 @@ from django.conf import settings
|
||||||
|
|
||||||
# i18n
|
# i18n
|
||||||
from django.utils.translation import gettext as _
|
from django.utils.translation import gettext as _
|
||||||
|
|
||||||
from evennia import CmdSet, Command
|
from evennia import CmdSet, Command
|
||||||
from evennia.commands import cmdhandler
|
from evennia.commands import cmdhandler
|
||||||
from evennia.utils import logger
|
from evennia.utils import logger
|
||||||
from evennia.utils.ansi import strip_ansi
|
from evennia.utils.ansi import strip_ansi
|
||||||
from evennia.utils.evtable import EvColumn, EvTable
|
from evennia.utils.evtable import EvColumn, EvTable
|
||||||
from evennia.utils.utils import (
|
from evennia.utils.utils import crop, dedent, is_iter, m_len, make_iter, mod_import, pad, to_str
|
||||||
crop,
|
|
||||||
dedent,
|
|
||||||
is_iter,
|
|
||||||
m_len,
|
|
||||||
make_iter,
|
|
||||||
mod_import,
|
|
||||||
pad,
|
|
||||||
to_str,
|
|
||||||
)
|
|
||||||
|
|
||||||
# read from protocol NAWS later?
|
# read from protocol NAWS later?
|
||||||
_MAX_TEXT_WIDTH = settings.CLIENT_DEFAULT_WIDTH
|
_MAX_TEXT_WIDTH = settings.CLIENT_DEFAULT_WIDTH
|
||||||
|
|
@ -1179,7 +1169,6 @@ class EvMenu:
|
||||||
for icol in range(ncols):
|
for icol in range(ncols):
|
||||||
start = icol * split
|
start = icol * split
|
||||||
end = min(start + split, max_end)
|
end = min(start + split, max_end)
|
||||||
print(f"col {icol}:", table[start:end])
|
|
||||||
cols_list.append(EvColumn(*table[start:end]))
|
cols_list.append(EvColumn(*table[start:end]))
|
||||||
|
|
||||||
return str(EvTable(table=cols_list, border="none"))
|
return str(EvTable(table=cols_list, border="none"))
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "evennia"
|
name = "evennia"
|
||||||
version = "1.0"
|
version = "1.0.1"
|
||||||
maintainers = [{ name = "Griatch", email = "griatch@gmail.com" }]
|
maintainers = [{ name = "Griatch", email = "griatch@gmail.com" }]
|
||||||
description = "A full-featured toolkit and server for text-based multiplayer games (MUDs, MU*, etc)."
|
description = "A full-featured toolkit and server for text-based multiplayer games (MUDs, MU*, etc)."
|
||||||
requires-python = ">=3.10"
|
requires-python = ">=3.10"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue