mirror of
https://github.com/Threnklyn/dungeon-sheets.git
synced 2026-06-07 13:15:53 +02:00
Added more spells.
This commit is contained in:
@@ -300,8 +300,8 @@ def main():
|
||||
description='Prepare Dungeons and Dragons character sheets as PDFs')
|
||||
parser.add_argument('filename', type=str, nargs="?",
|
||||
help="Python file with character definition")
|
||||
parser.add_argument('--flatten', '-F', action="store_true",
|
||||
help="Remove the PDF fields once processed.")
|
||||
parser.add_argument('--editable', '-e', action="store_true",
|
||||
help="Keep the PDF fields in place once processed.")
|
||||
args = parser.parse_args()
|
||||
# Process the requested files
|
||||
if args.filename is None:
|
||||
@@ -311,7 +311,7 @@ def main():
|
||||
for filename in filenames:
|
||||
print(f"Processing {os.path.splitext(filename)[0]}...", end='')
|
||||
try:
|
||||
make_sheet(character_file=filename, flatten=args.flatten)
|
||||
make_sheet(character_file=filename, flatten=(not args.editable))
|
||||
except Exception as e:
|
||||
print('failed')
|
||||
raise
|
||||
|
||||
+408
-5
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
+2
-2
@@ -1,5 +1,5 @@
|
||||
name = 'Warlock'
|
||||
character_class = 'wizard'
|
||||
name = 'Sid Istick'
|
||||
character_class = 'Warlock'
|
||||
player_name = 'Mark'
|
||||
background = "Criminal"
|
||||
race = "Rock Gnome"
|
||||
|
||||
Binary file not shown.
@@ -3,14 +3,23 @@
|
||||
# from distutils.core import setup
|
||||
from setuptools import setup
|
||||
|
||||
def read(fname):
|
||||
return open(os.path.join(os.path.dirname(__file__), fname)).read()
|
||||
|
||||
setup(name='dungeonsheets',
|
||||
version='0.1dev1',
|
||||
version='0.1dev2',
|
||||
description='Dungeons and Dragons 5e Character Tools',
|
||||
author='Mark Wolfman',
|
||||
author_email='canismarko@gmail.com',
|
||||
url='https://github.com/canismarko/dungeon-sheets',
|
||||
download_url = 'https://github.com/canismarko/dungeon-sheets/archive/master.zip',
|
||||
packages=['dungeonsheets'],
|
||||
package_data={
|
||||
'dungeonsheets': ['blank-character-sheet-default.pdf', 'blank-spell-sheet-default.pdf']
|
||||
},
|
||||
install_requires=[
|
||||
'fdfgen',
|
||||
],
|
||||
entry_points={
|
||||
'console_scripts': [
|
||||
'makesheets = dungeonsheets.make_sheets:main'
|
||||
|
||||
Reference in New Issue
Block a user