forked from LBRYCommunity/lbry-sdk
replace miniupnpc with upnpclient
docker build with wine
This commit is contained in:
parent
99be38604a
commit
7335d012ef
5 changed files with 39 additions and 8 deletions
13
.travis.yml
13
.travis.yml
|
@ -1,4 +1,4 @@
|
||||||
sudo: true
|
sudo: required
|
||||||
dist: xenial
|
dist: xenial
|
||||||
language: python
|
language: python
|
||||||
python:
|
python:
|
||||||
|
@ -41,6 +41,17 @@ jobs:
|
||||||
- coverage combine tests/
|
- coverage combine tests/
|
||||||
- bash <(curl -s https://codecov.io/bash)
|
- bash <(curl -s https://codecov.io/bash)
|
||||||
|
|
||||||
|
- stage: build
|
||||||
|
name: "Windows"
|
||||||
|
services:
|
||||||
|
- docker
|
||||||
|
before_install:
|
||||||
|
- docker pull cdrx/pyinstaller-windows:python3-32bit
|
||||||
|
install:
|
||||||
|
- docker run -v "$(pwd):/src/lbry" cdrx/pyinstaller-windows:python3-32bit lbry/scripts/wine_build.sh
|
||||||
|
script:
|
||||||
|
- find dist/
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- $HOME/.cache/pip
|
- $HOME/.cache/pip
|
||||||
|
|
|
@ -621,8 +621,7 @@ class Config:
|
||||||
return self._session_id
|
return self._session_id
|
||||||
|
|
||||||
|
|
||||||
# type: Config
|
settings = None # type: Config
|
||||||
settings = None
|
|
||||||
|
|
||||||
|
|
||||||
def get_default_env():
|
def get_default_env():
|
||||||
|
|
|
@ -173,7 +173,7 @@ class HeadersComponent(Component):
|
||||||
component_name = HEADERS_COMPONENT
|
component_name = HEADERS_COMPONENT
|
||||||
|
|
||||||
def __init__(self, component_manager):
|
def __init__(self, component_manager):
|
||||||
Component.__init__(self, component_manager)
|
super().__init__(component_manager)
|
||||||
self.config = SimpleConfig(get_wallet_config())
|
self.config = SimpleConfig(get_wallet_config())
|
||||||
self._downloading_headers = None
|
self._downloading_headers = None
|
||||||
self._headers_progress_percent = None
|
self._headers_progress_percent = None
|
||||||
|
@ -332,7 +332,7 @@ class WalletComponent(Component):
|
||||||
log.info("Starting torba wallet")
|
log.info("Starting torba wallet")
|
||||||
storage = self.component_manager.get_component(DATABASE_COMPONENT)
|
storage = self.component_manager.get_component(DATABASE_COMPONENT)
|
||||||
lbryschema.BLOCKCHAIN_NAME = conf.settings['blockchain_name']
|
lbryschema.BLOCKCHAIN_NAME = conf.settings['blockchain_name']
|
||||||
self.wallet = LbryWalletManager.from_old_config(conf.settings)
|
self.wallet = LbryWalletManager.from_lbrynet_config(conf.settings)
|
||||||
self.wallet.old_db = storage
|
self.wallet.old_db = storage
|
||||||
yield self.wallet.start()
|
yield self.wallet.start()
|
||||||
|
|
||||||
|
|
21
scripts/wine_build.sh
Executable file
21
scripts/wine_build.sh
Executable file
|
@ -0,0 +1,21 @@
|
||||||
|
set -x
|
||||||
|
|
||||||
|
rm -rf /tmp/.wine-*
|
||||||
|
|
||||||
|
apt-get -qq update
|
||||||
|
apt-get -qq install -y git
|
||||||
|
|
||||||
|
git clone https://github.com/lbryio/lbryschema.git --depth 1
|
||||||
|
git clone https://github.com/lbryio/torba.git --depth 1
|
||||||
|
git clone https://github.com/twisted/twisted.git --depth 1 --branch twisted-18.7.0
|
||||||
|
sed -i -e '172,184{s/^/#/}' twisted/src/twisted/python/_setup.py
|
||||||
|
|
||||||
|
pip install setuptools_scm
|
||||||
|
cd twisted && pip install -e .[tls] && cd ..
|
||||||
|
cd lbryschema && pip install -e . && cd ..
|
||||||
|
cd torba && pip install -e . && cd ..
|
||||||
|
|
||||||
|
cd lbry
|
||||||
|
pip install -e .
|
||||||
|
pyinstaller lbrynet/daemon/DaemonControl.py
|
||||||
|
wine dist/DaemonControl/DaemonControl.exe --version
|
6
setup.py
6
setup.py
|
@ -21,8 +21,8 @@ requires = [
|
||||||
'base58',
|
'base58',
|
||||||
'envparse',
|
'envparse',
|
||||||
'jsonrpc',
|
'jsonrpc',
|
||||||
'cryptography==2.2.2',
|
'cryptography',
|
||||||
'lbryschema==0.0.16',
|
'lbryschema',
|
||||||
'torba',
|
'torba',
|
||||||
'miniupnpc',
|
'miniupnpc',
|
||||||
'txupnp==0.0.1a11',
|
'txupnp==0.0.1a11',
|
||||||
|
@ -64,7 +64,7 @@ setup(
|
||||||
long_description=long_description,
|
long_description=long_description,
|
||||||
keywords="lbry protocol media",
|
keywords="lbry protocol media",
|
||||||
license='MIT',
|
license='MIT',
|
||||||
python_requires='>=3.7',
|
python_requires='>=3.6',
|
||||||
packages=find_packages(exclude=('tests',)),
|
packages=find_packages(exclude=('tests',)),
|
||||||
install_requires=requires,
|
install_requires=requires,
|
||||||
entry_points={'console_scripts': console_scripts},
|
entry_points={'console_scripts': console_scripts},
|
||||||
|
|
Loading…
Add table
Reference in a new issue