Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • pushkarnk/onionshare
  • hefee/onionshare
  • pkg-privacy-team/onionshare
3 results
Show changes
Commits on Source (11)
Showing
with 51 additions and 27 deletions
onionshare (2.6.2-1) UNRELEASED; urgency=medium onionshare (2.6.2-1) unstable; urgency=medium
* Team upload.
[ Sandro Knauß ] [ Sandro Knauß ]
* New upstream release 2.6.2. * New upstream release 2.6.2.
* Add missing dependencies for tests. * Add missing dependencies for tests.
* Bump Standards-Version to 4.6.2 (no changes needed). * Bump Standards-Version to 4.7.0 (no changes needed).
* Set upstream metadata fields: Bug-Submit. * Set upstream metadata fields: Bug-Submit.
* Update patch hunks. * Update patch hunks.
* Add patches to use QtPy instead of PySide6. * Add patches to use QtPy instead of PySide6.
...@@ -12,8 +13,11 @@ onionshare (2.6.2-1) UNRELEASED; urgency=medium ...@@ -12,8 +13,11 @@ onionshare (2.6.2-1) UNRELEASED; urgency=medium
* Actually make pybuild to execute the tests successfully. * Actually make pybuild to execute the tests successfully.
* Do not install onionshare_cli script within onionshre package. * Do not install onionshare_cli script within onionshre package.
* Remove 0002-werkzeug-3.0.1-compat.patch: 2.6.1 already use Flask 3.X. * Remove 0002-werkzeug-3.0.1-compat.patch: 2.6.1 already use Flask 3.X.
* Autopkgtest for checking if we use PyQt and not PySide2/6.
* Update copyright year.
* Delete not needed lintian-overrides
-- Sandro Knauß <hefee@debian.org> Thu, 02 May 2024 21:01:45 +0200 -- Sandro Knauß <hefee@debian.org> Fri, 03 May 2024 01:57:53 +0200
onionshare (2.6-7) unstable; urgency=medium onionshare (2.6-7) unstable; urgency=medium
......
...@@ -35,7 +35,7 @@ Build-Depends: ...@@ -35,7 +35,7 @@ Build-Depends:
tor <!nocheck>, tor <!nocheck>,
xauth <!nocheck>, xauth <!nocheck>,
xvfb <!nocheck> xvfb <!nocheck>
Standards-Version: 4.6.2 Standards-Version: 4.7.0
Homepage: https://onionshare.org Homepage: https://onionshare.org
Vcs-Git: https://salsa.debian.org/pkg-privacy-team/onionshare.git Vcs-Git: https://salsa.debian.org/pkg-privacy-team/onionshare.git
Vcs-Browser: https://salsa.debian.org/pkg-privacy-team/onionshare Vcs-Browser: https://salsa.debian.org/pkg-privacy-team/onionshare
......
...@@ -4,11 +4,11 @@ Source: https://github.com/onionshare/onionshare ...@@ -4,11 +4,11 @@ Source: https://github.com/onionshare/onionshare
Upstream-Contact: https://github.com/onionshare/onionshare/issues Upstream-Contact: https://github.com/onionshare/onionshare/issues
Files: * Files: *
Copyright: 2014-2022, Micah Lee <micah@micahflee.com> Copyright: 2014-2024, Micah Lee <micah@micahflee.com>
License: GPL-3.0+ License: GPL-3.0+
Files: debian/* Files: debian/*
Copyright: 2014-2022, Debian Privacy Tools Maintainers <pkg-privacy-maintainers@lists.alioth.debian.org> Copyright: 2014-2024, Debian Privacy Tools Maintainers <pkg-privacy-maintainers@lists.alioth.debian.org>
License: GPL-3.0 License: GPL-3.0
Files: cli/onionshare_cli/resources/static/js/jquery-3.5.1.min.js Files: cli/onionshare_cli/resources/static/js/jquery-3.5.1.min.js
......
# we need a special jquery versian and we ship the source in debian/missing-sources/ # we need a special jquery versian and we ship the source in debian/missing-sources/
embedded-javascript-library please use libjs-jquery * embedded-javascript-library please use libjs-jquery *
# That are actuall resource files and no documenation # That are actuall resource files and no documentation
package-contains-documentation-outside-usr-share-doc [usr/share/onionshare-cli/version.txt] package-contains-documentation-outside-usr-share-doc [usr/share/onionshare-cli/version.txt]
package-contains-documentation-outside-usr-share-doc [usr/share/onionshare-cli/wordlist.txt] package-contains-documentation-outside-usr-share-doc [usr/share/onionshare-cli/wordlist.txt]
...@@ -8,13 +8,14 @@ Forwarded: not-needed ...@@ -8,13 +8,14 @@ Forwarded: not-needed
1 file changed, 1 insertion(+), 1 deletion(-) 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cli/pyproject.toml b/cli/pyproject.toml diff --git a/cli/pyproject.toml b/cli/pyproject.toml
index 5b458aa..bc5dcdd 100644 index 5b8c302..fd7690f 100644
--- a/cli/pyproject.toml --- a/cli/pyproject.toml
+++ b/cli/pyproject.toml +++ b/cli/pyproject.toml
@@ -18,7 +18,7 @@ classifiers = [ @@ -18,7 +18,7 @@ classifiers = [
[tool.poetry.dependencies] [tool.poetry.dependencies]
python = ">=3.8,<3.12" python = ">=3.8,<3.12"
click = "*" click = "*"
-flask = "2.3.2"
+flask = "3.*" +flask = "3.*"
flask-compress = "^1.13" flask-compress = "^1.13"
flask-socketio = "5.3.4" flask-socketio = "5.3.4"
......
...@@ -2,6 +2,7 @@ From: =?utf-8?q?Sandro_Knau=C3=9F?= <hefee@debian.org> ...@@ -2,6 +2,7 @@ From: =?utf-8?q?Sandro_Knau=C3=9F?= <hefee@debian.org>
Date: Wed, 6 Mar 2024 03:38:26 +0100 Date: Wed, 6 Mar 2024 03:38:26 +0100
Subject: Use QtPy instead of directly PySide6. Subject: Use QtPy instead of directly PySide6.
Forwarded: https://github.com/onionshare/onionshare/pull/1887
--- ---
desktop/onionshare/__init__.py | 6 +++--- desktop/onionshare/__init__.py | 6 +++---
desktop/onionshare/connection_tab.py | 2 +- desktop/onionshare/connection_tab.py | 2 +-
...@@ -169,7 +170,7 @@ index c03ecaa..ba99e8a 100644 ...@@ -169,7 +170,7 @@ index c03ecaa..ba99e8a 100644
from ... import strings from ... import strings
from ...widgets import Alert, AddFileDialog from ...widgets import Alert, AddFileDialog
diff --git a/desktop/onionshare/tab/mode/history.py b/desktop/onionshare/tab/mode/history.py diff --git a/desktop/onionshare/tab/mode/history.py b/desktop/onionshare/tab/mode/history.py
index 3afdfc1..1468b53 100644 index ad8af09..c8ec97c 100644
--- a/desktop/onionshare/tab/mode/history.py --- a/desktop/onionshare/tab/mode/history.py
+++ b/desktop/onionshare/tab/mode/history.py +++ b/desktop/onionshare/tab/mode/history.py
@@ -22,7 +22,7 @@ import time @@ -22,7 +22,7 @@ import time
...@@ -178,9 +179,9 @@ index 3afdfc1..1468b53 100644 ...@@ -178,9 +179,9 @@ index 3afdfc1..1468b53 100644
from datetime import datetime from datetime import datetime
-from PySide6 import QtCore, QtWidgets, QtGui -from PySide6 import QtCore, QtWidgets, QtGui
+from qtpy import QtCore, QtWidgets, QtGui +from qtpy import QtCore, QtWidgets, QtGui
from urllib.parse import unquote
from ... import strings from ... import strings
from ...widgets import Alert
diff --git a/desktop/onionshare/tab/mode/mode_settings_widget.py b/desktop/onionshare/tab/mode/mode_settings_widget.py diff --git a/desktop/onionshare/tab/mode/mode_settings_widget.py b/desktop/onionshare/tab/mode/mode_settings_widget.py
index 9a8cd44..315adde 100644 index 9a8cd44..315adde 100644
--- a/desktop/onionshare/tab/mode/mode_settings_widget.py --- a/desktop/onionshare/tab/mode/mode_settings_widget.py
......
...@@ -2,12 +2,13 @@ From: =?utf-8?q?Sandro_Knau=C3=9F?= <hefee@debian.org> ...@@ -2,12 +2,13 @@ From: =?utf-8?q?Sandro_Knau=C3=9F?= <hefee@debian.org>
Date: Wed, 6 Mar 2024 20:59:01 +0100 Date: Wed, 6 Mar 2024 20:59:01 +0100
Subject: add dependency on QtPy instead of PySide6. Subject: add dependency on QtPy instead of PySide6.
Forwarded: https://github.com/onionshare/onionshare/pull/1887
--- ---
desktop/pyproject.toml | 2 +- desktop/pyproject.toml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-) 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/desktop/pyproject.toml b/desktop/pyproject.toml diff --git a/desktop/pyproject.toml b/desktop/pyproject.toml
index d5745ed..3e66570 100644 index 85a0c7d..69f554b 100644
--- a/desktop/pyproject.toml --- a/desktop/pyproject.toml
+++ b/desktop/pyproject.toml +++ b/desktop/pyproject.toml
@@ -8,7 +8,7 @@ license = "GPLv3+" @@ -8,7 +8,7 @@ license = "GPLv3+"
......
...@@ -25,10 +25,10 @@ index 9473d30..204d323 100644 ...@@ -25,10 +25,10 @@ index 9473d30..204d323 100644
painter.setBrush(QtGui.QColor(self.bg_color)) painter.setBrush(QtGui.QColor(self.bg_color))
painter.drawRoundedRect(x, y, self.w, self.h, self.h / 2, self.h / 2) painter.drawRoundedRect(x, y, self.w, self.h, self.h / 2, self.h / 2)
diff --git a/desktop/onionshare/tab/mode/history.py b/desktop/onionshare/tab/mode/history.py diff --git a/desktop/onionshare/tab/mode/history.py b/desktop/onionshare/tab/mode/history.py
index 1468b53..166bc15 100644 index c8ec97c..ad38754 100644
--- a/desktop/onionshare/tab/mode/history.py --- a/desktop/onionshare/tab/mode/history.py
+++ b/desktop/onionshare/tab/mode/history.py +++ b/desktop/onionshare/tab/mode/history.py
@@ -121,7 +121,7 @@ class ShareHistoryItem(HistoryItem): @@ -122,7 +122,7 @@ class ShareHistoryItem(HistoryItem):
self.progress_bar.setAttribute(QtCore.Qt.WA_DeleteOnClose) self.progress_bar.setAttribute(QtCore.Qt.WA_DeleteOnClose)
self.progress_bar.setAlignment(QtCore.Qt.AlignHCenter) self.progress_bar.setAlignment(QtCore.Qt.AlignHCenter)
self.progress_bar.setMinimum(0) self.progress_bar.setMinimum(0)
...@@ -37,7 +37,7 @@ index 1468b53..166bc15 100644 ...@@ -37,7 +37,7 @@ index 1468b53..166bc15 100644
self.progress_bar.setValue(0) self.progress_bar.setValue(0)
self.progress_bar.setStyleSheet( self.progress_bar.setStyleSheet(
self.common.gui.css["downloads_uploads_progress_bar"] self.common.gui.css["downloads_uploads_progress_bar"]
@@ -140,7 +140,7 @@ class ShareHistoryItem(HistoryItem): @@ -141,7 +141,7 @@ class ShareHistoryItem(HistoryItem):
def update(self, downloaded_bytes): def update(self, downloaded_bytes):
self.downloaded_bytes = downloaded_bytes self.downloaded_bytes = downloaded_bytes
...@@ -46,7 +46,7 @@ index 1468b53..166bc15 100644 ...@@ -46,7 +46,7 @@ index 1468b53..166bc15 100644
if (downloaded_bytes / 1024) == (self.progress_bar.total_bytes / 1024): if (downloaded_bytes / 1024) == (self.progress_bar.total_bytes / 1024):
pb_fmt = strings._("gui_all_modes_progress_complete").format( pb_fmt = strings._("gui_all_modes_progress_complete").format(
self.common.format_seconds(time.time() - self.started) self.common.format_seconds(time.time() - self.started)
@@ -392,8 +392,8 @@ class ReceiveHistoryItem(HistoryItem): @@ -393,8 +393,8 @@ class ReceiveHistoryItem(HistoryItem):
total_uploaded_bytes += data["progress"][filename]["uploaded_bytes"] total_uploaded_bytes += data["progress"][filename]["uploaded_bytes"]
# Update the progress bar # Update the progress bar
...@@ -57,7 +57,7 @@ index 1468b53..166bc15 100644 ...@@ -57,7 +57,7 @@ index 1468b53..166bc15 100644
elapsed = datetime.now() - self.started elapsed = datetime.now() - self.started
if elapsed.seconds < 10: if elapsed.seconds < 10:
@@ -526,7 +526,7 @@ class IndividualFileHistoryItem(HistoryItem): @@ -529,7 +529,7 @@ class IndividualFileHistoryItem(HistoryItem):
else: else:
self.total_bytes = data["filesize"] self.total_bytes = data["filesize"]
self.progress_bar.setMinimum(0) self.progress_bar.setMinimum(0)
...@@ -66,7 +66,7 @@ index 1468b53..166bc15 100644 ...@@ -66,7 +66,7 @@ index 1468b53..166bc15 100644
self.progress_bar.total_bytes = data["filesize"] self.progress_bar.total_bytes = data["filesize"]
# Start at 0 # Start at 0
@@ -535,7 +535,7 @@ class IndividualFileHistoryItem(HistoryItem): @@ -538,7 +538,7 @@ class IndividualFileHistoryItem(HistoryItem):
def update(self, downloaded_bytes): def update(self, downloaded_bytes):
self.downloaded_bytes = downloaded_bytes self.downloaded_bytes = downloaded_bytes
......
...@@ -7,7 +7,7 @@ Subject: Do not install onionshare_cli script. ...@@ -7,7 +7,7 @@ Subject: Do not install onionshare_cli script.
1 file changed, 1 deletion(-) 1 file changed, 1 deletion(-)
diff --git a/desktop/pyproject.toml b/desktop/pyproject.toml diff --git a/desktop/pyproject.toml b/desktop/pyproject.toml
index 3e66570..c979a3e 100644 index 69f554b..d4f0290 100644
--- a/desktop/pyproject.toml --- a/desktop/pyproject.toml
+++ b/desktop/pyproject.toml +++ b/desktop/pyproject.toml
@@ -28,4 +28,3 @@ build-backend = "poetry.core.masonry.api" @@ -28,4 +28,3 @@ build-backend = "poetry.core.masonry.api"
......
0001-Make-it-compatible-with-Flask-version-inside-Debian.patch 0001-Make-it-compatible-with-Flask-version-inside-Debian.patch
0002-Use-QtPy-instead-of-directly-PySide6.patch 0002-Use-QtPy-instead-of-directly-PySide6.patch
0003-Fix-methods-that-need-int-as-argument-and-not-float.patch 0003-add-dependency-on-QtPy-instead-of-PySide6.patch
0004-add-pytest.ini-to-make-sure-pytest-can-find-all-test.patch 0004-Fix-methods-that-need-int-as-argument-and-not-float.patch
0005-add-dependency-on-QtPy-instead-of-PySide6.patch 0005-add-pytest.ini-to-make-sure-pytest-can-find-all-test.patch
0006-Do-not-install-onionshare_cli-script.patch 0006-Do-not-install-onionshare_cli-script.patch
...@@ -52,10 +52,19 @@ ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS))) ...@@ -52,10 +52,19 @@ ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
# Pybuild export http_proxy=http://127.0.0.1:9/, https_proxy=https://127.0.0.1:9/ # Pybuild export http_proxy=http://127.0.0.1:9/, https_proxy=https://127.0.0.1:9/
# The tests are failing because of this pybuild give advice that if # The tests are failing because of this pybuild give advice that if
# network access is blocked by this, to export empty proxy variables. # network access is blocked by this, to export empty proxy variables.
export http_proxy=
export https_proxy= # You need to run the tests not as root as otherwise
# some tests fail because they need chmod 400 to be effective to
PYBUILD_NAME=onionshare PYTHONPATH="$(CURDIR)/cli" QT_QPA_PLATFORM=offscreen QT_DEBUG_PLUGINS=1 HOME=/tmp xvfb-run dh_auto_test --buildsystem=pybuild --sourcedirectory desktop # generate an error.
# Finally the tests need also a writeable home.
$(eval TESTHOME = $(shell mktemp -d))
$(eval ENV = QT_QPA_PLATFORM=offscreen QT_DEBUG_PLUGINS=1 HOME=$(TESTHOME) http_proxy= https_proxy=)
PYBUILD_NAME=onionshare PYTHONPATH="$(CURDIR)/cli" pybuild \
--dir desktop \
--test --test-custom \
--test-args="$(ENV) xvfb-run python{version} -m pytest tests"
rm -rf $(TESTHOME)
else else
@echo "** tests disabled" @echo "** tests disabled"
endif endif
# socket.io.js shipts very long line although it is the non compressed form. # Those prebuilt javascript object wil lbe replaced with version from debian/missing-sources
source-is-missing [debian/missing-sources/socket.io.js] source-contains-prebuilt-javascript-object [cli/onionshare_cli/resources/static/js/jquery-3.5.1.min.js]
source-contains-prebuilt-javascript-object [cli/onionshare_cli/resources/static/js/socket.io.js]
source-contains-prebuilt-javascript-object [cli/onionshare_cli/resources/static/js/socket.io.min.js]
...@@ -27,3 +27,8 @@ Test-Command: XDG_CONFIG_HOME="$AUTOPKGTEST_TMP" xvfb-run -- onionshare --help ...@@ -27,3 +27,8 @@ Test-Command: XDG_CONFIG_HOME="$AUTOPKGTEST_TMP" xvfb-run -- onionshare --help
Depends: onionshare, xvfb, xauth Depends: onionshare, xvfb, xauth
Restrictions: allow-stderr, superficial, Restrictions: allow-stderr, superficial,
Features: test-name=onionshare_help Features: test-name=onionshare_help
Test-Command: ! grep -r --include "*.py" "^\s*\(import\|from\)\s\+PySide[26]" /usr/lib/python3/dist-packages/onionshare/
Depends: onionshare
Restrictions: allow-stderr,
Features: test-name=check_if_we_use_only_qyqt