1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00

Actually, fix the dndnew command

This commit is contained in:
Steffo 2019-12-10 13:26:27 +01:00
parent 04fc988628
commit 961ef93bbd
4 changed files with 2 additions and 17 deletions

View file

@ -17,7 +17,7 @@ class DndnewCommand(Command):
tables = {DndCharacter} tables = {DndCharacter}
def _search_value(self, name: str, string: str): def _search_value(self, name: str, string: str):
return re.search(r"\s*" + name + r"\s*([0-9]+)\s*", string, re.IGNORECASE) return re.search(r"\s*" + name + r"\s*([0-9.]+)\s*", string, re.IGNORECASE)
def _parse(self, character_sheet: str) -> dict: def _parse(self, character_sheet: str) -> dict:
columns = list(self.alchemy.DndCharacter.__table__.columns) columns = list(self.alchemy.DndCharacter.__table__.columns)

View file

@ -1,4 +1,4 @@
semantic = "5.0a93" semantic = "5.0a94"
if __name__ == "__main__": if __name__ == "__main__":
print(semantic) print(semantic)

View file

@ -1,3 +0,0 @@
del /f /q /s dist\*.*
python setup.py sdist bdist_wheel
twine upload dist/*

View file

@ -1,12 +0,0 @@
#!/bin/bash
# Royalnet must be installed with `develop`
VERSION=$(python3.7 -m rpgpack.version)
rm -rf dist
python setup.py sdist bdist_wheel
twine upload "dist/rpgpack-$VERSION"*
git add *
git commit -m "$VERSION"
git push
hub release create --message "Version $VERSION" --prerelease "$VERSION"