forked from LBRYCommunity/lbry-sdk
lbry-libtorrent is now on pypi
This commit is contained in:
parent
8811b8c1fd
commit
8a4fe4f3ad
3 changed files with 6 additions and 12 deletions
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
|
@ -45,8 +45,6 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y --no-install-recommends ffmpeg
|
sudo apt-get install -y --no-install-recommends ffmpeg
|
||||||
- if: matrix.test == 'datanetwork'
|
|
||||||
run: sudo apt install -y --no-install-recommends libboost1.65-all-dev
|
|
||||||
- run: pip install tox-travis
|
- run: pip install tox-travis
|
||||||
- run: tox -e ${{ matrix.test }}
|
- run: tox -e ${{ matrix.test }}
|
||||||
|
|
||||||
|
|
|
@ -40,10 +40,8 @@ test:unit:
|
||||||
test:datanetwork-integration:
|
test:datanetwork-integration:
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- apt-get update
|
- pip install tox-travis
|
||||||
- apt-get install -y libboost-all-dev
|
- tox -e datanetwork --recreate
|
||||||
- python3.7 -m pip install tox-travis
|
|
||||||
- LIBTORRENT_URL=https://s3.amazonaws.com/files.lbry.io/python_libtorrent-1.2.4-py2.py3-none-any.whl tox -e datanetwork --recreate
|
|
||||||
|
|
||||||
test:blockchain-integration:
|
test:blockchain-integration:
|
||||||
stage: test
|
stage: test
|
||||||
|
@ -86,7 +84,7 @@ test:json-api:
|
||||||
|
|
||||||
build:linux:
|
build:linux:
|
||||||
extends: .build
|
extends: .build
|
||||||
image: ubuntu:18.04
|
image: ubuntu:16.04
|
||||||
variables:
|
variables:
|
||||||
OS: linux
|
OS: linux
|
||||||
before_script:
|
before_script:
|
||||||
|
@ -94,9 +92,9 @@ build:linux:
|
||||||
- apt-get install -y --no-install-recommends software-properties-common zip curl build-essential
|
- apt-get install -y --no-install-recommends software-properties-common zip curl build-essential
|
||||||
- add-apt-repository -y ppa:deadsnakes/ppa
|
- add-apt-repository -y ppa:deadsnakes/ppa
|
||||||
- apt-get update
|
- apt-get update
|
||||||
- apt-get install -y --no-install-recommends python3.7-dev libboost1.65-all-dev
|
- apt-get install -y --no-install-recommends python3.7-dev
|
||||||
- python3.7 <(curl -q https://bootstrap.pypa.io/get-pip.py) # make sure we get pip with python3.7
|
- python3.7 <(curl -q https://bootstrap.pypa.io/get-pip.py) # make sure we get pip with python3.7
|
||||||
- pip install https://s3.amazonaws.com/files.lbry.io/python_libtorrent-1.2.4-py3-none-any.whl # temporarly only on linux
|
- pip install lbry-libtorrent
|
||||||
|
|
||||||
build:mac:
|
build:mac:
|
||||||
extends: .build
|
extends: .build
|
||||||
|
|
4
tox.ini
4
tox.ini
|
@ -6,14 +6,12 @@ extras = test
|
||||||
changedir = {toxinidir}/tests
|
changedir = {toxinidir}/tests
|
||||||
setenv =
|
setenv =
|
||||||
HOME=/tmp
|
HOME=/tmp
|
||||||
LIBTORRENT_URL={env:LIBTORRENT_URL:https://s3.amazonaws.com/files.lbry.io/python_libtorrent-1.2.4-py3-none-any.whl}
|
|
||||||
commands =
|
commands =
|
||||||
pip install {env:LIBTORRENT_URL}
|
|
||||||
pip install https://github.com/rogerbinns/apsw/releases/download/3.30.1-r1/apsw-3.30.1-r1.zip \
|
pip install https://github.com/rogerbinns/apsw/releases/download/3.30.1-r1/apsw-3.30.1-r1.zip \
|
||||||
--global-option=fetch \
|
--global-option=fetch \
|
||||||
--global-option=--version --global-option=3.30.1 --global-option=--all \
|
--global-option=--version --global-option=3.30.1 --global-option=--all \
|
||||||
--global-option=build --global-option=--enable --global-option=fts5
|
--global-option=build --global-option=--enable --global-option=fts5
|
||||||
pip install https://s3.amazonaws.com/files.lbry.io/python_libtorrent-1.2.4-py2.py3-none-any.whl
|
pip install lbry-libtorrent
|
||||||
orchstr8 download
|
orchstr8 download
|
||||||
blockchain: coverage run -p --source={envsitepackagesdir}/lbry -m unittest discover -vv integration.blockchain {posargs}
|
blockchain: coverage run -p --source={envsitepackagesdir}/lbry -m unittest discover -vv integration.blockchain {posargs}
|
||||||
datanetwork: coverage run -p --source={envsitepackagesdir}/lbry -m unittest discover -vv integration.datanetwork {posargs}
|
datanetwork: coverage run -p --source={envsitepackagesdir}/lbry -m unittest discover -vv integration.datanetwork {posargs}
|
||||||
|
|
Loading…
Reference in a new issue