mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-16 13:26:33 +00:00
[CI] Use libtorrent pypi install
Up until now, the linux installation source of libtorrent was launchpad, because there was no other source, and we wanted a debug version of lt. With pypi wheel versions now available use lt in the requirements.txt file. Closes: https://github.com/deluge-torrent/deluge/pull/364
This commit is contained in:
parent
13be64d355
commit
a954348567
13
.github/workflows/ci.yml
vendored
13
.github/workflows/ci.yml
vendored
@ -35,15 +35,6 @@ jobs:
|
|||||||
${{ runner.os }}-pip-
|
${{ runner.os }}-pip-
|
||||||
${{ runner.os }}-
|
${{ runner.os }}-
|
||||||
|
|
||||||
- name: Add libtorrent deb repository
|
|
||||||
uses: myci-actions/add-deb-repo@8
|
|
||||||
with:
|
|
||||||
repo: deb http://ppa.launchpad.net/libtorrent.org/1.2-daily/ubuntu focal main
|
|
||||||
repo-name: libtorrent
|
|
||||||
keys: 58E5430D9667FAEFFCA0B93F32309D6B9E009EDB
|
|
||||||
key-server: keyserver.ubuntu.com
|
|
||||||
install: python3-libtorrent-dbg
|
|
||||||
|
|
||||||
- name: Sets env var for security
|
- name: Sets env var for security
|
||||||
if: (github.event_name == 'pull_request' && contains(github.event.pull_request.body, 'security_test')) || (github.event_name == 'push' && contains(github.event.head_commit.message, 'security_test'))
|
if: (github.event_name == 'pull_request' && contains(github.event.pull_request.body, 'security_test')) || (github.event_name == 'push' && contains(github.event.head_commit.message, 'security_test'))
|
||||||
run: echo "SECURITY_TESTS=True" >> $GITHUB_ENV
|
run: echo "SECURITY_TESTS=True" >> $GITHUB_ENV
|
||||||
@ -71,7 +62,6 @@ jobs:
|
|||||||
- name: Test with pytest
|
- name: Test with pytest
|
||||||
run: |
|
run: |
|
||||||
ulimit -c unlimited # Enable core dumps to be captured
|
ulimit -c unlimited # Enable core dumps to be captured
|
||||||
cp /usr/lib/python3/dist-packages/libtorrent*.so $GITHUB_WORKSPACE/deluge
|
|
||||||
python -c 'from deluge._libtorrent import lt; print(lt.__version__)';
|
python -c 'from deluge._libtorrent import lt; print(lt.__version__)';
|
||||||
catchsegv python -X dev -m pytest -v -m "not (todo or gtkui)" deluge
|
catchsegv python -X dev -m pytest -v -m "not (todo or gtkui)" deluge
|
||||||
|
|
||||||
@ -111,8 +101,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip wheel
|
pip install --upgrade pip wheel
|
||||||
python -m pip install libtorrent==1.2.*
|
|
||||||
pip install -r requirements.txt -r requirements-tests.txt
|
pip install -r requirements.txt -r requirements-tests.txt
|
||||||
pip install -e .
|
pip install -e .
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
libtorrent
|
||||||
twisted[tls]>=17.1
|
twisted[tls]>=17.1
|
||||||
rencode
|
rencode
|
||||||
pyopenssl
|
pyopenssl
|
||||||
|
Loading…
x
Reference in New Issue
Block a user