Răsfoiți Sursa

add requirements file for pyinstaller

make it easy to change pyinstaller version.
Thomas Waldmann 21 ore în urmă
părinte
comite
98aa125386
3 a modificat fișierele cu 5 adăugiri și 4 ștergeri
  1. 3 3
      .github/workflows/ci.yml
  2. 1 1
      Vagrantfile
  3. 1 0
      requirements.d/pyinstaller.txt

+ 3 - 3
.github/workflows/ci.yml

@@ -279,7 +279,7 @@ jobs:
     - name: Build Borg fat binaries (${{ matrix.binary }})
       if: ${{ matrix.binary && startsWith(github.ref, 'refs/tags/') }}
       run: |
-        pip install 'pyinstaller==6.14.2'
+        pip install -r requirements.d/pyinstaller.txt
         mkdir -p dist/binary
         # Ensure locally built binaries in ./dist/binary are found during tox tests
         echo "$GITHUB_WORKSPACE/dist/binary" >> "$GITHUB_PATH"
@@ -429,7 +429,7 @@ jobs:
                 tox -e py311-mfusepy
 
                 if [[ "${{ matrix.do_binaries }}" == "true" && "${{ startsWith(github.ref, 'refs/tags/') }}" == "true" ]]; then
-                  python -m pip install 'pyinstaller==6.14.2'
+                  python -m pip install -r requirements.d/pyinstaller.txt
                   mkdir -p dist/binary
                   pyinstaller --clean --distpath=dist/binary scripts/borg.exe.spec
                   pushd dist/binary
@@ -576,7 +576,7 @@ jobs:
           . env/bin/activate
           # python -m pip install --upgrade pip
           # pip install --upgrade setuptools build wheel
-          pip install pyinstaller==6.14.2
+          pip install -r requirements.d/pyinstaller.txt
 
       - name: Build
         run: |

+ 1 - 1
Vagrantfile

@@ -206,7 +206,7 @@ def install_pyinstaller()
     . ~/.bash_profile
     cd /vagrant/borg
     . borg-env/bin/activate
-    pip install 'pyinstaller==6.14.2'
+    pip install -r requirements.d/pyinstaller.txt
   EOF
 end
 

+ 1 - 0
requirements.d/pyinstaller.txt

@@ -0,0 +1 @@
+pyinstaller==6.14.2