remove gmpy and seccure dependencies
This commit is contained in:
parent
1327757e35
commit
f918916160
8 changed files with 5 additions and 25 deletions
|
@ -78,6 +78,7 @@ at anytime.
|
||||||
* Removed claim information from lbry file internals
|
* Removed claim information from lbry file internals
|
||||||
* Removed `auto_re_reflect` setting from the conf file, use the `reflect_uploads` setting instead
|
* Removed `auto_re_reflect` setting from the conf file, use the `reflect_uploads` setting instead
|
||||||
* Removed `include_tip_info` argument from `transaction_list`, which will now always include tip information.
|
* Removed `include_tip_info` argument from `transaction_list`, which will now always include tip information.
|
||||||
|
* Removed `seccure` and `gmpy` dependencies
|
||||||
|
|
||||||
|
|
||||||
## [0.18.0] - 2017-11-08
|
## [0.18.0] - 2017-11-08
|
||||||
|
|
|
@ -25,7 +25,7 @@ sudo pip install virtualenv
|
||||||
On Ubuntu (we recommend 16.04), install the following:
|
On Ubuntu (we recommend 16.04), install the following:
|
||||||
|
|
||||||
```
|
```
|
||||||
sudo apt-get install libgmp3-dev build-essential python2.7 python2.7-dev python-pip git python-virtualenv libssl-dev libffi-dev python-protobuf
|
sudo apt-get install build-essential python2.7 python2.7-dev python-pip git python-virtualenv libssl-dev libffi-dev python-protobuf
|
||||||
```
|
```
|
||||||
|
|
||||||
On Raspbian, you will also need to install `python-pyparsing`.
|
On Raspbian, you will also need to install `python-pyparsing`.
|
||||||
|
@ -53,10 +53,7 @@ Currently, available binaries include:
|
||||||
- Twisted
|
- Twisted
|
||||||
- Zope.interface
|
- Zope.interface
|
||||||
- pywin32
|
- pywin32
|
||||||
- Yapsy
|
|
||||||
- cx_Freeze
|
|
||||||
- requests
|
- requests
|
||||||
- gmpy
|
|
||||||
|
|
||||||
Install the above binaries with `pip install *.whl`
|
Install the above binaries with `pip install *.whl`
|
||||||
|
|
||||||
|
|
|
@ -13,10 +13,8 @@ python setupmingw32.py install
|
||||||
cd ..\
|
cd ..\
|
||||||
Remove-Item -Recurse -Force miniupnpc-1.9
|
Remove-Item -Recurse -Force miniupnpc-1.9
|
||||||
|
|
||||||
# copy requirements from lbry, but remove gmpy and miniupnpc (installed manually)
|
# copy requirements from lbry, but remove miniupnpc (installed manually)
|
||||||
Get-Content ..\requirements.txt | Select-String -Pattern 'gmpy|miniupnpc' -NotMatch | Out-File requirements_base.txt
|
Get-Content ..\requirements.txt | Select-String -Pattern 'miniupnpc' -NotMatch | Out-File requirements_base.txt
|
||||||
# add in gmpy wheel
|
|
||||||
Add-Content requirements.txt "./gmpy-1.17-cp27-none-win32.whl"
|
|
||||||
|
|
||||||
python set_build.py
|
python set_build.py
|
||||||
|
|
||||||
|
|
Binary file not shown.
|
@ -41,7 +41,7 @@ set -eu
|
||||||
|
|
||||||
if $LINUX; then
|
if $LINUX; then
|
||||||
INSTALL="$SUDO apt-get install --no-install-recommends -y"
|
INSTALL="$SUDO apt-get install --no-install-recommends -y"
|
||||||
$INSTALL build-essential libssl-dev libffi-dev libgmp3-dev python2.7-dev wget
|
$INSTALL build-essential libssl-dev libffi-dev python2.7-dev wget
|
||||||
elif $OSX && ! cmd_exists brew ; then
|
elif $OSX && ! cmd_exists brew ; then
|
||||||
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -1,18 +1,5 @@
|
||||||
import seccure
|
|
||||||
import hashlib
|
import hashlib
|
||||||
|
|
||||||
|
|
||||||
def get_lbry_hash_obj():
|
def get_lbry_hash_obj():
|
||||||
return hashlib.sha384()
|
return hashlib.sha384()
|
||||||
|
|
||||||
|
|
||||||
def get_pub_key(pass_phrase):
|
|
||||||
return str(seccure.passphrase_to_pubkey(pass_phrase, curve="brainpoolp384r1"))
|
|
||||||
|
|
||||||
|
|
||||||
def sign_with_pass_phrase(m, pass_phrase):
|
|
||||||
return seccure.sign(m, pass_phrase, curve="brainpoolp384r1")
|
|
||||||
|
|
||||||
|
|
||||||
def verify_signature(m, signature, pub_key):
|
|
||||||
return seccure.verify(m, signature, pub_key, curve="brainpoolp384r1")
|
|
||||||
|
|
|
@ -10,7 +10,6 @@ dnspython==1.12.0
|
||||||
ecdsa==0.13
|
ecdsa==0.13
|
||||||
envparse==0.2.0
|
envparse==0.2.0
|
||||||
GitPython==2.1.3
|
GitPython==2.1.3
|
||||||
gmpy==1.17
|
|
||||||
jsonrpc==1.2
|
jsonrpc==1.2
|
||||||
jsonrpclib==0.1.7
|
jsonrpclib==0.1.7
|
||||||
jsonschema==2.6.0
|
jsonschema==2.6.0
|
||||||
|
@ -25,7 +24,6 @@ PyGithub==1.34
|
||||||
qrcode==5.2.2
|
qrcode==5.2.2
|
||||||
requests==2.9.1
|
requests==2.9.1
|
||||||
txrequests==0.9.5
|
txrequests==0.9.5
|
||||||
seccure==0.3.1.3
|
|
||||||
service_identity==16.0.0
|
service_identity==16.0.0
|
||||||
six>=1.9.0
|
six>=1.9.0
|
||||||
slowaes==0.1a1
|
slowaes==0.1a1
|
||||||
|
|
1
setup.py
1
setup.py
|
@ -28,7 +28,6 @@ requires = [
|
||||||
'pyyaml',
|
'pyyaml',
|
||||||
'requests',
|
'requests',
|
||||||
'txrequests',
|
'txrequests',
|
||||||
'seccure',
|
|
||||||
'txJSON-RPC',
|
'txJSON-RPC',
|
||||||
'zope.interface',
|
'zope.interface',
|
||||||
'docopt'
|
'docopt'
|
||||||
|
|
Loading…
Reference in a new issue