add pycryptodome or will get this
Traceback (most recent call last):
File "create_btc.py", line 1, in <module>
from pywallet import wallet
File "/usr/lib/python3.4/site-packages/pywallet-0.0.5-py3.4.egg/pywallet/wallet.py", line 5, in <module>
from .utils import (
File "/usr/lib/python3.4/site-packages/pywallet-0.0.5-py3.4.egg/pywallet/utils/__init__.py", line 5, in <module>
from .ethereum import (
File "/usr/lib/python3.4/site-packages/pywallet-0.0.5-py3.4.egg/pywallet/utils/ethereum.py", line 30, in <module>
from Crypto.Hash import keccak
ImportError: No module named 'Crypto'
62 lines
1.8 KiB
Python
62 lines
1.8 KiB
Python
#!/usr/bin/env python
|
|
# -*- coding: utf-8 -*-
|
|
|
|
from setuptools import setup, find_packages
|
|
from codecs import open
|
|
from os import path
|
|
import re
|
|
|
|
# Get the long description from the README file
|
|
with open(path.join('README.rst'), encoding='utf-8') as f:
|
|
long_description = f.read()
|
|
|
|
def load_version():
|
|
version_file = "pywallet/_version.py"
|
|
version_line = open(version_file).read().rstrip()
|
|
vre = re.compile(r'__version__ = "([^"]+)"')
|
|
matches = vre.findall(version_line)
|
|
|
|
if matches and len(matches) > 0:
|
|
return matches[0]
|
|
else:
|
|
raise RuntimeError(
|
|
"Cannot find version string in {version_file}.".format(
|
|
version_file=version_file))
|
|
|
|
version = load_version()
|
|
|
|
setup(
|
|
name='pywallet',
|
|
version=version,
|
|
description="Simple BIP32 (HD) wallet creation for BTC, BTG, BCH, LTC, DASH and DOGE",
|
|
long_description=long_description,
|
|
url='https://github.com/ranaroussi/pywallet',
|
|
author='Ran Aroussi',
|
|
author_email='ran@aroussi.com',
|
|
license='MIT License',
|
|
classifiers=[
|
|
"License :: OSI Approved :: MIT License",
|
|
"Development Status :: 3 - Alpha",
|
|
|
|
"Intended Audience :: Developers",
|
|
"Operating System :: OS Independent",
|
|
|
|
"Programming Language :: Python :: 2.7",
|
|
"Programming Language :: Python :: 3.4",
|
|
"Programming Language :: Python :: 3.5",
|
|
"Programming Language :: Python :: 3.6",
|
|
],
|
|
platforms = ['any'],
|
|
keywords='bitcoin, wallet, litecoin, hd-wallet, dogecoin, dashcoin, python',
|
|
packages = find_packages(exclude=['contrib', 'docs', 'tests', 'demo', 'demos', 'examples']),
|
|
package_data={'': ['AUTHORS', 'LICENSE']},
|
|
install_requires=[
|
|
'base58==0.2.1',
|
|
'ecdsa==0.11',
|
|
'six>=1.8.0',
|
|
'two1>=3.10.8',
|
|
'pycryptodome==3.4.7',
|
|
'rlp>=0.6.0'
|
|
]
|
|
)
|