Skip to content

Commit

Permalink
make slip39[invoice] an optional component
Browse files Browse the repository at this point in the history
  • Loading branch information
pjkundert committed Nov 14, 2023
1 parent bba9092 commit d0faa13
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
13 changes: 7 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,20 @@

install_requires = open( os.path.join( HERE, "requirements.txt" )).readlines()
tests_require = open( os.path.join( HERE, "requirements-tests.txt" )).readlines()
options_require = [
'gui', # slip39[gui]: Support PySimpleGUI/tkinter Graphical UI App
'serial', # slip39[serial]: Support serial I/O of generated wallet data
'wallet', # slip39[wallet]: Paper Wallet and BIP-38/Ethereum wallet encryption
# 'invoice', # slip39[invoice]: Generation of invoices, and associated Smart Contracts
]
extras_require = {
option: list(
# Remove whitespace, elide blank lines and comments
''.join( r.split() )
for r in open( os.path.join( HERE, f"requirements-{option}.txt" )).readlines()
if r.strip() and not r.strip().startswith( '#' )
)
for option in [
'gui', # slip39[gui]: Support PySimpleGUI/tkinter Graphical UI App
'serial', # slip39[serial]: Support serial I/O of generated wallet data
'wallet', # slip39[wallet]: Paper Wallet and BIP-38/Ethereum wallet encryption
'invoice', # slip39[invoice]: Generation of invoices, and associated Smart Contracts
]
for option in options_require
}
# Make python-slip39[all] install all extra (non-tests) requirements, excluding duplicates
extras_require['all'] = list( set( sum( extras_require.values(), [] )))
Expand Down
2 changes: 1 addition & 1 deletion slip39/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version_info__ = ( 11, 1, 2 )
__version_info__ = ( 11, 2, 0 )
__version__ = '.'.join( map( str, __version_info__ ))

0 comments on commit d0faa13

Please sign in to comment.