Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
9989bbf
see if this installs and uses poetry
May 12, 2023
9079e4b
fix bug from https://stackoverflow.com/questions/76175361/firebase-au…
May 12, 2023
7c132a4
does this do the poetry steps?
May 12, 2023
8bee859
give different name
May 12, 2023
ba25dad
this should fail right?
MitchellThompkins May 12, 2023
124aaa0
run on this branch
MitchellThompkins May 12, 2023
2c90786
just do this all the time
MitchellThompkins May 12, 2023
8e3415d
try to run poetry
MitchellThompkins May 12, 2023
318e7be
add tk
MitchellThompkins May 12, 2023
1f7ec58
intall tk
MitchellThompkins May 12, 2023
5e7add6
I don't think this will be any different
MitchellThompkins May 12, 2023
df46fde
revert this
MitchellThompkins May 12, 2023
07924bd
install things globally
MitchellThompkins May 12, 2023
a983ca4
move things around
MitchellThompkins May 12, 2023
7e52ff3
follow instructions from https://github.com/pmgagne/tkinterdnd2/tree/…
MitchellThompkins May 12, 2023
fd04dc5
ignore this file
MitchellThompkins May 12, 2023
87a0b3b
try without collect
MitchellThompkins May 12, 2023
c770551
do we really need this?
MitchellThompkins May 12, 2023
84e989f
definitely do need this, you get errors about being able to find tkin…
MitchellThompkins May 15, 2023
79759a8
got rid of gemoetry re-sizing, let tkinter figure it out, added poetr…
MitchellThompkins May 15, 2023
5641451
run tests on osx
MitchellThompkins May 15, 2023
cdd47e3
fix syntax errors
MitchellThompkins May 15, 2023
c2ab7cf
remove sudo?
MitchellThompkins May 15, 2023
18078c5
be explicit
MitchellThompkins May 15, 2023
025c095
add step
MitchellThompkins May 15, 2023
7e33fad
can't figure out path on mac, what if I explicity invoke poetry
MitchellThompkins May 15, 2023
a220c65
update pytest
MitchellThompkins May 15, 2023
e840e44
update readme
MitchellThompkins May 15, 2023
a2ddca8
updated changelog and version'
MitchellThompkins May 17, 2023
7466724
continue updating change log and update version
MitchellThompkins May 17, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ exclude =
dist/
.git/
.venv/
hook-tkinterdnd2.py
17 changes: 8 additions & 9 deletions .github/workflows/build_app.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
name: build-app

on:
workflow_run:
workflows: [test]
types: [completed]
on: [push]

jobs:
build-executable:
runs-on: macos-12
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Install dependencies
run: python3 -m pip install pyinstaller Pillow
- name: Install build dependencies
run: python3 -m pip install pyinstaller Pillow tk

- name: Install project deps
run: python3 -m pip install .

- name: Package pyinstaller
run: pyinstaller src/rclone_decrypt/gui.py --onefile --windowed --collect-all tkinterdnd2 --icon=docs/imgs/rd.ico --name rclone-decrypt
run: pyinstaller src/rclone_decrypt/gui.py --onefile --windowed --additional-hooks-dir=. --icon=docs/imgs/rd.ico --name rclone-decrypt

- uses: actions/upload-artifact@v3
with:
Expand Down
25 changes: 21 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: test
on: [push]

jobs:
test:
test-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

# Taken mostly from https://jacobian.org/til/github-actions-poetry/
- uses: actions/setup-python@v2
Expand All @@ -17,11 +17,11 @@ jobs:
uses: actions/cache@v2
with:
path: ~/.local
key: poetry-1.1.12-0
key: poetry-1.4.2

- uses: snok/install-poetry@v1
with:
version: 1.1.12
version: 1.4.2
virtualenvs-create: true
virtualenvs-in-project: true

Expand All @@ -46,3 +46,20 @@ jobs:

- name: Run unit tests
run: poetry run pytest

test-macos:
runs-on: macos-12
steps:
- uses: actions/checkout@v3

- name: Install rclone
run: curl https://rclone.org/install.sh | sudo bash

- name: Install poetry
run: curl -sSL https://install.python-poetry.org | python3 -

- name: Install poetry dependencies
run: $HOME/Library/Application\ Support/pypoetry/venv/bin/poetry install

- name: Run tests
run: $HOME/Library/Application\ Support/pypoetry/venv/bin/poetry run pytest
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
*.swp
*.swo
*.pyc
*.spec
tags
Expand Down
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@
All notable changes to this project will be documented in this file.

## [Unreleased]
### Changed
- Removes dependency on build-app on test completion
- Added job to allow tests to run on macos
- Added `hook-tkinterdnd2.py` file to allow pyinstaller to install all
necessary tkinterdnd2 files
- Modified build-app to install dependencies for pyinstaller
- Added settings to force venv to be generated in the project directory
- Removed geometry specification from file, instead let tk decide the window
size
- Updates checkout to v3

## [0.1.1] - 2021-04-28
### Changed
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ pip3 install rclone-decrypt
* `Python-tk` must be installed if using the GUI

### Executable
**UNDER DEVELOPMENT** An OSX `.app` is generated but is currently untested.
An OSX `.app` is generated and the artifact can be downloaded.

## Usage
### CLI usage
Expand All @@ -77,7 +77,8 @@ and executed directly.
rclone-decrypt --gui
```

![rclone_example](docs/imgs/rclone_gui.png)
![rclone_example](docs/imgs/rclone_gui_linux.png)
![rclone_example](docs/imgs/rclone_gui_macos.png)

## Development
```
Expand Down
File renamed without changes
Binary file added docs/imgs/rclone_gui_macos.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions hook-tkinterdnd2.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
"""pyinstaller hook file.

You need to use this hook-file if you are packaging a project using tkinterdnd2.
Just put hook-tkinterdnd2.py in the same directory where you call pyinstaller and type:

pyinstaller myproject/myproject.py --additional-hooks-dir=.
"""

from PyInstaller.utils.hooks import collect_data_files, eval_statement


datas = collect_data_files('tkinterdnd2')
Loading