Skip to content

Commit

Permalink
v0.4.1 (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpdev authored Feb 10, 2023
1 parent a4427e9 commit c5be154
Show file tree
Hide file tree
Showing 27 changed files with 1,350 additions and 1,222 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# TorrentFileQt

## Version 0.4.1

- Bug fixes from the 0.4.0 update
- Additional tests and coverage gaps
- Fixed issues with saving in editor and bencode tab

* * *

## Version 0.4.0

- complete refactor, review and overhaul of ui
Expand Down
43 changes: 3 additions & 40 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,40 +1,4 @@
.PHONY: clean help full
.DEFAULT_GOAL := help

define BROWSER_PYSCRIPT
import os, webbrowser, sys

from urllib.request import pathname2url

webbrowser.open("file://" + pathname2url(os.path.abspath(sys.argv[1])))
endef
export BROWSER_PYSCRIPT

define PRINT_HELP_PYSCRIPT
import re, sys

for line in sys.stdin:
match = re.match(r'^([a-zA-Z_-]+):.*?## (.*)$$', line)
if match:
target, help = match.groups()
print("%-20s %s" % (target, help))
endef
export PRINT_HELP_PYSCRIPT

define CHANGE_NAME
import os
from zipfile import ZipFile
from torrentfileQt.version import __version__
zfile = ZipFile(f"./bin/torrentfileQt-v{__version__}-WIN.zip", mode="w")
zfile.write("./bin/dist/torrentfileQt.exe", "torrentfileQt.exe")
zfile.close()
endef
export CHANGE_NAME

BROWSER := python -c "$$BROWSER_PYSCRIPT"

help:
@python -c "$$PRINT_HELP_PYSCRIPT" < $(MAKEFILE_LIST)
.PHONY: clean

clean: clean-build ## remove all build, test, coverage and Python artifacts

Expand Down Expand Up @@ -73,11 +37,10 @@ release: clean test ## release to pypi
py -m build .
twine upload dist/*

build: install clean test ## build executable file
build: clean test ## build executable file
py -m build .
pip install -e .
cd bin && pyinstaller exec.spec
python -c "$$CHANGE_NAME"
pyinstaller app.spec

install: ## Fresh install from PyPi
python -m pip install --upgrade --force-reinstall --no-cache torrentfileQt
7 changes: 1 addition & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ TorrentFileQt is a GUI Frontend for [TorrentFile CLI](https://github.com/alexpde

## Usage Overview

![edittorrent.png](https://raw.githubusercontent.com/alexpdev/torrentfileQt/main/assets/TorrentFileQt.gif)
![torrentfileQt](./assets/TorrentfileQt.gif)

* * *

Expand Down Expand Up @@ -64,11 +64,6 @@ torrentfileQt

To report a bug or ask for a new feature please [open an issue](https://github.com/alexpdev/torrentfileQt/issues) on github.

| Known Issues |
| ------------- |
| The bencode editor is more of a bencode viewer at the moment. You can remove, add and edit fields in the window, but there are still some bugs to work out in the saving process |


## License

[Apache 2.0 Software License](./LICENSE)
45 changes: 45 additions & 0 deletions app.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# -*- mode: python ; coding: utf-8 -*-


block_cipher = None


a = Analysis(
['main.py'],
pathex=[],
binaries=[],
datas=[('torrentfileQt/assets', 'assets')],
hiddenimports=[],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False,
)
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)

exe = EXE(
pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
[],
name='torrentfileQt',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=False,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
icon=['assets\\torrentfile.ico'],
)
Binary file modified assets/TorrentfileQt.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 0 additions & 3 deletions bin/exec

This file was deleted.

48 changes: 0 additions & 48 deletions bin/exec.spec

This file was deleted.

Loading

0 comments on commit c5be154

Please sign in to comment.