mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
Actually, fix the dndnew command
This commit is contained in:
parent
04fc988628
commit
961ef93bbd
4 changed files with 2 additions and 17 deletions
|
@ -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)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
semantic = "5.0a93"
|
semantic = "5.0a94"
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
print(semantic)
|
print(semantic)
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
del /f /q /s dist\*.*
|
|
||||||
python setup.py sdist bdist_wheel
|
|
||||||
twine upload dist/*
|
|
12
to_pypi.sh
12
to_pypi.sh
|
@ -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"
|
|
Loading…
Reference in a new issue