From 5b022599b45bd4f9e3580d2b6181a17cf87652e2 Mon Sep 17 00:00:00 2001 From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Date: Sun, 26 Apr 2020 22:42:02 -0700 Subject: [PATCH] Add build requirements.txt --- .github/workflows/publish-release.yml | 8 ++++---- package/requirements-macos.txt | 4 ++++ package/requirements-windows.txt | 4 ++++ 3 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 package/requirements-macos.txt create mode 100644 package/requirements-windows.txt diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index ec29d732..586dee45 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -30,13 +30,13 @@ jobs: uses: actions/cache@v1 with: path: ~\AppData\Local\pip\Cache - key: ${{ runner.os }}-pip-${{ steps.get_version.outputs.VERSION }} + key: ${{ runner.os }}-pip-${{ hashFiles('package/requirements-windows.txt') }} restore-keys: ${{ runner.os }}-pip- - name: Install Dependencies run: | python -m pip install --upgrade pip - pip install pyopenssl pycryptodomex pywin32 pyinstaller + pip install -r package/requirements-windows.txt - name: Build Package run: | @@ -89,13 +89,13 @@ jobs: uses: actions/cache@v1 with: path: ~/Library/Caches/pip - key: ${{ runner.os }}-pip-${{ steps.get_version.outputs.VERSION }} + key: ${{ runner.os }}-pip-${{ hashFiles('package/requirements-macos.txt') }} restore-keys: ${{ runner.os }}-pip- - name: Install Dependencies run: | python -m pip install --upgrade pip - pip install pyopenssl pycryptodomex pyinstaller pyobjc + pip install -r package/requirements-macos.txt - name: Build Package run: | diff --git a/package/requirements-macos.txt b/package/requirements-macos.txt new file mode 100644 index 00000000..f938a3ec --- /dev/null +++ b/package/requirements-macos.txt @@ -0,0 +1,4 @@ +pyinstaller +pyopenssl +pycryptodomex +pyobjc \ No newline at end of file diff --git a/package/requirements-windows.txt b/package/requirements-windows.txt new file mode 100644 index 00000000..1a9aa4fb --- /dev/null +++ b/package/requirements-windows.txt @@ -0,0 +1,4 @@ +pyinstaller +pyopenssl +pycryptodomex +pywin32 \ No newline at end of file