Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bump version 0.3.3 #76

Merged
merged 2 commits into from
Apr 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
10 changes: 3 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -78,17 +78,13 @@ lint: ## run linters on codebase
prospector torrentfileQt
prospector tests

coverage: ## run coverage on project
pytest tests --cov=torrentfileQt --cov tests
coverage report
coverage xml -o coverage.xml
bash codacy.sh report -r coverage.xml

test: ## run tests quickly with the default Python
pip install --upgrade --force-reinstall --no-cache -rrequirements.txt
pytest tests --cov=torrentfileQt --cov=tests
coverage report
coverage xml -o coverage.xml

push: clean lint coverage test ## push changes to remote
push: clean lint test ## push changes to remote
git add .
git commit -m "$m"
git push
Expand Down
131 changes: 69 additions & 62 deletions coverage.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" ?>
<coverage version="6.3.2" timestamp="1648757446830" lines-valid="2040" lines-covered="2040" line-rate="1" branches-covered="0" branches-valid="0" branch-rate="0" complexity="0">
<coverage version="6.3.2" timestamp="1650239136726" lines-valid="2047" lines-covered="2047" line-rate="1" branches-covered="0" branches-valid="0" branch-rate="0" complexity="0">
<!-- Generated by coverage.py: https://coverage.readthedocs.io -->
<!-- Based on https://raw.githubusercontent.com/cobertura/web/master/htdocs/xml/coverage-04.dtd -->
<sources>
Expand Down Expand Up @@ -158,8 +158,8 @@
<line number="53" hits="1"/>
<line number="54" hits="1"/>
<line number="55" hits="1"/>
<line number="58" hits="1"/>
<line number="60" hits="1"/>
<line number="56" hits="1"/>
<line number="59" hits="1"/>
<line number="61" hits="1"/>
<line number="62" hits="1"/>
<line number="63" hits="1"/>
Expand All @@ -169,8 +169,8 @@
<line number="67" hits="1"/>
<line number="68" hits="1"/>
<line number="69" hits="1"/>
<line number="72" hits="1"/>
<line number="74" hits="1"/>
<line number="70" hits="1"/>
<line number="73" hits="1"/>
<line number="75" hits="1"/>
<line number="76" hits="1"/>
<line number="77" hits="1"/>
Expand All @@ -189,9 +189,9 @@
<line number="90" hits="1"/>
<line number="91" hits="1"/>
<line number="92" hits="1"/>
<line number="95" hits="1"/>
<line number="106" hits="1"/>
<line number="108" hits="1"/>
<line number="93" hits="1"/>
<line number="96" hits="1"/>
<line number="107" hits="1"/>
<line number="109" hits="1"/>
<line number="110" hits="1"/>
<line number="111" hits="1"/>
Expand All @@ -203,7 +203,7 @@
<line number="117" hits="1"/>
<line number="118" hits="1"/>
<line number="119" hits="1"/>
<line number="122" hits="1"/>
<line number="120" hits="1"/>
<line number="123" hits="1"/>
<line number="124" hits="1"/>
<line number="125" hits="1"/>
Expand All @@ -212,14 +212,15 @@
<line number="128" hits="1"/>
<line number="129" hits="1"/>
<line number="130" hits="1"/>
<line number="133" hits="1"/>
<line number="135" hits="1"/>
<line number="131" hits="1"/>
<line number="134" hits="1"/>
<line number="136" hits="1"/>
<line number="137" hits="1"/>
<line number="138" hits="1"/>
<line number="139" hits="1"/>
<line number="140" hits="1"/>
<line number="141" hits="1"/>
<line number="142" hits="1"/>
</lines>
</class>
<class name="test_edittab.py" filename="tests/test_edittab.py" complexity="0" line-rate="1" branch-rate="0">
Expand Down Expand Up @@ -1177,104 +1178,108 @@
<line number="227" hits="1"/>
<line number="228" hits="1"/>
<line number="229" hits="1"/>
<line number="231" hits="1"/>
<line number="232" hits="1"/>
<line number="233" hits="1"/>
<line number="234" hits="1"/>
<line number="236" hits="1"/>
<line number="237" hits="1"/>
<line number="238" hits="1"/>
<line number="239" hits="1"/>
<line number="240" hits="1"/>
<line number="241" hits="1"/>
<line number="242" hits="1"/>
<line number="243" hits="1"/>
<line number="244" hits="1"/>
<line number="245" hits="1"/>
<line number="247" hits="1"/>
<line number="248" hits="1"/>
<line number="249" hits="1"/>
<line number="250" hits="1"/>
<line number="251" hits="1"/>
<line number="252" hits="1"/>
<line number="254" hits="1"/>
<line number="255" hits="1"/>
<line number="256" hits="1"/>
<line number="258" hits="1"/>
<line number="257" hits="1"/>
<line number="260" hits="1"/>
<line number="261" hits="1"/>
<line number="263" hits="1"/>
<line number="266" hits="1"/>
<line number="265" hits="1"/>
<line number="268" hits="1"/>
<line number="269" hits="1"/>
<line number="270" hits="1"/>
<line number="271" hits="1"/>
<line number="272" hits="1"/>
<line number="273" hits="1"/>
<line number="274" hits="1"/>
<line number="275" hits="1"/>
<line number="285" hits="1"/>
<line number="286" hits="1"/>
<line number="287" hits="1"/>
<line number="288" hits="1"/>
<line number="276" hits="1"/>
<line number="277" hits="1"/>
<line number="278" hits="1"/>
<line number="280" hits="1"/>
<line number="290" hits="1"/>
<line number="291" hits="1"/>
<line number="294" hits="1"/>
<line number="292" hits="1"/>
<line number="293" hits="1"/>
<line number="296" hits="1"/>
<line number="297" hits="1"/>
<line number="298" hits="1"/>
<line number="299" hits="1"/>
<line number="300" hits="1"/>
<line number="301" hits="1"/>
<line number="302" hits="1"/>
<line number="303" hits="1"/>
<line number="311" hits="1"/>
<line number="304" hits="1"/>
<line number="305" hits="1"/>
<line number="306" hits="1"/>
<line number="308" hits="1"/>
<line number="316" hits="1"/>
<line number="317" hits="1"/>
<line number="318" hits="1"/>
<line number="319" hits="1"/>
<line number="320" hits="1"/>
<line number="321" hits="1"/>
<line number="322" hits="1"/>
<line number="323" hits="1"/>
<line number="324" hits="1"/>
<line number="325" hits="1"/>
<line number="326" hits="1"/>
<line number="327" hits="1"/>
<line number="328" hits="1"/>
<line number="329" hits="1"/>
<line number="330" hits="1"/>
<line number="331" hits="1"/>
<line number="332" hits="1"/>
<line number="333" hits="1"/>
<line number="336" hits="1"/>
<line number="334" hits="1"/>
<line number="335" hits="1"/>
<line number="338" hits="1"/>
<line number="339" hits="1"/>
<line number="340" hits="1"/>
<line number="341" hits="1"/>
<line number="342" hits="1"/>
<line number="343" hits="1"/>
<line number="344" hits="1"/>
<line number="345" hits="1"/>
<line number="353" hits="1"/>
<line number="346" hits="1"/>
<line number="347" hits="1"/>
<line number="348" hits="1"/>
<line number="350" hits="1"/>
<line number="358" hits="1"/>
<line number="359" hits="1"/>
<line number="360" hits="1"/>
<line number="361" hits="1"/>
<line number="362" hits="1"/>
<line number="363" hits="1"/>
<line number="364" hits="1"/>
<line number="365" hits="1"/>
<line number="366" hits="1"/>
<line number="367" hits="1"/>
<line number="368" hits="1"/>
<line number="369" hits="1"/>
<line number="372" hits="1"/>
<line number="370" hits="1"/>
<line number="373" hits="1"/>
<line number="374" hits="1"/>
<line number="375" hits="1"/>
<line number="376" hits="1"/>
<line number="377" hits="1"/>
<line number="378" hits="1"/>
<line number="379" hits="1"/>
<line number="382" hits="1"/>
<line number="380" hits="1"/>
<line number="381" hits="1"/>
<line number="384" hits="1"/>
<line number="385" hits="1"/>
<line number="386" hits="1"/>
<line number="387" hits="1"/>
<line number="389" hits="1"/>
<line number="390" hits="1"/>
<line number="391" hits="1"/>
<line number="392" hits="1"/>
<line number="393" hits="1"/>
<line number="394" hits="1"/>
<line number="395" hits="1"/>
<line number="397" hits="1"/>
<line number="398" hits="1"/>
<line number="399" hits="1"/>
<line number="400" hits="1"/>
<line number="402" hits="1"/>
<line number="403" hits="1"/>
<line number="404" hits="1"/>
</lines>
</class>
<class name="editorTab.py" filename="torrentfileQt/editorTab.py" complexity="0" line-rate="1" branch-rate="0">
Expand Down Expand Up @@ -1429,9 +1434,9 @@
<line number="230" hits="1"/>
<line number="231" hits="1"/>
<line number="232" hits="1"/>
<line number="233" hits="1"/>
<line number="234" hits="1"/>
<line number="238" hits="1"/>
<line number="239" hits="1"/>
<line number="236" hits="1"/>
<line number="240" hits="1"/>
<line number="241" hits="1"/>
<line number="242" hits="1"/>
Expand All @@ -1445,36 +1450,36 @@
<line number="250" hits="1"/>
<line number="251" hits="1"/>
<line number="252" hits="1"/>
<line number="253" hits="1"/>
<line number="254" hits="1"/>
<line number="255" hits="1"/>
<line number="256" hits="1"/>
<line number="257" hits="1"/>
<line number="258" hits="1"/>
<line number="259" hits="1"/>
<line number="261" hits="1"/>
<line number="273" hits="1"/>
<line number="274" hits="1"/>
<line number="263" hits="1"/>
<line number="275" hits="1"/>
<line number="276" hits="1"/>
<line number="277" hits="1"/>
<line number="278" hits="1"/>
<line number="279" hits="1"/>
<line number="280" hits="1"/>
<line number="283" hits="1"/>
<line number="286" hits="1"/>
<line number="289" hits="1"/>
<line number="282" hits="1"/>
<line number="285" hits="1"/>
<line number="288" hits="1"/>
<line number="291" hits="1"/>
<line number="292" hits="1"/>
<line number="293" hits="1"/>
<line number="294" hits="1"/>
<line number="295" hits="1"/>
<line number="296" hits="1"/>
<line number="298" hits="1"/>
<line number="299" hits="1"/>
<line number="300" hits="1"/>
<line number="301" hits="1"/>
<line number="302" hits="1"/>
<line number="303" hits="1"/>
<line number="304" hits="1"/>
<line number="305" hits="1"/>
<line number="307" hits="1"/>
<line number="308" hits="1"/>
<line number="309" hits="1"/>
<line number="310" hits="1"/>
<line number="311" hits="1"/>
Expand All @@ -1489,13 +1494,15 @@
<line number="320" hits="1"/>
<line number="321" hits="1"/>
<line number="322" hits="1"/>
<line number="323" hits="1"/>
<line number="324" hits="1"/>
<line number="326" hits="1"/>
<line number="327" hits="1"/>
<line number="328" hits="1"/>
<line number="329" hits="1"/>
<line number="330" hits="1"/>
<line number="331" hits="1"/>
<line number="332" hits="1"/>
<line number="333" hits="1"/>
<line number="334" hits="1"/>
</lines>
</class>
<class name="infoTab.py" filename="torrentfileQt/infoTab.py" complexity="0" line-rate="1" branch-rate="0">
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "torrentfileqt",
"displayName": "TorrentfileQt",
"version": "0.3.2",
"version": "0.3.3",
"description": "GUI torrentfile creator.",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
wheel
setuptools
torrentfile==0.7.0
torrentfile==0.7.6
PySide6
pyben
2 changes: 1 addition & 1 deletion tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
from pathlib import Path

import pytest
from torrentfile import TorrentFile, TorrentFileHybrid, TorrentFileV2
from torrentfile.torrent import TorrentFile, TorrentFileHybrid, TorrentFileV2

from torrentfileQt import alt_start

Expand Down
4 changes: 2 additions & 2 deletions tests/test_checktab.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,6 @@ def test_singlefile(size, ext, index, version, wind):
checktab.fileInput.setText(metafile)
checktab.searchInput.setText(tfile)
checktab.checkButton.click()
ptext = checktab.textEdit.toPlainText()
assert "100%" in ptext
widges = checktab.treeWidget.itemWidgets
assert all(i.total == i.value for i in widges.values())
rmpath(tfile, metafile)
1 change: 1 addition & 0 deletions tests/test_createTab.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ def test_create_with_hasher1(dir2, wind):
creator.path_input.clear()
creator.path_input.setText(dir2)
creator.output_input.clear()
creator.web_seed_input.setPlainText("url1")
creator.output_input.setText(metafile)
creator.v1button.setChecked(True)
creator.piece_length.setCurrentIndex(2)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_infotab.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"""Testing module for most of GUI."""

import pytest
from torrentfile import TorrentFile, TorrentFileHybrid, TorrentFileV2
from torrentfile.torrent import TorrentFile, TorrentFileHybrid, TorrentFileV2

from tests import dir2, dir3, rmpath, tempfile, ttorrent, wind, MockEvent

Expand Down
2 changes: 1 addition & 1 deletion tests/test_magnettab.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"""Testing module for most of GUI."""

import pytest
from torrentfile import TorrentFile
from torrentfile.torrent import TorrentFile
from torrentfile import magnet

from tests import dir1, rmpath, tempfile, wind, MockEvent, ttorrent, dir2
Expand Down
7 changes: 6 additions & 1 deletion torrentfileQt/createTab.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
QHBoxLayout, QLabel, QLineEdit, QPlainTextEdit,
QPushButton, QRadioButton, QSpacerItem,
QToolButton, QWidget)
from torrentfile import TorrentFile, TorrentFileHybrid, TorrentFileV2
from torrentfile.torrent import TorrentFile, TorrentFileHybrid, TorrentFileV2
from torrentfile.utils import path_piece_length

from torrentfileQt.qss import pushButtonEdit
Expand Down Expand Up @@ -228,6 +228,11 @@ def submit(self):
if announce:
args["announce"] = announce

url_list = self.widget.web_seed_input.toPlainText()
url_list = [i for i in url_list.split('\n') if i]
if url_list:
args['url_list'] = url_list

# Calculates piece length if not specified by user.
outtext = os.path.realpath(self.widget.output_input.text())
if outtext:
Expand Down
Loading