From ae6b8f443c87e999d6ab10837a51ba8260bfb31d Mon Sep 17 00:00:00 2001 From: "emdee@spm.plastiras.org" Date: Mon, 18 Dec 2023 06:30:54 +0000 Subject: [PATCH] update --- .rsync.sh | 7 +++++++ tox_profile.py | 14 +++++++------- 2 files changed, 14 insertions(+), 7 deletions(-) create mode 100644 .rsync.sh diff --git a/.rsync.sh b/.rsync.sh new file mode 100644 index 0000000..b799a0f --- /dev/null +++ b/.rsync.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +find * -name \*.py | xargs grep -l '[ ]*$' | xargs sed -i -e 's/[ ]*$//' +rsync "$@" -vax --include \*.py \ + --exclude Toxygen.egg-info --exclude build \ + --exclude \*.pyc --exclude .pyl\* --exclude \*~ --exclude \*.so \ + ./ ../tox_profile.git/|grep -v /$ diff --git a/tox_profile.py b/tox_profile.py index dc92d2f..e45fea2 100644 --- a/tox_profile.py +++ b/tox_profile.py @@ -74,7 +74,7 @@ from socket import AF_INET, AF_INET6, inet_ntop warnings.filterwarnings('ignore') -from wrapper_tests import support_testing as ts +from tox_wrapper.tests import support_testing as ts try: # https://pypi.org/project/msgpack/ @@ -103,17 +103,17 @@ except ImportError as e: # noqa try: # https://git.plastiras.org/emdee/toxygen_wrapper - from wrapper.toxencryptsave import ToxEncryptSave - from wrapper_tests import support_testing as ts - from wrapper_tests.support_http import bAreWeConnected, download_url - from wrapper_tests.support_testing import sTorResolve + from tox_wrapper.toxencryptsave import ToxEncryptSave + from tox_wrapper.tests import support_testing as ts + from tox_wrapper.tests.support_http import bAreWeConnected, download_url + from tox_wrapper.tests.support_testing import sTorResolve except ImportError as e: print(f"Import Warning {e}") print("Download toxygen_wrapper to deal with encrypted tox files, from:") print("https://git.plastiras.org/emdee/toxygen_wrapper") - print("Just put the parent of the wrapper directory on your PYTHONPATH") + print("Just put the parent of the tox_wrapper directory on your PYTHONPATH") print("You also need to link your libtoxcore.so and libtoxav.so") - print("and libtoxencryptsave.so into wrapper/../libs/") + print("and libtoxencryptsave.so into tox_wrapper/../libs/") print("Link all 3 from libtoxcore.so if you have only libtoxcore.so") ToxEncryptSave = None download_url = None