lbry-libtorrent is now on pypi

This commit is contained in:
Victor Shyba 2020-03-10 20:24:57 -03:00
parent bdd843196d
commit 24d749ed2b
3 changed files with 6 additions and 12 deletions

View file

@ -43,8 +43,6 @@ jobs:
python-version: '3.7'
- if: matrix.test == 'other'
run: sudo apt 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: tox -e ${{ matrix.test }}

View file

@ -40,10 +40,8 @@ test:unit:
test:datanetwork-integration:
stage: test
script:
- apt-get update
- apt-get install -y libboost-all-dev
- 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
- pip install tox-travis
- tox -e datanetwork --recreate
test:blockchain-integration:
stage: test
@ -86,7 +84,7 @@ test:json-api:
build:linux:
extends: .build
image: ubuntu:18.04
image: ubuntu:16.04
variables:
OS: linux
before_script:
@ -94,9 +92,9 @@ build:linux:
- apt-get install -y --no-install-recommends software-properties-common zip curl build-essential
- add-apt-repository -y ppa:deadsnakes/ppa
- 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
- 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:
extends: .build

View file

@ -6,14 +6,12 @@ extras = test
changedir = {toxinidir}/tests
setenv =
HOME=/tmp
LIBTORRENT_URL={env:LIBTORRENT_URL:https://s3.amazonaws.com/files.lbry.io/python_libtorrent-1.2.4-py3-none-any.whl}
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 \
--global-option=fetch \
--global-option=--version --global-option=3.30.1 --global-option=--all \
--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
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}