aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel Jacq <mig@mig5.net>2021-11-30 10:54:17 +1100
committerMiguel Jacq <mig@mig5.net>2021-11-30 10:54:17 +1100
commit81cf9aabe83779a9b206d37189729a249c7ff99e (patch)
tree65b4660a79485255bd23f391e8ad4282800569d9
parent3273832da717aed487955be82bff71407991842a (diff)
parent1d0d30458cd10cf4536c616253036c29759ac29d (diff)
downloadonionshare-81cf9aabe83779a9b206d37189729a249c7ff99e.tar.gz
onionshare-81cf9aabe83779a9b206d37189729a249c7ff99e.zip
Fix conflicts
-rw-r--r--.circleci/config.yml4
-rw-r--r--RELEASE.md4
-rw-r--r--cli/onionshare_cli/__init__.py25
-rw-r--r--cli/onionshare_cli/common.py404
-rw-r--r--cli/onionshare_cli/meek.py3
-rw-r--r--cli/onionshare_cli/onion.py24
-rw-r--r--cli/onionshare_cli/resources/static/js/send.js24
-rw-r--r--cli/onionshare_cli/resources/templates/send.html14
-rw-r--r--cli/poetry.lock192
-rw-r--r--cli/pyproject.toml2
-rw-r--r--desktop/src/onionshare/gui_common.py11
-rw-r--r--desktop/src/onionshare/resources/locale/en.json1
-rw-r--r--desktop/src/onionshare/strings.py6
-rw-r--r--desktop/src/onionshare/tab/mode/file_selection.py52
-rw-r--r--desktop/src/onionshare/tab/tab.py2
-rw-r--r--flatpak/org.onionshare.OnionShare.yaml309
-rw-r--r--snap/snapcraft.yaml32
17 files changed, 457 insertions, 652 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 175595f3..b9938c28 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -30,6 +30,10 @@ jobs:
command: |
cd ~/repo/cli
poetry run pytest -v ./tests
+ poetry run onionshare-cli --local-only ./tests --auto-stop-timer 2
+ poetry run onionshare-cli --local-only --receive --auto-stop-timer 2
+ poetry run onionshare-cli --local-only --website ../docs --auto-stop-timer 2
+ poetry run onionshare-cli --local-only --chat --auto-stop-timer 2
test-gui:
docker:
diff --git a/RELEASE.md b/RELEASE.md
index 948b5713..4db4f28a 100644
--- a/RELEASE.md
+++ b/RELEASE.md
@@ -74,11 +74,11 @@ git checkout v$VERSION
You must have `snap` and `snapcraft` (`snap install snapcraft --classic`) installed.
-Build and test the snap before publishing:
+Build and test the snap before publishing (note that `--dangerous` lets you install the snap before it's codesigned):
```sh
snapcraft
-snap install --devmode ./onionshare_$VERSION_amd64.snap
+snap install --dangerous ./onionshare_$VERSION_amd64.snap
```
This will create `onionshare_$VERSION_amd64.snap`.
diff --git a/cli/onionshare_cli/__init__.py b/cli/onionshare_cli/__init__.py
index 4e34a508..060c5628 100644
--- a/cli/onionshare_cli/__init__.py
+++ b/cli/onionshare_cli/__init__.py
@@ -27,8 +27,6 @@ from datetime import datetime
from datetime import timedelta
from .common import Common, CannotFindTor
-from .censorship import CensorshipCircumvention
-from .meek import Meek, MeekNotRunning
from .web import Web
from .onion import TorErrorProtocolError, TorTooOldEphemeral, TorTooOldStealth, Onion
from .onionshare import OnionShare
@@ -285,20 +283,6 @@ def main(cwd=None):
# Create the Web object
web = Web(common, False, mode_settings, mode)
- # Create the Meek object and start the meek client
- # meek = Meek(common)
- # meek.start()
-
- # Create the CensorshipCircumvention object to make
- # API calls to Tor over Meek
- censorship = CensorshipCircumvention(common, meek)
- # Example: request recommended bridges, pretending to be from China, using
- # domain fronting.
- # censorship_recommended_settings = censorship.request_settings(country="cn")
- # print(censorship_recommended_settings)
- # Clean up the meek subprocess once we're done working with the censorship circumvention API
- # meek.cleanup()
-
# Start the Onion object
try:
onion = Onion(common, use_tmp_dir=True)
@@ -474,13 +458,13 @@ def main(cwd=None):
if app.autostop_timer > 0:
# if the auto-stop timer was set and has run out, stop the server
if not app.autostop_timer_thread.is_alive():
- if mode == "share" or (mode == "website"):
+ if mode == "share":
# If there were no attempts to download the share, or all downloads are done, we can stop
if web.share_mode.cur_history_id == 0 or web.done:
print("Stopped because auto-stop timer ran out")
web.stop(app.port)
break
- if mode == "receive":
+ elif mode == "receive":
if (
web.receive_mode.cur_history_id == 0
or not web.receive_mode.uploads_in_progress
@@ -489,6 +473,11 @@ def main(cwd=None):
web.stop(app.port)
break
web.receive_mode.can_upload = False
+ else:
+ # website or chat mode
+ print("Stopped because auto-stop timer ran out")
+ web.stop(app.port)
+ break
# Allow KeyboardInterrupt exception to be handled with threads
# https://stackoverflow.com/questions/3788208/python-threading-ignores-keyboardinterrupt-exception
time.sleep(0.2)
diff --git a/cli/onionshare_cli/common.py b/cli/onionshare_cli/common.py
index 7a8bc857..4b483cf5 100644
--- a/cli/onionshare_cli/common.py
+++ b/cli/onionshare_cli/common.py
@@ -88,197 +88,206 @@ class Common:
╰───────────────────────────────────────────╯
"""
- if self.platform == "Windows":
- pass
- else:
- pass
-
- print(
- Back.MAGENTA + Fore.WHITE + "╭───────────────────────────────────────────╮"
- )
- print(
- Back.MAGENTA
- + Fore.WHITE
- + "│"
- + Fore.LIGHTMAGENTA_EX
- + " * "
- + Fore.WHITE
- + "▄▄█████▄▄"
- + Fore.LIGHTMAGENTA_EX
- + " * "
- + Fore.WHITE
- + "│"
- )
- print(
- Back.MAGENTA
- + Fore.WHITE
- + "│"
- + Fore.WHITE
- + " ▄████▀▀▀████▄"
- + Fore.LIGHTMAGENTA_EX
- + " * "
- + Fore.WHITE
- + "│"
- )
- print(
- Back.MAGENTA
- + Fore.WHITE
- + "│"
- + Fore.WHITE
- + " ▀▀█▀ ▀██▄ "
- + Fore.WHITE
- + "│"
- )
- print(
- Back.MAGENTA
- + Fore.WHITE
- + "│"
- + Fore.LIGHTMAGENTA_EX
- + " * "
- + Fore.WHITE
- + "▄█▄ ▀██▄ "
- + Fore.WHITE
- + "│"
- )
- print(
- Back.MAGENTA
- + Fore.WHITE
- + "│"
- + Fore.WHITE
- + " ▄█████▄ ███"
- + Fore.LIGHTMAGENTA_EX
- + " -+- "
- + Fore.WHITE
- + "│"
- )
- print(
- Back.MAGENTA
- + Fore.WHITE
- + "│"
- + Fore.WHITE
- + " ███ ▀█████▀ "
- + Fore.WHITE
- + "│"
- )
- print(
- Back.MAGENTA
- + Fore.WHITE
- + "│"
- + Fore.WHITE
- + " ▀██▄ ▀█▀ "
- + Fore.WHITE
- + "│"
- )
- print(
- Back.MAGENTA
- + Fore.WHITE
- + "│"
- + Fore.LIGHTMAGENTA_EX
- + " * "
- + Fore.WHITE
- + "▀██▄ ▄█▄▄"
- + Fore.LIGHTMAGENTA_EX
- + " * "
- + Fore.WHITE
- + "│"
- )
- print(
- Back.MAGENTA
- + Fore.WHITE
- + "│"
- + Fore.LIGHTMAGENTA_EX
- + " * "
- + Fore.WHITE
- + "▀████▄▄▄████▀ "
- + Fore.WHITE
- + "│"
- )
- print(
- Back.MAGENTA
- + Fore.WHITE
- + "│"
- + Fore.WHITE
- + " ▀▀█████▀▀ "
- + Fore.WHITE
- + "│"
- )
- print(
- Back.MAGENTA
- + Fore.WHITE
- + "│"
- + Fore.LIGHTMAGENTA_EX
- + " -+- * "
- + Fore.WHITE
- + "│"
- )
- print(
- Back.MAGENTA
- + Fore.WHITE
- + "│"
- + Fore.WHITE
- + " ▄▀▄ ▄▀▀ █ "
- + Fore.WHITE
- + "│"
- )
- print(
- Back.MAGENTA
- + Fore.WHITE
- + "│"
- + Fore.WHITE
- + " █ █ ▀ ▀▄ █ "
- + Fore.WHITE
- + "│"
- )
- print(
- Back.MAGENTA
- + Fore.WHITE
- + "│"
- + Fore.WHITE
- + " █ █ █▀▄ █ ▄▀▄ █▀▄ ▀▄ █▀▄ ▄▀▄ █▄▀ ▄█▄ "
- + Fore.WHITE
- + "│"
- )
- print(
- Back.MAGENTA
- + Fore.WHITE
- + "│"
- + Fore.WHITE
- + " ▀▄▀ █ █ █ ▀▄▀ █ █ ▄▄▀ █ █ ▀▄█ █ ▀▄▄ "
- + Fore.WHITE
- + "│"
- )
- print(
- Back.MAGENTA + Fore.WHITE + "│ │"
- )
- left_spaces = (43 - len(self.version) - 1) // 2
- right_spaces = left_spaces
- if left_spaces + len(self.version) + 1 + right_spaces < 43:
- right_spaces += 1
- print(
- Back.MAGENTA
- + Fore.WHITE
- + "│"
- + Fore.WHITE
- + f"{' '*left_spaces}v{self.version}{' '*right_spaces}"
- + Fore.WHITE
- + "│"
- )
- print(
- Back.MAGENTA + Fore.WHITE + "│ │"
- )
- print(
- Back.MAGENTA
- + Fore.WHITE
- + "│"
- + Fore.WHITE
- + " https://onionshare.org/ "
- + Fore.WHITE
- + "│"
- )
- print(
- Back.MAGENTA + Fore.WHITE + "╰───────────────────────────────────────────╯"
- )
- print()
+ try:
+ print(
+ Back.MAGENTA
+ + Fore.WHITE
+ + "╭───────────────────────────────────────────╮"
+ )
+ print(
+ Back.MAGENTA
+ + Fore.WHITE
+ + "│"
+ + Fore.LIGHTMAGENTA_EX
+ + " * "
+ + Fore.WHITE
+ + "▄▄█████▄▄"
+ + Fore.LIGHTMAGENTA_EX
+ + " * "
+ + Fore.WHITE
+ + "│"
+ )
+ print(
+ Back.MAGENTA
+ + Fore.WHITE
+ + "│"
+ + Fore.WHITE
+ + " ▄████▀▀▀████▄"
+ + Fore.LIGHTMAGENTA_EX
+ + " * "
+ + Fore.WHITE
+ + "│"
+ )
+ print(
+ Back.MAGENTA
+ + Fore.WHITE
+ + "│"
+ + Fore.WHITE
+ + " ▀▀█▀ ▀██▄ "
+ + Fore.WHITE
+ + "│"
+ )
+ print(
+ Back.MAGENTA
+ + Fore.WHITE
+ + "│"
+ + Fore.LIGHTMAGENTA_EX
+ + " * "
+ + Fore.WHITE
+ + "▄█▄ ▀██▄ "
+ + Fore.WHITE
+ + "│"
+ )
+ print(
+ Back.MAGENTA
+ + Fore.WHITE
+ + "│"
+ + Fore.WHITE
+ + " ▄█████▄ ███"
+ + Fore.LIGHTMAGENTA_EX
+ + " -+- "
+ + Fore.WHITE
+ + "│"
+ )
+ print(
+ Back.MAGENTA
+ + Fore.WHITE
+ + "│"
+ + Fore.WHITE
+ + " ███ ▀█████▀ "
+ + Fore.WHITE
+ + "│"
+ )
+ print(
+ Back.MAGENTA
+ + Fore.WHITE
+ + "│"
+ + Fore.WHITE
+ + " ▀██▄ ▀█▀ "
+ + Fore.WHITE
+ + "│"
+ )
+ print(
+ Back.MAGENTA
+ + Fore.WHITE
+ + "│"
+ + Fore.LIGHTMAGENTA_EX
+ + " * "
+ + Fore.WHITE
+ + "▀██▄ ▄█▄▄"
+ + Fore.LIGHTMAGENTA_EX
+ + " * "
+ + Fore.WHITE
+ + "│"
+ )
+ print(
+ Back.MAGENTA
+ + Fore.WHITE
+ + "│"
+ + Fore.LIGHTMAGENTA_EX
+ + " * "
+ + Fore.WHITE
+ + "▀████▄▄▄████▀ "
+ + Fore.WHITE
+ + "│"
+ )
+ print(
+ Back.MAGENTA
+ + Fore.WHITE
+ + "│"
+ + Fore.WHITE
+ + " ▀▀█████▀▀ "
+ + Fore.WHITE
+ + "│"
+ )
+ print(
+ Back.MAGENTA
+ + Fore.WHITE
+ + "│"
+ + Fore.LIGHTMAGENTA_EX
+ + " -+- * "
+ + Fore.WHITE
+ + "│"
+ )
+ print(
+ Back.MAGENTA
+ + Fore.WHITE
+ + "│"
+ + Fore.WHITE
+ + " ▄▀▄ ▄▀▀ █ "
+ + Fore.WHITE
+ + "│"
+ )
+ print(
+ Back.MAGENTA
+ + Fore.WHITE
+ + "│"
+ + Fore.WHITE
+ + " █ █ ▀ ▀▄ █ "
+ + Fore.WHITE
+ + "│"
+ )
+ print(
+ Back.MAGENTA
+ + Fore.WHITE
+ + "│"
+ + Fore.WHITE
+ + " █ █ █▀▄ █ ▄▀▄ █▀▄ ▀▄ █▀▄ ▄▀▄ █▄▀ ▄█▄ "
+ + Fore.WHITE
+ + "│"
+ )
+ print(
+ Back.MAGENTA
+ + Fore.WHITE
+ + "│"
+ + Fore.WHITE
+ + " ▀▄▀ █ █ █ ▀▄▀ █ █ ▄▄▀ █ █ ▀▄█ █ ▀▄▄ "
+ + Fore.WHITE
+ + "│"
+ )
+ print(
+ Back.MAGENTA
+ + Fore.WHITE
+ + "│ │"
+ )
+ left_spaces = (43 - len(self.version) - 1) // 2
+ right_spaces = left_spaces
+ if left_spaces + len(self.version) + 1 + right_spaces < 43:
+ right_spaces += 1
+ print(
+ Back.MAGENTA
+ + Fore.WHITE
+ + "│"
+ + Fore.WHITE
+ + f"{' '*left_spaces}v{self.version}{' '*right_spaces}"
+ + Fore.WHITE
+ + "│"
+ )
+ print(
+ Back.MAGENTA
+ + Fore.WHITE
+ + "│ │"
+ )
+ print(
+ Back.MAGENTA
+ + Fore.WHITE
+ + "│"
+ + Fore.WHITE
+ + " https://onionshare.org/ "
+ + Fore.WHITE
+ + "│"
+ )
+ print(
+ Back.MAGENTA
+ + Fore.WHITE
+ + "╰───────────────────────────────────────────╯"
+ )
+ print()
+ except:
+ # If anything fails, print a boring banner
+ print(f"OnionShare v{self.version}")
+ print("https://onionshare.org/")
+ print()
def load_settings(self, config=None):
"""
@@ -467,6 +476,19 @@ class Common:
else:
return False
+ def is_flatpak(self):
+ """
+ Returns True if OnionShare is running in a Flatpak sandbox
+ """
+ return os.environ.get("FLATPAK_ID") == "org.onionshare.OnionShare"
+
+ def is_snapcraft(self):
+ """
+ Returns True if OnionShare is running in a Snapcraft sandbox
+ """
+ return os.environ.get("SNAP_INSTANCE_NAME") == "onionshare"
+
+
@staticmethod
def random_string(num_bytes, output_len=None):
"""
diff --git a/cli/onionshare_cli/meek.py b/cli/onionshare_cli/meek.py
index c5df7b7f..dffbad83 100644
--- a/cli/onionshare_cli/meek.py
+++ b/cli/onionshare_cli/meek.py
@@ -120,7 +120,8 @@ class Meek(object):
stderr=subprocess.PIPE,
bufsize=1,
env=self.meek_env,
- text=True,
+ # Using universal_newlines instead of text because the snap package using python < 3.7
+ universal_newlines=True,
)
# Queue up the stdout from the subprocess for polling later
diff --git a/cli/onionshare_cli/onion.py b/cli/onionshare_cli/onion.py
index 536b9ba0..5ac669b8 100644
--- a/cli/onionshare_cli/onion.py
+++ b/cli/onionshare_cli/onion.py
@@ -29,6 +29,7 @@ import subprocess
import time
import shlex
import psutil
+import traceback
from distutils.version import LooseVersion as Version
@@ -354,6 +355,11 @@ class Onion(object):
f.write("\nUseBridges 1\n")
# Execute a tor subprocess
+ self.common.log(
+ "Onion",
+ "connect",
+ f"starting {self.tor_path} subprocess",
+ )
start_ts = time.time()
if self.common.platform == "Windows":
# In Windows, hide console window when opening tor.exe subprocess
@@ -366,17 +372,32 @@ class Onion(object):
startupinfo=startupinfo,
)
else:
+ if self.common.is_snapcraft():
+ env = None
+ else:
+ env = {"LD_LIBRARY_PATH": os.path.dirname(self.tor_path)}
+
self.tor_proc = subprocess.Popen(
[self.tor_path, "-f", self.tor_torrc],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
- env={"LD_LIBRARY_PATH": os.path.dirname(self.tor_path)},
+ env=env,
)
# Wait for the tor controller to start
+ self.common.log(
+ "Onion",
+ "connect",
+ f"tor pid: {self.tor_proc.pid}",
+ )
time.sleep(2)
# Connect to the controller
+ self.common.log(
+ "Onion",
+ "connect",
+ "authenticating to tor controller",
+ )
try:
if (
self.common.platform == "Windows"
@@ -389,6 +410,7 @@ class Onion(object):
self.c.authenticate()
except Exception as e:
print("OnionShare could not connect to Tor:\n{}".format(e.args[0]))
+ print(traceback.format_exc())
raise BundledTorBroken(e.args[0])
while True:
diff --git a/cli/onionshare_cli/resources/static/js/send.js b/cli/onionshare_cli/resources/static/js/send.js
index 43e9892d..22844ab9 100644
--- a/cli/onionshare_cli/resources/static/js/send.js
+++ b/cli/onionshare_cli/resources/static/js/send.js
@@ -11,7 +11,7 @@ function unhumanize(text) {
}
}
function sortTable(n) {
- var table, rows, switching, i, x, y, shouldSwitch, dir, switchcount = 0;
+ var table, rows, switching, i, x, y, valX, valY, shouldSwitch, dir, switchcount = 0;
table = document.getElementById("file-list");
switching = true;
// Set the sorting direction to ascending:
@@ -21,7 +21,7 @@ function sortTable(n) {
while (switching) {
// Start by saying: no switching is done:
switching = false;
- rows = table.getElementsByTagName("TR");
+ rows = table.getElementsByClassName("row");
/* Loop through all table rows (except the
first, which contains table headers): */
for (i = 1; i < (rows.length - 1); i++) {
@@ -29,18 +29,22 @@ function sortTable(n) {
shouldSwitch = false;
/* Get the two elements you want to compare,
one from current row and one from the next: */
- x = rows[i].getElementsByTagName("TD")[n];
- y = rows[i + 1].getElementsByTagName("TD")[n];
+ x = rows[i].getElementsByClassName("cell-data")[n];
+ y = rows[i + 1].getElementsByClassName("cell-data")[n];
+
+ valX = x.classList.contains("size") ? unhumanize(x.innerHTML.toLowerCase()) : x.innerHTML;
+ valY = y.classList.contains("size") ? unhumanize(y.innerHTML.toLowerCase()) : y.innerHTML;
+
/* Check if the two rows should switch place,
based on the direction, asc or desc: */
if (dir == "asc") {
- if (unhumanize(x.innerHTML.toLowerCase()) > unhumanize(y.innerHTML.toLowerCase())) {
- // If so, mark as a switch and break the loop:
- shouldSwitch= true;
- break;
- }
+ if (valX > valY) {
+ // If so, mark as a switch and break the loop:
+ shouldSwitch= true;
+ break;
+ }
} else if (dir == "desc") {
- if (unhumanize(x.innerHTML.toLowerCase()) < unhumanize(y.innerHTML.toLowerCase())) {
+ if (valX < valY) {
// If so, mark as a switch and break the loop:
shouldSwitch= true;
break;
diff --git a/cli/onionshare_cli/resources/templates/send.html b/cli/onionshare_cli/resources/templates/send.html
index 5fc1ba1f..b1532cec 100644
--- a/cli/onionshare_cli/resources/templates/send.html
+++ b/cli/onionshare_cli/resources/templates/send.html
@@ -32,7 +32,7 @@
{% endif %}
<div class="file-list" id="file-list">
- <div class="d-flex">
+ <div class="d-flex row">
<div id="filename-header" class="heading">Filename</div>
<div id="size-header" class="heading">Size</div>
</div>
@@ -41,26 +41,26 @@
<div>
<img width="30" height="30" title="" alt="" src="{{ static_url_path }}/img/web_folder.png" />
<a href="{{ info.link }}">
- <span>{{ info.basename }}</span>
+ <span class="cell-data">{{ info.basename }}</span>
</a>
</div>
- <div>&mdash;</div>
+ <div class="cell-data">&mdash;</div>
</div>
{% endfor %}
{% for info in files %}
- <div class="d-flex">
+ <div class="d-flex row">
<div>
<img width="30" height="30" title="" alt="" src="{{ static_url_path }}/img/web_file.png" />
{% if download_individual_files %}
<a href="{{ info.link }}">
- <span>{{ info.basename }}</span>
+ <span class="cell-data">{{ info.basename }}</span>
</a>
{% else %}
- <span>{{ info.basename }}</span>
+ <span class="cell-data">{{ info.basename }}</span>
{% endif %}
</div>
- <div>{{ info.size_human }}</div>
+ <div class="cell-data size">{{ info.size_human }}</div>
</div>
{% endfor %}
</div>
diff --git a/cli/poetry.lock b/cli/poetry.lock
index 9314b096..966aea84 100644
--- a/cli/poetry.lock
+++ b/cli/poetry.lock
@@ -22,13 +22,21 @@ tests_no_zope = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>
[[package]]
name = "bidict"
-version = "0.21.3"
+version = "0.21.4"
description = "The bidirectional mapping library for Python."
category = "main"
optional = false
python-versions = ">=3.6"
[[package]]
+name = "cepa"
+version = "1.8.3"
+description = "Stem is a Python controller library that allows applications to interact with Tor (https://www.torproject.org/)."
+category = "main"
+optional = false
+python-versions = "*"
+
+[[package]]
name = "certifi"
version = "2021.10.8"
description = "Python package for providing Mozilla's CA Bundle."
@@ -38,7 +46,7 @@ python-versions = "*"
[[package]]
name = "cffi"
-version = "1.14.6"
+version = "1.15.0"
description = "Foreign Function Interface for Python calling C code."
category = "main"
optional = false
@@ -146,7 +154,7 @@ docs = ["sphinx"]
[[package]]
name = "idna"
-version = "3.2"
+version = "3.3"
description = "Internationalized Domain Names in Applications (IDNA)"
category = "main"
optional = false
@@ -154,7 +162,7 @@ python-versions = ">=3.5"
[[package]]
name = "importlib-metadata"
-version = "4.8.1"
+version = "4.8.2"
description = "Read metadata from Python packages"
category = "dev"
optional = false
@@ -167,7 +175,7 @@ zipp = ">=0.5"
[package.extras]
docs = ["sphinx", "jaraco.packaging (>=8.2)", "rst.linker (>=1.9)"]
perf = ["ipython"]
-testing = ["pytest (>=4.6)", "pytest-checkdocs (>=2.4)", "pytest-flake8", "pytest-cov", "pytest-enabler (>=1.0.1)", "packaging", "pep517", "pyfakefs", "flufl.flake8", "pytest-perf (>=0.9.2)", "pytest-black (>=0.3.7)", "pytest-mypy", "importlib-resources (>=1.3)"]
+testing = ["pytest (>=6)", "pytest-checkdocs (>=2.4)", "pytest-flake8", "pytest-cov", "pytest-enabler (>=1.0.1)", "packaging", "pep517", "pyfakefs", "flufl.flake8", "pytest-perf (>=0.9.2)", "pytest-black (>=0.3.7)", "pytest-mypy", "importlib-resources (>=1.3)"]
[[package]]
name = "iniconfig"
@@ -209,14 +217,14 @@ python-versions = ">=3.6"
[[package]]
name = "packaging"
-version = "21.0"
+version = "21.2"
description = "Core utilities for Python packages"
category = "dev"
optional = false
python-versions = ">=3.6"
[package.dependencies]
-pyparsing = ">=2.0.2"
+pyparsing = ">=2.0.2,<3"
[[package]]
name = "pluggy"
@@ -246,15 +254,15 @@ test = ["ipaddress", "mock", "unittest2", "enum34", "pywin32", "wmi"]
[[package]]
name = "py"
-version = "1.10.0"
+version = "1.11.0"
description = "library with cross-python path, ini-parsing, io, code, log facilities"
category = "dev"
optional = false
-python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
+python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
[[package]]
name = "pycparser"
-version = "2.20"
+version = "2.21"
description = "C parser in Python"
category = "main"
optional = false
@@ -316,7 +324,7 @@ testing = ["argcomplete", "hypothesis (>=3.56)", "mock", "nose", "requests", "xm
[[package]]
name = "python-engineio"
-version = "4.2.1"
+version = "4.3.0"
description = "Engine.IO server and client for Python"
category = "main"
optional = false
@@ -328,7 +336,7 @@ client = ["requests (>=2.21.0)", "websocket-client (>=0.54.0)"]
[[package]]
name = "python-socketio"
-version = "5.4.0"
+version = "5.5.0"
description = "Socket.IO server and client for Python"
category = "main"
optional = false
@@ -336,7 +344,7 @@ python-versions = ">=3.6"
[package.dependencies]
bidict = ">=0.21.0"
-python-engineio = ">=4.1.0"
+python-engineio = ">=4.3.0"
[package.extras]
asyncio_client = ["aiohttp (>=3.4)"]
@@ -370,21 +378,6 @@ optional = false
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*"
[[package]]
-name = "stem"
-version = "1.8.1"
-description = "Stem is a Python controller library that allows applications to interact with Tor (https://www.torproject.org/)."
-category = "main"
-optional = false
-python-versions = "*"
-develop = false
-
-[package.source]
-type = "git"
-url = "https://github.com/onionshare/stem.git"
-reference = "1.8.1"
-resolved_reference = "de3d03a03c7ee57c74c80e9c63cb88072d833717"
-
-[[package]]
name = "toml"
version = "0.10.2"
description = "Python Library for Tom's Obvious, Minimal Language"
@@ -394,11 +387,11 @@ python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*"
[[package]]
name = "typing-extensions"
-version = "3.10.0.2"
-description = "Backported and Experimental Type Hints for Python 3.5+"
+version = "4.0.0"
+description = "Backported and Experimental Type Hints for Python 3.6+"
category = "dev"
optional = false
-python-versions = "*"
+python-versions = ">=3.6"
[[package]]
name = "unidecode"
@@ -448,7 +441,7 @@ testing = ["pytest (>=4.6)", "pytest-checkdocs (>=2.4)", "pytest-flake8", "pytes
[metadata]
lock-version = "1.1"
python-versions = "^3.6"
-content-hash = "181891640e59dac730905019444d42ef8e99da0c34c96fb8a616781661bae537"
+content-hash = "b6700c9652a3292f2ab3153544c46ed78c75fc9b65c15fcf4e3c243f841565dd"
[metadata.files]
atomicwrites = [
@@ -460,59 +453,67 @@ attrs = [
{file = "attrs-21.2.0.tar.gz", hash = "sha256:ef6aaac3ca6cd92904cdd0d83f629a15f18053ec84e6432106f7a4d04ae4f5fb"},
]
bidict = [
- {file = "bidict-0.21.3-py3-none-any.whl", hash = "sha256:2cce0d01eb3db9b3fa85db501c00aaa3389ee4cab7ef82178604552dfa943a1b"},
- {file = "bidict-0.21.3.tar.gz", hash = "sha256:d50bd81fae75e34198ffc94979a0eb0939ff9adb3ef32bcc93a913d8b3e3ed1d"},
+ {file = "bidict-0.21.4-py3-none-any.whl", hash = "sha256:3ac67daa353ecf853a1df9d3e924f005e729227a60a8dbada31a4c31aba7f654"},
+ {file = "bidict-0.21.4.tar.gz", hash = "sha256:42c84ffbe6f8de898af6073b4be9ea7ccedcd78d3474aa844c54e49d5a079f6f"},
+]
+cepa = [
+ {file = "cepa-1.8.3.tar.gz", hash = "sha256:1dc6f0b324d37a2ed2ca274648ece8fd2c96a1d2f440f58c0ca17afd4b5ede7a"},
]
certifi = [
{file = "certifi-2021.10.8-py2.py3-none-any.whl", hash = "sha256:d62a0163eb4c2344ac042ab2bdf75399a71a2d8c7d47eac2e2ee91b9d6339569"},
{file = "certifi-2021.10.8.tar.gz", hash = "sha256:78884e7c1d4b00ce3cea67b44566851c4343c120abd683433ce934a68ea58872"},
]
cffi = [
- {file = "cffi-1.14.6-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:22b9c3c320171c108e903d61a3723b51e37aaa8c81255b5e7ce102775bd01e2c"},
- {file = "cffi-1.14.6-cp27-cp27m-manylinux1_i686.whl", hash = "sha256:f0c5d1acbfca6ebdd6b1e3eded8d261affb6ddcf2186205518f1428b8569bb99"},
- {file = "cffi-1.14.6-cp27-cp27m-manylinux1_x86_64.whl", hash = "sha256:99f27fefe34c37ba9875f224a8f36e31d744d8083e00f520f133cab79ad5e819"},
- {file = "cffi-1.14.6-cp27-cp27m-win32.whl", hash = "sha256:55af55e32ae468e9946f741a5d51f9896da6b9bf0bbdd326843fec05c730eb20"},
- {file = "cffi-1.14.6-cp27-cp27m-win_amd64.whl", hash = "sha256:7bcac9a2b4fdbed2c16fa5681356d7121ecabf041f18d97ed5b8e0dd38a80224"},
- {file = "cffi-1.14.6-cp27-cp27mu-manylinux1_i686.whl", hash = "sha256:ed38b924ce794e505647f7c331b22a693bee1538fdf46b0222c4717b42f744e7"},
- {file = "cffi-1.14.6-cp27-cp27mu-manylinux1_x86_64.whl", hash = "sha256:e22dcb48709fc51a7b58a927391b23ab37eb3737a98ac4338e2448bef8559b33"},
- {file = "cffi-1.14.6-cp35-cp35m-macosx_10_9_x86_64.whl", hash = "sha256:aedb15f0a5a5949ecb129a82b72b19df97bbbca024081ed2ef88bd5c0a610534"},
- {file = "cffi-1.14.6-cp35-cp35m-manylinux1_i686.whl", hash = "sha256:48916e459c54c4a70e52745639f1db524542140433599e13911b2f329834276a"},
- {file = "cffi-1.14.6-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:f627688813d0a4140153ff532537fbe4afea5a3dffce1f9deb7f91f848a832b5"},
- {file = "cffi-1.14.6-cp35-cp35m-win32.whl", hash = "sha256:f0010c6f9d1a4011e429109fda55a225921e3206e7f62a0c22a35344bfd13cca"},
- {file = "cffi-1.14.6-cp35-cp35m-win_amd64.whl", hash = "sha256:57e555a9feb4a8460415f1aac331a2dc833b1115284f7ded7278b54afc5bd218"},
- {file = "cffi-1.14.6-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:e8c6a99be100371dbb046880e7a282152aa5d6127ae01783e37662ef73850d8f"},
- {file = "cffi-1.14.6-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:19ca0dbdeda3b2615421d54bef8985f72af6e0c47082a8d26122adac81a95872"},
- {file = "cffi-1.14.6-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:d950695ae4381ecd856bcaf2b1e866720e4ab9a1498cba61c602e56630ca7195"},
- {file = "cffi-1.14.6-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e9dc245e3ac69c92ee4c167fbdd7428ec1956d4e754223124991ef29eb57a09d"},
- {file = "cffi-1.14.6-cp36-cp36m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:a8661b2ce9694ca01c529bfa204dbb144b275a31685a075ce123f12331be790b"},
- {file = "cffi-1.14.6-cp36-cp36m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:b315d709717a99f4b27b59b021e6207c64620790ca3e0bde636a6c7f14618abb"},
- {file = "cffi-1.14.6-cp36-cp36m-win32.whl", hash = "sha256:80b06212075346b5546b0417b9f2bf467fea3bfe7352f781ffc05a8ab24ba14a"},
- {file = "cffi-1.14.6-cp36-cp36m-win_amd64.whl", hash = "sha256:a9da7010cec5a12193d1af9872a00888f396aba3dc79186604a09ea3ee7c029e"},
- {file = "cffi-1.14.6-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:4373612d59c404baeb7cbd788a18b2b2a8331abcc84c3ba40051fcd18b17a4d5"},
- {file = "cffi-1.14.6-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:f10afb1004f102c7868ebfe91c28f4a712227fe4cb24974350ace1f90e1febbf"},
- {file = "cffi-1.14.6-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:fd4305f86f53dfd8cd3522269ed7fc34856a8ee3709a5e28b2836b2db9d4cd69"},
- {file = "cffi-1.14.6-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6d6169cb3c6c2ad50db5b868db6491a790300ade1ed5d1da29289d73bbe40b56"},
- {file = "cffi-1.14.6-cp37-cp37m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:5d4b68e216fc65e9fe4f524c177b54964af043dde734807586cf5435af84045c"},
- {file = "cffi-1.14.6-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:33791e8a2dc2953f28b8d8d300dde42dd929ac28f974c4b4c6272cb2955cb762"},
- {file = "cffi-1.14.6-cp37-cp37m-win32.whl", hash = "sha256:0c0591bee64e438883b0c92a7bed78f6290d40bf02e54c5bf0978eaf36061771"},
- {file = "cffi-1.14.6-cp37-cp37m-win_amd64.whl", hash = "sha256:8eb687582ed7cd8c4bdbff3df6c0da443eb89c3c72e6e5dcdd9c81729712791a"},
- {file = "cffi-1.14.6-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:ba6f2b3f452e150945d58f4badd92310449876c4c954836cfb1803bdd7b422f0"},
- {file = "cffi-1.14.6-cp38-cp38-manylinux1_i686.whl", hash = "sha256:64fda793737bc4037521d4899be780534b9aea552eb673b9833b01f945904c2e"},
- {file = "cffi-1.14.6-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:9f3e33c28cd39d1b655ed1ba7247133b6f7fc16fa16887b120c0c670e35ce346"},
- {file = "cffi-1.14.6-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:26bb2549b72708c833f5abe62b756176022a7b9a7f689b571e74c8478ead51dc"},
- {file = "cffi-1.14.6-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:eb687a11f0a7a1839719edd80f41e459cc5366857ecbed383ff376c4e3cc6afd"},
- {file = "cffi-1.14.6-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:d2ad4d668a5c0645d281dcd17aff2be3212bc109b33814bbb15c4939f44181cc"},
- {file = "cffi-1.14.6-cp38-cp38-win32.whl", hash = "sha256:487d63e1454627c8e47dd230025780e91869cfba4c753a74fda196a1f6ad6548"},
- {file = "cffi-1.14.6-cp38-cp38-win_amd64.whl", hash = "sha256:c33d18eb6e6bc36f09d793c0dc58b0211fccc6ae5149b808da4a62660678b156"},
- {file = "cffi-1.14.6-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:06c54a68935738d206570b20da5ef2b6b6d92b38ef3ec45c5422c0ebaf338d4d"},
- {file = "cffi-1.14.6-cp39-cp39-manylinux1_i686.whl", hash = "sha256:f174135f5609428cc6e1b9090f9268f5c8935fddb1b25ccb8255a2d50de6789e"},
- {file = "cffi-1.14.6-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:f3ebe6e73c319340830a9b2825d32eb6d8475c1dac020b4f0aa774ee3b898d1c"},
- {file = "cffi-1.14.6-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3c8d896becff2fa653dc4438b54a5a25a971d1f4110b32bd3068db3722c80202"},
- {file = "cffi-1.14.6-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:4922cd707b25e623b902c86188aca466d3620892db76c0bdd7b99a3d5e61d35f"},
- {file = "cffi-1.14.6-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:c9e005e9bd57bc987764c32a1bee4364c44fdc11a3cc20a40b93b444984f2b87"},
- {file = "cffi-1.14.6-cp39-cp39-win32.whl", hash = "sha256:eb9e2a346c5238a30a746893f23a9535e700f8192a68c07c0258e7ece6ff3728"},
- {file = "cffi-1.14.6-cp39-cp39-win_amd64.whl", hash = "sha256:818014c754cd3dba7229c0f5884396264d51ffb87ec86e927ef0be140bfdb0d2"},
- {file = "cffi-1.14.6.tar.gz", hash = "sha256:c9a875ce9d7fe32887784274dd533c57909b7b1dcadcc128a2ac21331a9765dd"},
+ {file = "cffi-1.15.0-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:c2502a1a03b6312837279c8c1bd3ebedf6c12c4228ddbad40912d671ccc8a962"},
+ {file = "cffi-1.15.0-cp27-cp27m-manylinux1_i686.whl", hash = "sha256:23cfe892bd5dd8941608f93348c0737e369e51c100d03718f108bf1add7bd6d0"},
+ {file = "cffi-1.15.0-cp27-cp27m-manylinux1_x86_64.whl", hash = "sha256:41d45de54cd277a7878919867c0f08b0cf817605e4eb94093e7516505d3c8d14"},
+ {file = "cffi-1.15.0-cp27-cp27m-win32.whl", hash = "sha256:4a306fa632e8f0928956a41fa8e1d6243c71e7eb59ffbd165fc0b41e316b2474"},
+ {file = "cffi-1.15.0-cp27-cp27m-win_amd64.whl", hash = "sha256:e7022a66d9b55e93e1a845d8c9eba2a1bebd4966cd8bfc25d9cd07d515b33fa6"},
+ {file = "cffi-1.15.0-cp27-cp27mu-manylinux1_i686.whl", hash = "sha256:14cd121ea63ecdae71efa69c15c5543a4b5fbcd0bbe2aad864baca0063cecf27"},
+ {file = "cffi-1.15.0-cp27-cp27mu-manylinux1_x86_64.whl", hash = "sha256:d4d692a89c5cf08a8557fdeb329b82e7bf609aadfaed6c0d79f5a449a3c7c023"},
+ {file = "cffi-1.15.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:0104fb5ae2391d46a4cb082abdd5c69ea4eab79d8d44eaaf79f1b1fd806ee4c2"},
+ {file = "cffi-1.15.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:91ec59c33514b7c7559a6acda53bbfe1b283949c34fe7440bcf917f96ac0723e"},
+ {file = "cffi-1.15.0-cp310-cp310-manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:f5c7150ad32ba43a07c4479f40241756145a1f03b43480e058cfd862bf5041c7"},
+ {file = "cffi-1.15.0-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:00c878c90cb53ccfaae6b8bc18ad05d2036553e6d9d1d9dbcf323bbe83854ca3"},
+ {file = "cffi-1.15.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:abb9a20a72ac4e0fdb50dae135ba5e77880518e742077ced47eb1499e29a443c"},
+ {file = "cffi-1.15.0-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:a5263e363c27b653a90078143adb3d076c1a748ec9ecc78ea2fb916f9b861962"},
+ {file = "cffi-1.15.0-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:f54a64f8b0c8ff0b64d18aa76675262e1700f3995182267998c31ae974fbc382"},
+ {file = "cffi-1.15.0-cp310-cp310-win32.whl", hash = "sha256:c21c9e3896c23007803a875460fb786118f0cdd4434359577ea25eb556e34c55"},
+ {file = "cffi-1.15.0-cp310-cp310-win_amd64.whl", hash = "sha256:5e069f72d497312b24fcc02073d70cb989045d1c91cbd53979366077959933e0"},
+ {file = "cffi-1.15.0-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:64d4ec9f448dfe041705426000cc13e34e6e5bb13736e9fd62e34a0b0c41566e"},
+ {file = "cffi-1.15.0-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2756c88cbb94231c7a147402476be2c4df2f6078099a6f4a480d239a8817ae39"},
+ {file = "cffi-1.15.0-cp36-cp36m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:3b96a311ac60a3f6be21d2572e46ce67f09abcf4d09344c49274eb9e0bf345fc"},
+ {file = "cffi-1.15.0-cp36-cp36m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:75e4024375654472cc27e91cbe9eaa08567f7fbdf822638be2814ce059f58032"},
+ {file = "cffi-1.15.0-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:59888172256cac5629e60e72e86598027aca6bf01fa2465bdb676d37636573e8"},
+ {file = "cffi-1.15.0-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:27c219baf94952ae9d50ec19651a687b826792055353d07648a5695413e0c605"},
+ {file = "cffi-1.15.0-cp36-cp36m-win32.whl", hash = "sha256:4958391dbd6249d7ad855b9ca88fae690783a6be9e86df65865058ed81fc860e"},
+ {file = "cffi-1.15.0-cp36-cp36m-win_amd64.whl", hash = "sha256:f6f824dc3bce0edab5f427efcfb1d63ee75b6fcb7282900ccaf925be84efb0fc"},
+ {file = "cffi-1.15.0-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:06c48159c1abed75c2e721b1715c379fa3200c7784271b3c46df01383b593636"},
+ {file = "cffi-1.15.0-cp37-cp37m-manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:c2051981a968d7de9dd2d7b87bcb9c939c74a34626a6e2f8181455dd49ed69e4"},
+ {file = "cffi-1.15.0-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:fd8a250edc26254fe5b33be00402e6d287f562b6a5b2152dec302fa15bb3e997"},
+ {file = "cffi-1.15.0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:91d77d2a782be4274da750752bb1650a97bfd8f291022b379bb8e01c66b4e96b"},
+ {file = "cffi-1.15.0-cp37-cp37m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:45db3a33139e9c8f7c09234b5784a5e33d31fd6907800b316decad50af323ff2"},
+ {file = "cffi-1.15.0-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:263cc3d821c4ab2213cbe8cd8b355a7f72a8324577dc865ef98487c1aeee2bc7"},
+ {file = "cffi-1.15.0-cp37-cp37m-win32.whl", hash = "sha256:17771976e82e9f94976180f76468546834d22a7cc404b17c22df2a2c81db0c66"},
+ {file = "cffi-1.15.0-cp37-cp37m-win_amd64.whl", hash = "sha256:3415c89f9204ee60cd09b235810be700e993e343a408693e80ce7f6a40108029"},
+ {file = "cffi-1.15.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:4238e6dab5d6a8ba812de994bbb0a79bddbdf80994e4ce802b6f6f3142fcc880"},
+ {file = "cffi-1.15.0-cp38-cp38-manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:0808014eb713677ec1292301ea4c81ad277b6cdf2fdd90fd540af98c0b101d20"},
+ {file = "cffi-1.15.0-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:57e9ac9ccc3101fac9d6014fba037473e4358ef4e89f8e181f8951a2c0162024"},
+ {file = "cffi-1.15.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8b6c2ea03845c9f501ed1313e78de148cd3f6cad741a75d43a29b43da27f2e1e"},
+ {file = "cffi-1.15.0-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:10dffb601ccfb65262a27233ac273d552ddc4d8ae1bf93b21c94b8511bffe728"},
+ {file = "cffi-1.15.0-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:786902fb9ba7433aae840e0ed609f45c7bcd4e225ebb9c753aa39725bb3e6ad6"},
+ {file = "cffi-1.15.0-cp38-cp38-win32.whl", hash = "sha256:da5db4e883f1ce37f55c667e5c0de439df76ac4cb55964655906306918e7363c"},
+ {file = "cffi-1.15.0-cp38-cp38-win_amd64.whl", hash = "sha256:181dee03b1170ff1969489acf1c26533710231c58f95534e3edac87fff06c443"},
+ {file = "cffi-1.15.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:45e8636704eacc432a206ac7345a5d3d2c62d95a507ec70d62f23cd91770482a"},
+ {file = "cffi-1.15.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:31fb708d9d7c3f49a60f04cf5b119aeefe5644daba1cd2a0fe389b674fd1de37"},
+ {file = "cffi-1.15.0-cp39-cp39-manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:6dc2737a3674b3e344847c8686cf29e500584ccad76204efea14f451d4cc669a"},
+ {file = "cffi-1.15.0-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:74fdfdbfdc48d3f47148976f49fab3251e550a8720bebc99bf1483f5bfb5db3e"},
+ {file = "cffi-1.15.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ffaa5c925128e29efbde7301d8ecaf35c8c60ffbcd6a1ffd3a552177c8e5e796"},
+ {file = "cffi-1.15.0-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:3f7d084648d77af029acb79a0ff49a0ad7e9d09057a9bf46596dac9514dc07df"},
+ {file = "cffi-1.15.0-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:ef1f279350da2c586a69d32fc8733092fd32cc8ac95139a00377841f59a3f8d8"},
+ {file = "cffi-1.15.0-cp39-cp39-win32.whl", hash = "sha256:2a23af14f408d53d5e6cd4e3d9a24ff9e05906ad574822a10563efcef137979a"},
+ {file = "cffi-1.15.0-cp39-cp39-win_amd64.whl", hash = "sha256:3773c4d81e6e818df2efbc7dd77325ca0dcb688116050fb2b3011218eda36139"},
+ {file = "cffi-1.15.0.tar.gz", hash = "sha256:920f0d66a896c2d99f0adbb391f990a84091179542c205fa53ce5787aff87954"},
]
charset-normalizer = [
{file = "charset-normalizer-2.0.7.tar.gz", hash = "sha256:e019de665e2bcf9c2b64e2e5aa025fa991da8720daa3c1138cadd2fd1856aed0"},
@@ -595,12 +596,12 @@ greenlet = [
{file = "greenlet-1.1.2.tar.gz", hash = "sha256:e30f5ea4ae2346e62cedde8794a56858a67b878dd79f7df76a0767e356b1744a"},
]
idna = [
- {file = "idna-3.2-py3-none-any.whl", hash = "sha256:14475042e284991034cb48e06f6851428fb14c4dc953acd9be9a5e95c7b6dd7a"},
- {file = "idna-3.2.tar.gz", hash = "sha256:467fbad99067910785144ce333826c71fb0e63a425657295239737f7ecd125f3"},
+ {file = "idna-3.3-py3-none-any.whl", hash = "sha256:84d9dd047ffa80596e0f246e2eab0b391788b0503584e8945f2368256d2735ff"},
+ {file = "idna-3.3.tar.gz", hash = "sha256:9d643ff0a55b762d5cdb124b8eaa99c66322e2157b69160bc32796e824360e6d"},
]
importlib-metadata = [
- {file = "importlib_metadata-4.8.1-py3-none-any.whl", hash = "sha256:b618b6d2d5ffa2f16add5697cf57a46c76a56229b0ed1c438322e4e95645bd15"},
- {file = "importlib_metadata-4.8.1.tar.gz", hash = "sha256:f284b3e11256ad1e5d03ab86bb2ccd6f5339688ff17a4d797a0fe7df326f23b1"},
+ {file = "importlib_metadata-4.8.2-py3-none-any.whl", hash = "sha256:53ccfd5c134223e497627b9815d5030edf77d2ed573922f7a0b8f8bb81a1c100"},
+ {file = "importlib_metadata-4.8.2.tar.gz", hash = "sha256:75bdec14c397f528724c1bfd9709d660b33a4d2e77387a3358f20b848bb5e5fb"},
]
iniconfig = [
{file = "iniconfig-1.1.1-py2.py3-none-any.whl", hash = "sha256:011e24c64b7f47f6ebd835bb12a743f2fbe9a26d4cecaa7f53bc4f35ee9da8b3"},
@@ -671,8 +672,8 @@ markupsafe = [
{file = "MarkupSafe-2.0.1.tar.gz", hash = "sha256:594c67807fb16238b30c44bdf74f36c02cdf22d1c8cda91ef8a0ed8dabf5620a"},
]
packaging = [
- {file = "packaging-21.0-py3-none-any.whl", hash = "sha256:c86254f9220d55e31cc94d69bade760f0847da8000def4dfe1c6b872fd14ff14"},
- {file = "packaging-21.0.tar.gz", hash = "sha256:7dc96269f53a4ccec5c0670940a4281106dd0bb343f47b7471f779df49c2fbe7"},
+ {file = "packaging-21.2-py3-none-any.whl", hash = "sha256:14317396d1e8cdb122989b916fa2c7e9ca8e2be9e8060a6eff75b6b7b4d8a7e0"},
+ {file = "packaging-21.2.tar.gz", hash = "sha256:096d689d78ca690e4cd8a89568ba06d07ca097e3306a4381635073ca91479966"},
]
pluggy = [
{file = "pluggy-1.0.0-py2.py3-none-any.whl", hash = "sha256:74134bbf457f031a36d68416e1509f34bd5ccc019f0bcc952c7b909d06b37bd3"},
@@ -709,12 +710,12 @@ psutil = [
{file = "psutil-5.8.0.tar.gz", hash = "sha256:0c9ccb99ab76025f2f0bbecf341d4656e9c1351db8cc8a03ccd62e318ab4b5c6"},
]
py = [
- {file = "py-1.10.0-py2.py3-none-any.whl", hash = "sha256:3b80836aa6d1feeaa108e046da6423ab8f6ceda6468545ae8d02d9d58d18818a"},
- {file = "py-1.10.0.tar.gz", hash = "sha256:21b81bda15b66ef5e1a777a21c4dcd9c20ad3efd0b3f817e7a809035269e1bd3"},
+ {file = "py-1.11.0-py2.py3-none-any.whl", hash = "sha256:607c53218732647dff4acdfcd50cb62615cedf612e72d1724fb1a0cc6405b378"},
+ {file = "py-1.11.0.tar.gz", hash = "sha256:51c75c4126074b472f746a24399ad32f6053d1b34b68d2fa41e558e6f4a98719"},
]
pycparser = [
- {file = "pycparser-2.20-py2.py3-none-any.whl", hash = "sha256:7582ad22678f0fcd81102833f60ef8d0e57288b6b5fb00323d101be910e35705"},
- {file = "pycparser-2.20.tar.gz", hash = "sha256:2d475327684562c3a96cc71adf7dc8c4f0565175cf86b6d7a404ff4c771f15f0"},
+ {file = "pycparser-2.21-py2.py3-none-any.whl", hash = "sha256:8ee45429555515e1f6b185e78100aea234072576aa43ab53aefcae078162fca9"},
+ {file = "pycparser-2.21.tar.gz", hash = "sha256:e644fdec12f7872f86c58ff790da456218b10f863970249516d60a5eaca77206"},
]
pynacl = [
{file = "PyNaCl-1.4.0-cp27-cp27m-macosx_10_10_x86_64.whl", hash = "sha256:ea6841bc3a76fa4942ce00f3bda7d436fda21e2d91602b9e21b7ca9ecab8f3ff"},
@@ -750,12 +751,12 @@ pytest = [
{file = "pytest-6.2.5.tar.gz", hash = "sha256:131b36680866a76e6781d13f101efb86cf674ebb9762eb70d3082b6f29889e89"},
]
python-engineio = [
- {file = "python-engineio-4.2.1.tar.gz", hash = "sha256:d510329b6d8ed5662547862f58bc73659ae62defa66b66d745ba021de112fa62"},
- {file = "python_engineio-4.2.1-py3-none-any.whl", hash = "sha256:f3ef9a2c048d08990f294c5f8991f6f162c3b12ecbd368baa0d90441de907d1c"},
+ {file = "python-engineio-4.3.0.tar.gz", hash = "sha256:fed35eeacfa21f53f1fc05ef0cadd65a50780364da3a2be7650eb92f928fdb11"},
+ {file = "python_engineio-4.3.0-py3-none-any.whl", hash = "sha256:ad06a975f7e14cb3bb7137cbf70fd883804484d29acd58004d1db1e2a7fc0ad3"},
]
python-socketio = [
- {file = "python-socketio-5.4.0.tar.gz", hash = "sha256:ca807c9e1f168e96dea412d64dd834fb47c470d27fd83da0504aa4b248ba2544"},
- {file = "python_socketio-5.4.0-py3-none-any.whl", hash = "sha256:7ed57f6c024abdfeb9b25c74c0c00ffc18da47d903e8d72deecb87584370d1fc"},
+ {file = "python-socketio-5.5.0.tar.gz", hash = "sha256:ce972ea1b82aa1811fa10d30cf0d5c251b9a1558c3d66829b6fe70854bcccf0b"},
+ {file = "python_socketio-5.5.0-py3-none-any.whl", hash = "sha256:ca28a0ff0ca5dd05ec5ba4ee2572fe06b96d6f0bc7df384d8b50fbbc06986134"},
]
requests = [
{file = "requests-2.26.0-py2.py3-none-any.whl", hash = "sha256:6c1246513ecd5ecd4528a0906f910e8f0f9c6b8ec72030dc9fd154dc1a6efd24"},
@@ -765,15 +766,12 @@ six = [
{file = "six-1.16.0-py2.py3-none-any.whl", hash = "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254"},
{file = "six-1.16.0.tar.gz", hash = "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926"},
]
-stem = []
toml = [
{file = "toml-0.10.2-py2.py3-none-any.whl", hash = "sha256:806143ae5bfb6a3c6e736a764057db0e6a0e05e338b5630894a5f779cabb4f9b"},
{file = "toml-0.10.2.tar.gz", hash = "sha256:b3bda1d108d5dd99f4a20d24d9c348e91c4db7ab1b749200bded2f839ccbe68f"},
]
typing-extensions = [
- {file = "typing_extensions-3.10.0.2-py2-none-any.whl", hash = "sha256:d8226d10bc02a29bcc81df19a26e56a9647f8b0a6d4a83924139f4a8b01f17b7"},
- {file = "typing_extensions-3.10.0.2-py3-none-any.whl", hash = "sha256:f1d25edafde516b146ecd0613dabcc61409817af4766fbbcfb8d1ad4ec441a34"},
- {file = "typing_extensions-3.10.0.2.tar.gz", hash = "sha256:49f75d16ff11f1cd258e1b988ccff82a3ca5570217d7ad8c5f48205dd99a677e"},
+ {file = "typing_extensions-4.0.0-py3-none-any.whl", hash = "sha256:829704698b22e13ec9eaf959122315eabb370b0884400e9818334d8b677023d9"},
]
unidecode = [
{file = "Unidecode-1.3.2-py3-none-any.whl", hash = "sha256:215fe33c9d1c889fa823ccb66df91b02524eb8cc8c9c80f9c5b8129754d27829"},
diff --git a/cli/pyproject.toml b/cli/pyproject.toml
index 9994240c..372d9aa4 100644
--- a/cli/pyproject.toml
+++ b/cli/pyproject.toml
@@ -29,7 +29,7 @@ eventlet = "*"
setuptools = "*"
pynacl = "^1.4.0"
colorama = "*"
-stem = {git = "https://github.com/onionshare/stem.git", rev = "1.8.1"}
+cepa = "1.8.3"
[tool.poetry.dev-dependencies]
pytest = "*"
diff --git a/desktop/src/onionshare/gui_common.py b/desktop/src/onionshare/gui_common.py
index 0db0f051..d0ad249b 100644
--- a/desktop/src/onionshare/gui_common.py
+++ b/desktop/src/onionshare/gui_common.py
@@ -412,7 +412,10 @@ class GuiCommon:
def get_tor_paths(self):
if self.common.platform == "Linux":
base_path = self.get_resource_path("tor")
- if os.path.exists(base_path):
+ if base_path and os.path.isdir(base_path):
+ self.common.log(
+ "GuiCommon", "get_tor_paths", "using paths in resources"
+ )
tor_path = os.path.join(base_path, "tor")
tor_geo_ip_file_path = os.path.join(base_path, "geoip")
tor_geo_ipv6_file_path = os.path.join(base_path, "geoip6")
@@ -421,6 +424,7 @@ class GuiCommon:
meek_client_file_path = os.path.join(base_path, "meek-client")
else:
# Fallback to looking in the path
+ self.common.log("GuiCommon", "get_tor_paths", "using paths from PATH")
tor_path = shutil.which("tor")
obfs4proxy_file_path = shutil.which("obfs4proxy")
snowflake_file_path = shutil.which("snowflake-client")
@@ -467,7 +471,10 @@ class GuiCommon:
"""
Returns the absolute path of a resource
"""
- return resource_filename("onionshare", os.path.join("resources", filename))
+ try:
+ return resource_filename("onionshare", os.path.join("resources", filename))
+ except KeyError:
+ return None
@staticmethod
def get_translated_tor_error(e):
diff --git a/desktop/src/onionshare/resources/locale/en.json b/desktop/src/onionshare/resources/locale/en.json
index a69a7101..f7717924 100644
--- a/desktop/src/onionshare/resources/locale/en.json
+++ b/desktop/src/onionshare/resources/locale/en.json
@@ -10,6 +10,7 @@
"gui_add_files": "Add Files",
"gui_add_folder": "Add Folder",
"gui_remove": "Remove",
+ "gui_dragdrop_sandbox_flatpak": "To make the Flatpak sandbox more secure, drag and drop is not supported. Use the Add Files and Add Folder buttons to browse for files instead.",
"gui_file_selection_remove_all": "Remove All",
"gui_choose_items": "Choose",
"gui_share_start_server": "Start sharing",
diff --git a/desktop/src/onionshare/strings.py b/desktop/src/onionshare/strings.py
index c4192a33..55f56788 100644
--- a/desktop/src/onionshare/strings.py
+++ b/desktop/src/onionshare/strings.py
@@ -43,7 +43,11 @@ def load_strings(common, locale_dir):
current_locale = common.settings.get("locale")
strings = {}
for s in translations[default_locale]:
- if s in translations[current_locale] and translations[current_locale][s] != "":
+ if (
+ current_locale in translations
+ and s in translations[current_locale]
+ and translations[current_locale][s] != ""
+ ):
strings[s] = translations[current_locale][s]
else:
strings[s] = translations[default_locale][s]
diff --git a/desktop/src/onionshare/tab/mode/file_selection.py b/desktop/src/onionshare/tab/mode/file_selection.py
index 302f07b9..1addba22 100644
--- a/desktop/src/onionshare/tab/mode/file_selection.py
+++ b/desktop/src/onionshare/tab/mode/file_selection.py
@@ -185,6 +185,12 @@ class FileList(QtWidgets.QListWidget):
"""
dragEnterEvent for dragging files and directories into the widget.
"""
+ # Drag and drop doesn't work in Flatpak, because of the sandbox
+ if self.common.is_flatpak():
+ Alert(self.common, strings._("gui_dragdrop_sandbox_flatpak").format())
+ event.ignore()
+ return
+
if event.mimeData().hasUrls:
self.setStyleSheet(self.common.gui.css["share_file_list_drag_enter"])
count = len(event.mimeData().urls())
@@ -206,6 +212,11 @@ class FileList(QtWidgets.QListWidget):
"""
dragLeaveEvent for dragging files and directories into the widget.
"""
+ # Drag and drop doesn't work in Flatpak, because of the sandbox
+ if self.common.is_flatpak():
+ event.ignore()
+ return
+
self.setStyleSheet(self.common.gui.css["share_file_list_drag_leave"])
self.drop_count.hide()
event.accept()
@@ -215,6 +226,11 @@ class FileList(QtWidgets.QListWidget):
"""
dragMoveEvent for dragging files and directories into the widget.
"""
+ # Drag and drop doesn't work in Flatpak, because of the sandbox
+ if self.common.is_flatpak():
+ event.ignore()
+ return
+
if event.mimeData().hasUrls:
event.setDropAction(QtCore.Qt.CopyAction)
event.accept()
@@ -225,6 +241,11 @@ class FileList(QtWidgets.QListWidget):
"""
dropEvent for dragging files and directories into the widget.
"""
+ # Drag and drop doesn't work in Flatpak, because of the sandbox
+ if self.common.is_flatpak():
+ event.ignore()
+ return
+
if event.mimeData().hasUrls:
event.setDropAction(QtCore.Qt.CopyAction)
event.accept()
@@ -342,8 +363,15 @@ class FileSelection(QtWidgets.QVBoxLayout):
self.file_list.files_dropped.connect(self.update)
self.file_list.files_updated.connect(self.update)
+ # Sandboxes (for masOS, Flatpak, etc.) need separate add files and folders buttons, in
+ # order to use native file selection dialogs
+ if self.common.platform == "Darwin" or self.common.is_flatpak():
+ self.sandbox = True
+ else:
+ self.sandbox = False
+
# Buttons
- if self.common.platform == "Darwin":
+ if self.sandbox:
# The macOS sandbox makes it so the Mac version needs separate add files
# and folders buttons, in order to use native file selection dialogs
self.add_files_button = QtWidgets.QPushButton(strings._("gui_add_files"))
@@ -357,7 +385,7 @@ class FileSelection(QtWidgets.QVBoxLayout):
self.remove_button.clicked.connect(self.delete)
button_layout = QtWidgets.QHBoxLayout()
button_layout.addStretch()
- if self.common.platform == "Darwin":
+ if self.sandbox:
button_layout.addWidget(self.add_files_button)
button_layout.addWidget(self.add_folder_button)
else:
@@ -376,14 +404,14 @@ class FileSelection(QtWidgets.QVBoxLayout):
"""
# All buttons should be hidden if the server is on
if self.server_on:
- if self.common.platform == "Darwin":
+ if self.sandbox:
self.add_files_button.hide()
self.add_folder_button.hide()
else:
self.add_button.hide()
self.remove_button.hide()
else:
- if self.common.platform == "Darwin":
+ if self.sandbox:
self.add_files_button.show()
self.add_folder_button.show()
else:
@@ -407,6 +435,7 @@ class FileSelection(QtWidgets.QVBoxLayout):
"""
file_dialog = AddFileDialog(self.common, caption=strings._("gui_choose_items"))
if file_dialog.exec_() == QtWidgets.QDialog.Accepted:
+ self.common.log("FileSelection", "add", file_dialog.selectedFiles())
for filename in file_dialog.selectedFiles():
self.file_list.add_file(filename)
@@ -415,25 +444,34 @@ class FileSelection(QtWidgets.QVBoxLayout):
def add_files(self):
"""
- Add files button clicked.
+ Add Files button clicked.
"""
files = QtWidgets.QFileDialog.getOpenFileNames(
self.parent, caption=strings._("gui_choose_items")
)
+ self.common.log("FileSelection", "add_files", files)
+
filenames = files[0]
for filename in filenames:
self.file_list.add_file(filename)
+ self.file_list.setCurrentItem(None)
+ self.update()
+
def add_folder(self):
"""
- Add folder button clicked.
+ Add Folder button clicked.
"""
filename = QtWidgets.QFileDialog.getExistingDirectory(
self.parent,
caption=strings._("gui_choose_items"),
options=QtWidgets.QFileDialog.ShowDirsOnly,
)
- self.file_list.add_file(filename)
+ self.common.log("FileSelection", "add_folder", filename)
+ if filename:
+ self.file_list.add_file(filename)
+ self.file_list.setCurrentItem(None)
+ self.update()
def delete(self):
"""
diff --git a/desktop/src/onionshare/tab/tab.py b/desktop/src/onionshare/tab/tab.py
index fb7f1836..2e592771 100644
--- a/desktop/src/onionshare/tab/tab.py
+++ b/desktop/src/onionshare/tab/tab.py
@@ -242,6 +242,8 @@ class Tab(QtWidgets.QWidget):
elif mode == "website":
self.filenames = self.settings.get("website", "filenames")
self.website_mode_clicked()
+ elif mode == "chat":
+ self.chat_mode_clicked()
else:
# This is a new tab
self.settings = ModeSettings(self.common)
diff --git a/flatpak/org.onionshare.OnionShare.yaml b/flatpak/org.onionshare.OnionShare.yaml
deleted file mode 100644
index f2ca9dcf..00000000
--- a/flatpak/org.onionshare.OnionShare.yaml
+++ /dev/null
@@ -1,309 +0,0 @@
----
-app-id: org.onionshare.OnionShare
-command: onionshare
-runtime: org.kde.Platform
-runtime-version: "5.15"
-sdk: org.kde.Sdk
-sdk-extensions:
- - org.freedesktop.Sdk.Extension.golang
-separate-locales: false
-finish-args:
- - "--device=dri"
- - "--share=ipc"
- - "--share=network"
- - "--socket=wayland"
- - "--socket=x11"
- - "--talk-name=org.freedesktop.Flatpak"
- - "--talk-name=org.freedesktop.Notifications"
- - "--talk-name=org.freedesktop.secrets"
- - "--filesystem=home:ro"
- - "--filesystem=~/OnionShare:create"
- - "--filesystem=xdg-config/onionshare:create"
-cleanup:
- - "/go"
- - "/bin/scripts"
-modules:
- - name: pyside2
- buildsystem: cmake-ninja
- builddir: true
- config-opts:
- - -DCMAKE_BUILD_TYPE=Release
- - -DBUILD_TESTS=OFF
- cleanup:
- - /bin
- sources:
- - type: archive
- sha256: f175c1d8813257904cf0efeb58e44f68d53b9916f73adaf9ce19514c0271c3fa
- url: https://download.qt.io/official_releases/QtForPython/pyside2/PySide2-5.15.1-src/pyside-setup-opensource-src-5.15.1.tar.xz
- - type: shell
- commands:
- - mkdir -p /app/include/qt5tmp && cp -R /usr/include/Qt* /app/include/qt5tmp # https://bugreports.qt.io/browse/PYSIDE-787
- - sed -i 's|\(--include-paths=\)|\1/app/include/qt5tmp:|' sources/pyside2/cmake/Macros/PySideModules.cmake
- - name: tor
- buildsystem: simple
- build-commands:
- - "./configure --prefix=${FLATPAK_DEST}"
- - make
- - make install
- sources:
- - type: archive
- sha256: 22cba3794fedd5fa87afc1e512c6ce2c21bc20b4e1c6f8079d832dc1e545e733
- url: https://dist.torproject.org/tor-0.4.5.6.tar.gz
- modules:
- - name: libevent
- buildsystem: simple
- build-commands:
- - "./configure --prefix=${FLATPAK_DEST}"
- - make
- - make install
- sources:
- - type: archive
- url: https://github.com/libevent/libevent/releases/download/release-2.1.12-stable/libevent-2.1.12-stable.tar.gz
- sha256: 92e6de1be9ec176428fd2367677e61ceffc2ee1cb119035037a27d346b0403bb
- - name: obfs4proxy
- buildsystem: simple
- build-options:
- env:
- GOBIN: "/app/bin/"
- GO111MODULE: "off"
- build-commands:
- - ". /usr/lib/sdk/golang/enable.sh; GOPATH=$PWD go install gitlab.com/yawning/obfs4.git/obfs4proxy"
- sources:
- - type: git
- url: https://go.googlesource.com/net
- commit: 5f55cee0dc0dc168ce29222f077fe7fcd4be72c5
- dest: src/golang.org/x/net
- - type: git
- url: https://go.googlesource.com/crypto
- commit: 5ea612d1eb830b38bc4e914e37f55311eb58adce
- dest: src/golang.org/x/crypto
- - type: git
- url: https://go.googlesource.com/sys
- commit: 9a76102bfb4322425a1228caa377974426e82c84
- dest: src/golang.org/x/sys
- - type: git
- url: https://go.googlesource.com/text
- commit: 8f690f22cf1c026c950adddf3d45258bfd0912f0
- dest: src/golang.org/x/text
- - type: git
- url: https://gitlab.com/yawning/utls
- commit: 2dd4f38ff9e07464eb2748cc017eac1355e42251
- dest: src/gitlab.com/yawning/utls.git
- - type: git
- url: https://gitlab.com/yawning/obfs4
- commit: f638c33f6c6f697498150d5f0dfbf26453759262
- dest: src/gitlab.com/yawning/obfs4.git
- - type: git
- url: https://gitlab.com/yawning/bsaes
- commit: 0a714cd429ec754482b4001e918db30cd2094405
- dest: src/gitlab.com/yawning/bsaes.git
- - type: git
- url: https://github.com/dchest/siphash
- commit: a21c2e7914a8fe0db087fa007cbe804967665dfc
- dest: src/github.com/dchest/siphash
- - type: git
- url: https://github.com/dsnet/compress
- commit: da652975a8eea9fa0735aba8056747a751db0bd3
- dest: src/github.com/dsnet/compress
- - type: git
- url: https://git.torproject.org/pluggable-transports/goptlib
- commit: 781a46c66d2ddbc3509354ae7f1fccab74cb9927
- dest: src/git.torproject.org/pluggable-transports/goptlib.git
- - name: onionshare
- buildsystem: simple
- ensure-writable:
- - easy-install.pth
- build-commands:
- - python3 setup.py install --prefix=${FLATPAK_DEST}
- - install -D -m0644 org.onionshare.OnionShare.appdata.xml ${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.appdata.xml
- - install -D -m0644 org.onionshare.OnionShare.svg ${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/org.onionshare.OnionShare.svg
- - install -D -m0644 org.onionshare.OnionShare.desktop ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop
- sources:
- - type: dir
- path: ../desktop/src
- modules:
- - name: python3-qrcode
- buildsystem: simple
- build-commands:
- - pip3 install --exists-action=i --no-index --find-links="file://${PWD}" --prefix=${FLATPAK_DEST}
- "qrcode"
- sources:
- - type: file
- url: https://files.pythonhosted.org/packages/19/d5/6c7d4e103d94364d067636417a77a6024219c58cd6e9f428ece9b5061ef9/qrcode-6.1.tar.gz
- sha256: 505253854f607f2abf4d16092c61d4e9d511a3b4392e60bff957a68592b04369
- - name: onionshare-cli
- buildsystem: simple
- build-commands:
- - python3 setup.py install --prefix=${FLATPAK_DEST}
- sources:
- - type: dir
- path: ../cli
- modules:
- - name: python3-click
- buildsystem: simple
- build-commands:
- - pip3 install --exists-action=i --no-index --find-links="file://${PWD}" --prefix=${FLATPAK_DEST}
- "click"
- sources:
- - type: file
- url: https://files.pythonhosted.org/packages/27/6f/be940c8b1f1d69daceeb0032fee6c34d7bd70e3e649ccac0951500b4720e/click-7.1.2.tar.gz
- sha256: d2b5255c7c6349bc1bd1e59e08cd12acbbd63ce649f2588755783aa94dfb6b1a
- - name: python3-flask
- buildsystem: simple
- build-commands:
- - pip3 install --exists-action=i --no-index --find-links="file://${PWD}" --prefix=${FLATPAK_DEST}
- "flask"
- sources:
- - type: file
- url: https://files.pythonhosted.org/packages/4f/e7/65300e6b32e69768ded990494809106f87da1d436418d5f1367ed3966fd7/Jinja2-2.11.3.tar.gz
- sha256: a6d58433de0ae800347cab1fa3043cebbabe8baa9d29e668f1c768cb87a333c6
- - type: file
- url: https://files.pythonhosted.org/packages/27/6f/be940c8b1f1d69daceeb0032fee6c34d7bd70e3e649ccac0951500b4720e/click-7.1.2.tar.gz
- sha256: d2b5255c7c6349bc1bd1e59e08cd12acbbd63ce649f2588755783aa94dfb6b1a
- - type: file
- url: https://files.pythonhosted.org/packages/b9/2e/64db92e53b86efccfaea71321f597fa2e1b2bd3853d8ce658568f7a13094/MarkupSafe-1.1.1.tar.gz
- sha256: 29872e92839765e546828bb7754a68c418d927cd064fd4708fab9fe9c8bb116b
- - type: file
- url: https://files.pythonhosted.org/packages/68/1a/f27de07a8a304ad5fa817bbe383d1238ac4396da447fa11ed937039fa04b/itsdangerous-1.1.0.tar.gz
- sha256: 321b033d07f2a4136d3ec762eac9f16a10ccd60f53c0c91af90217ace7ba1f19
- - type: file
- url: https://files.pythonhosted.org/packages/4e/0b/cb02268c90e67545a0e3a37ea1ca3d45de3aca43ceb7dbf1712fb5127d5d/Flask-1.1.2.tar.gz
- sha256: 4efa1ae2d7c9865af48986de8aeb8504bf32c7f3d6fdc9353d34b21f4b127060
- - type: file
- url: https://files.pythonhosted.org/packages/10/27/a33329150147594eff0ea4c33c2036c0eadd933141055be0ff911f7f8d04/Werkzeug-1.0.1.tar.gz
- sha256: 6c80b1e5ad3665290ea39320b91e1be1e0d5f60652b964a3070216de83d2e47c
- - name: python3-flask-socketio
- buildsystem: simple
- build-commands:
- - pip3 install --exists-action=i --no-index --find-links="file://${PWD}" --prefix=${FLATPAK_DEST}
- "flask-socketio"
- sources:
- - type: file
- url: https://files.pythonhosted.org/packages/06/7f/7496b6684e2b8eadb150555fa979497303459a31cb7dc592a5da51900090/Flask-SocketIO-5.0.1.tar.gz
- sha256: 5c4319f5214ada20807857dc8fdf3dc7d2afe8d6dd38f5c516c72e2be47d2227
- - type: file
- url: https://files.pythonhosted.org/packages/4f/e7/65300e6b32e69768ded990494809106f87da1d436418d5f1367ed3966fd7/Jinja2-2.11.3.tar.gz
- sha256: a6d58433de0ae800347cab1fa3043cebbabe8baa9d29e668f1c768cb87a333c6
- - type: file
- url: https://files.pythonhosted.org/packages/27/6f/be940c8b1f1d69daceeb0032fee6c34d7bd70e3e649ccac0951500b4720e/click-7.1.2.tar.gz
- sha256: d2b5255c7c6349bc1bd1e59e08cd12acbbd63ce649f2588755783aa94dfb6b1a
- - type: file
- url: https://files.pythonhosted.org/packages/b9/2e/64db92e53b86efccfaea71321f597fa2e1b2bd3853d8ce658568f7a13094/MarkupSafe-1.1.1.tar.gz
- sha256: 29872e92839765e546828bb7754a68c418d927cd064fd4708fab9fe9c8bb116b
- - type: file
- url: https://files.pythonhosted.org/packages/68/1a/f27de07a8a304ad5fa817bbe383d1238ac4396da447fa11ed937039fa04b/itsdangerous-1.1.0.tar.gz
- sha256: 321b033d07f2a4136d3ec762eac9f16a10ccd60f53c0c91af90217ace7ba1f19
- - type: file
- url: https://files.pythonhosted.org/packages/4e/0b/cb02268c90e67545a0e3a37ea1ca3d45de3aca43ceb7dbf1712fb5127d5d/Flask-1.1.2.tar.gz
- sha256: 4efa1ae2d7c9865af48986de8aeb8504bf32c7f3d6fdc9353d34b21f4b127060
- - type: file
- url: https://files.pythonhosted.org/packages/bd/7c/83fbbc8568be511bc48704b97ef58f67ff2ab85ec4fcd1dad12cd2323c32/bidict-0.21.2.tar.gz
- sha256: 4fa46f7ff96dc244abfc437383d987404ae861df797e2fd5b190e233c302be09
- - type: file
- url: https://files.pythonhosted.org/packages/10/27/a33329150147594eff0ea4c33c2036c0eadd933141055be0ff911f7f8d04/Werkzeug-1.0.1.tar.gz
- sha256: 6c80b1e5ad3665290ea39320b91e1be1e0d5f60652b964a3070216de83d2e47c
- - type: file
- url: https://files.pythonhosted.org/packages/37/91/7713854e0741f807c38ef084169b489ff6e87b24d1d9ba1e943bb9e10b8b/python-socketio-5.0.4.tar.gz
- sha256: f53fd0d5bd9f75a70492062f4ae6195ab5d34d67a29024d740f25e468392893e
- - type: file
- url: https://files.pythonhosted.org/packages/92/e8/2dd4bd782b593adcc0bdce0675fe92016c3ffca061202142fcf1e55cbf6a/python-engineio-4.0.0.tar.gz
- sha256: 9f34afa4170f5ba6e3d9ff158752ccf8fbb2145f16554b2f0fc84646675be99a
- - type: file
- url: https://files.pythonhosted.org/packages/12/68/95515eaff788370246dac534830ea9ccb0758e921ac9e9041996026ecaf2/setuptools-53.0.0.tar.gz
- sha256: 1b18ef17d74ba97ac9c0e4b4265f123f07a8ae85d9cd093949fa056d3eeeead5
- - type: file
- url: https://files.pythonhosted.org/packages/ed/46/e298a50dde405e1c202e316fa6a3015ff9288423661d7ea5e8f22f589071/wheel-0.36.2.tar.gz
- sha256: e11eefd162658ea59a60a0f6c7d493a7190ea4b9a85e335b33489d9f17e0245e
- - type: file
- url: https://files.pythonhosted.org/packages/af/df/f8aa8a78d4d29e0cffa4512e9bc223ed02f24893fe1837c6cee2749ebd67/setuptools_scm-5.0.1.tar.gz
- sha256: c85b6b46d0edd40d2301038cdea96bb6adc14d62ef943e75afb08b3e7bcf142a
- - name: python3-psutil
- buildsystem: simple
- build-commands:
- - pip3 install --exists-action=i --no-index --find-links="file://${PWD}" --prefix=${FLATPAK_DEST}
- "psutil"
- sources:
- - type: file
- url: https://files.pythonhosted.org/packages/e1/b0/7276de53321c12981717490516b7e612364f2cb372ee8901bd4a66a000d7/psutil-5.8.0.tar.gz
- sha256: 0c9ccb99ab76025f2f0bbecf341d4656e9c1351db8cc8a03ccd62e318ab4b5c6
- - name: python3-pycryptodome
- buildsystem: simple
- build-commands:
- - pip3 install --exists-action=i --no-index --find-links="file://${PWD}" --prefix=${FLATPAK_DEST}
- "pycryptodome"
- sources:
- - type: file
- url: https://files.pythonhosted.org/packages/88/7f/740b99ffb8173ba9d20eb890cc05187677df90219649645aca7e44eb8ff4/pycryptodome-3.10.1.tar.gz
- sha256: 3e2e3a06580c5f190df843cdb90ea28d61099cf4924334d5297a995de68e4673
- - name: python3-pysocks
- buildsystem: simple
- build-commands:
- - pip3 install --exists-action=i --no-index --find-links="file://${PWD}" --prefix=${FLATPAK_DEST}
- "pysocks"
- sources:
- - type: file
- url: https://files.pythonhosted.org/packages/bd/11/293dd436aea955d45fc4e8a35b6ae7270f5b8e00b53cf6c024c83b657a11/PySocks-1.7.1.tar.gz
- sha256: 3f8804571ebe159c380ac6de37643bb4685970655d3bba243530d6558b799aa0
- - name: python3-requests
- buildsystem: simple
- build-commands:
- - pip3 install --exists-action=i --no-index --find-links="file://${PWD}" --prefix=${FLATPAK_DEST}
- "requests"
- sources:
- - type: file
- url: https://files.pythonhosted.org/packages/d7/8d/7ee68c6b48e1ec8d41198f694ecdc15f7596356f2ff8e6b1420300cf5db3/urllib3-1.26.3.tar.gz
- sha256: de3eedaad74a2683334e282005cd8d7f22f4d55fa690a2a1020a416cb0a47e73
- - type: file
- url: https://files.pythonhosted.org/packages/ee/2d/9cdc2b527e127b4c9db64b86647d567985940ac3698eeabc7ffaccb4ea61/chardet-4.0.0.tar.gz
- sha256: 0d6f53a15db4120f2b08c94f11e7d93d2c911ee118b6b30a04ec3ee8310179fa
- - type: file
- url: https://files.pythonhosted.org/packages/06/a9/cd1fd8ee13f73a4d4f491ee219deeeae20afefa914dfb4c130cfc9dc397a/certifi-2020.12.5.tar.gz
- sha256: 1a4995114262bffbc2413b159f2a1a480c969de6e6eb13ee966d470af86af59c
- - type: file
- url: https://files.pythonhosted.org/packages/6b/47/c14abc08432ab22dc18b9892252efaf005ab44066de871e72a38d6af464b/requests-2.25.1.tar.gz
- sha256: 27973dd4a904a4f13b263a19c866c13b92a39ed1c964655f025f3f8d3d75b804
- - type: file
- url: https://files.pythonhosted.org/packages/ea/b7/e0e3c1c467636186c39925827be42f16fee389dc404ac29e930e9136be70/idna-2.10.tar.gz
- sha256: b307872f855b18632ce0c21c5e45be78c0ea7ae4c15c828c20788b26921eb3f6
- - name: python3-stem
- buildsystem: simple
- build-commands:
- - pip3 install --exists-action=i --no-index --find-links="file://${PWD}" --prefix=${FLATPAK_DEST}
- "stem"
- sources:
- - type: file
- url: https://files.pythonhosted.org/packages/71/bd/ab05ffcbfe74dca704e860312e00c53ef690b1ddcb23be7a4d9ea4f40260/stem-1.8.0.tar.gz
- sha256: a0b48ea6224e95f22aa34c0bc3415f0eb4667ddeae3dfb5e32a6920c185568c2
- - name: python3-unidecode
- buildsystem: simple
- build-commands:
- - pip3 install --exists-action=i --no-index --find-links="file://${PWD}" --prefix=${FLATPAK_DEST}
- "unidecode"
- sources:
- - type: file
- url: https://files.pythonhosted.org/packages/cd/31/245d8a384939aa0ee152c76fc62890f79f35fc41cd12839f5df268d9081d/Unidecode-1.2.0.tar.gz
- sha256: 8d73a97d387a956922344f6b74243c2c6771594659778744b2dbdaad8f6b727d
- - name: python3-urllib3
- buildsystem: simple
- build-commands:
- - pip3 install --exists-action=i --no-index --find-links="file://${PWD}" --prefix=${FLATPAK_DEST}
- "urllib3"
- sources:
- - type: file
- url: https://files.pythonhosted.org/packages/d7/8d/7ee68c6b48e1ec8d41198f694ecdc15f7596356f2ff8e6b1420300cf5db3/urllib3-1.26.3.tar.gz
- sha256: de3eedaad74a2683334e282005cd8d7f22f4d55fa690a2a1020a416cb0a47e73
- - name: python3-eventlet
- buildsystem: simple
- build-commands:
- - pip3 install --exists-action=i --no-index --find-links="file://${PWD}" --prefix=${FLATPAK_DEST}
- "eventlet"
- sources:
- - type: file
- url: https://files.pythonhosted.org/packages/40/9c/bd7bc0202a84012a4b6b653b54a389ef48bc7f13ce628865357ffdf37160/eventlet-0.30.1.tar.gz
- sha256: d00649a7e17de0bcddff1a96311ed3baf1b295b3223d4b71aceafe7b45e6d6f8
- - type: file
- url: https://files.pythonhosted.org/packages/ec/c5/14bcd63cb6d06092a004793399ec395405edf97c2301dfdc146dfbd5beed/dnspython-1.16.0.zip
- sha256: 36c5e8e38d4369a08b6780b7f27d790a292b2b08eea01607865bf0936c558e01
- - type: file
- url: https://files.pythonhosted.org/packages/92/be/878cc5314fa5aadce33e68738c1a24debe317605196bdfc2049e66bc9c30/greenlet-1.0.0.tar.gz
- sha256: 719e169c79255816cdcf6dccd9ed2d089a72a9f6c42273aae12d55e8d35bdcf8
diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml
index 9bbc58ae..2ee174df 100644
--- a/snap/snapcraft.yaml
+++ b/snap/snapcraft.yaml
@@ -1,6 +1,6 @@
name: onionshare
base: core18
-version: '2.4'
+version: '2.4.1'
summary: Securely and anonymously share files, host websites, and chat using Tor
description: |
OnionShare lets you securely and anonymously send and receive files. It works by starting
@@ -15,6 +15,7 @@ apps:
onionshare:
common-id: org.onionshare.OnionShare
command: onionshare
+ extensions: [ gnome-3-34 ]
plugs:
- desktop
- home
@@ -125,7 +126,7 @@ parts:
- setuptools
- pynacl
- colorama
- - git+https://github.com/onionshare/stem.git@1.8.1
+ - cepa == 1.8.3
stage-packages:
- build-essential
- libssl-dev
@@ -135,11 +136,11 @@ parts:
stage:
- -usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
- -usr/share/doc/libssl1.1/changelog.Debian.gz
- after: [tor, obfs4]
+ after: [tor, obfs4, snowflake-client, meek-client]
tor:
- source: https://dist.torproject.org/tor-0.4.6.7.tar.gz
- source-checksum: sha256/ff665ce121b2952110bd98b9c8741b5593bf6c01ac09033ad848ed92c2510f9a
+ source: https://dist.torproject.org/tor-0.4.6.8.tar.gz
+ source-checksum: sha256/15ce1a37b4cc175b07761e00acdcfa2c08f0d23d6c3ab9c97c464bd38cc5476a
source-type: tar
plugin: autotools
build-packages:
@@ -158,3 +159,24 @@ parts:
go-importpath: gitlab.com/yawning/obfs4
source: https://gitlab.com/yawning/obfs4
source-type: git
+
+ snowflake-client:
+ plugin: go
+ go-importpath: git.torproject.org/pluggable-transports/snowflake.git/client
+ source: https://git.torproject.org/pluggable-transports/snowflake.git
+ source-type: git
+ source-tag: v2.0.1
+ organize:
+ bin/client: bin/snowflake-client
+
+ meek-client:
+ plugin: go
+ go-channel: stable
+ go-importpath: git.torproject.org/pluggable-transports/meek.git/meek-client
+ # Not sure why I have to do this, but it works
+ override-build: |
+ cd meek-client
+ go build -o /root/parts/meek-client/install/bin ./...
+ source: https://git.torproject.org/pluggable-transports/meek.git
+ source-type: git
+ source-tag: v0.37.0