summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCalum Lind <calumlind+deluge@gmail.com>2022-01-21 11:28:35 +0000
committerCalum Lind <calumlind+deluge@gmail.com>2022-01-21 12:53:54 +0000
commit9d4ca77ef7ebf1b3e39b837a0f31cec3da110760 (patch)
tree05dcfb8eaff3f22b5e422bfbb95a75dd26529965
parentad27a278fd2b246c9c8aa30ca1887c11ca5bb712 (diff)
downloaddeluge-9d4ca77ef7ebf1b3e39b837a0f31cec3da110760.tar.gz
deluge-9d4ca77ef7ebf1b3e39b837a0f31cec3da110760.tar.bz2
deluge-9d4ca77ef7ebf1b3e39b837a0f31cec3da110760.zip
[CI] Cleanup packaging dependencies
-rw-r--r--.github/workflows/cd.yml31
1 files changed, 18 insertions, 13 deletions
diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml
index b3f710af7..ce2071912 100644
--- a/.github/workflows/cd.yml
+++ b/.github/workflows/cd.yml
@@ -45,30 +45,35 @@ jobs:
${{ runner.os }}-pip-
${{ runner.os }}-
- - name: Install dependencies
+ - name: Prepare pip
+ run: python -m pip install --upgrade pip wheel
+
+ - name: Install GTK
run: |
$WebClient = New-Object System.Net.WebClient
$WebClient.DownloadFile("https://github.com/deluge-torrent/gvsbuild-release/releases/download/latest/gvsbuild-py${{ matrix.python }}-vs16-${{ matrix.arch }}.zip","C:\GTK.zip")
7z x C:\GTK.zip -oc:\GTK
- $env:Path = "C:\GTK\release;C:\GTK\release\bin;C:\GTK\release\lib;$env:Path"
- python -m pip install --upgrade pip wheel
- $pycairopath = Get-Childitem –Path "C:\GTK\release\python\" -Include pycairo*.whl -File -Recurse -ErrorAction SilentlyContinue | select -expand FullName
- $PyGObjectpath = Get-Childitem –Path "C:\GTK\release\python\" -Include PyGObject*.whl -File -Recurse -ErrorAction SilentlyContinue | select -expand FullName
- pip install $pycairopath
- pip install $PyGObjectpath
- pip install https://github.com/doadin/twisted/releases/download/latest/Twisted-21.7.0.post0-py3-none-any.whl
- python -m pip install libtorrent==${{ matrix.libtorrent }}
- pip install -r requirements.txt
- pip install pyinstaller
+ echo "C:\GTK\release\lib" | Out-File -FilePath $env:GITHUB_PATH -Append
+ echo "C:\GTK\release\bin" | Out-File -FilePath $env:GITHUB_PATH -Append
+ echo "C:\GTK\release" | Out-File -FilePath $env:GITHUB_PATH -Append
+
+ - name: Install Python dependencies
+ run: >
+ python -m pip install --find-links="C:\GTK\release\python" pycairo PyGObject
+
+ python -m pip install
+ https://github.com/doadin/twisted/releases/download/latest/Twisted-21.7.0.post0-py3-none-any.whl
+ libtorrent==${{ matrix.libtorrent }}
+ pyinstaller
+ -r requirements.txt
- name: Install Deluge
run: |
- pip install .
+ python -m pip install .
python setup.py install_scripts
- name: Freeze Deluge
run: |
- $env:Path = "C:\GTK\release;C:\GTK\release\bin;C:\GTK\release\lib;$env:Path"
pyinstaller --clean $env:GITHUB_WORKSPACE\packaging\win\delugewin.spec --distpath $env:GITHUB_WORKSPACE\packaging\win\freeze
- name: Fix OpenSSL For Libtorrent