morango 0.8.2__tar.gz → 0.8.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of morango might be problematic. Click here for more details.
- {morango-0.8.2 → morango-0.8.3}/CHANGELOG.md +4 -0
- {morango-0.8.2 → morango-0.8.3}/PKG-INFO +1 -1
- morango-0.8.3/morango/__init__.py +1 -0
- {morango-0.8.2 → morango-0.8.3}/morango/models/fields/crypto.py +18 -1
- {morango-0.8.2 → morango-0.8.3}/morango.egg-info/PKG-INFO +1 -1
- {morango-0.8.2 → morango-0.8.3}/morango.egg-info/requires.txt +1 -1
- {morango-0.8.2 → morango-0.8.3}/setup.py +1 -1
- morango-0.8.2/morango/__init__.py +0 -1
- {morango-0.8.2 → morango-0.8.3}/AUTHORS.md +0 -0
- {morango-0.8.2 → morango-0.8.3}/LICENSE +0 -0
- {morango-0.8.2 → morango-0.8.3}/MANIFEST.in +0 -0
- {morango-0.8.2 → morango-0.8.3}/README.md +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/api/__init__.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/api/fields.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/api/parsers.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/api/permissions.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/api/serializers.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/api/urls.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/api/viewsets.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/apps.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/constants/__init__.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/constants/api_urls.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/constants/capabilities.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/constants/settings.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/constants/transfer_stages.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/constants/transfer_statuses.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/errors.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/management/__init__.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/management/commands/__init__.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/management/commands/cleanupsyncs.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/migrations/0001_initial.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/migrations/0001_squashed_0024_auto_20240129_1757.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/migrations/0002_auto_20170511_0400.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/migrations/0002_store_idx_morango_deserialize.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/migrations/0003_auto_20170519_0543.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/migrations/0004_auto_20170520_2112.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/migrations/0005_auto_20170629_2139.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/migrations/0006_instanceidmodel_system_id.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/migrations/0007_auto_20171018_1615.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/migrations/0008_auto_20171114_2217.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/migrations/0009_auto_20171205_0252.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/migrations/0010_auto_20171206_1615.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/migrations/0011_sharedkey.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/migrations/0012_auto_20180927_1658.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/migrations/0013_auto_20190627_1513.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/migrations/0014_syncsession_extra_fields.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/migrations/0015_auto_20200508_2104.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/migrations/0016_store_deserialization_error.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/migrations/0017_store_last_transfer_session_id.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/migrations/0018_auto_20210714_2216.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/migrations/0019_auto_20220113_1807.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/migrations/0020_postgres_fix_nullable.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/migrations/0021_store_partition_index_create.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/migrations/0022_rename_instance_fields.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/migrations/0023_add_instance_id_fields.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/migrations/0024_auto_20240129_1757.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/migrations/__init__.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/models/__init__.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/models/certificates.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/models/core.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/models/fields/__init__.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/models/fields/uuids.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/models/fsic_utils.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/models/manager.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/models/query.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/models/signals.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/models/utils.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/proquint.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/registry.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/sync/__init__.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/sync/backends/__init__.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/sync/backends/base.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/sync/backends/postgres.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/sync/backends/sqlite.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/sync/backends/utils.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/sync/context.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/sync/controller.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/sync/operations.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/sync/session.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/sync/syncsession.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/sync/utils.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/urls.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango/utils.py +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango.egg-info/SOURCES.txt +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango.egg-info/dependency_links.txt +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango.egg-info/not-zip-safe +0 -0
- {morango-0.8.2 → morango-0.8.3}/morango.egg-info/top_level.txt +0 -0
- {morango-0.8.2 → morango-0.8.3}/requirements/accelerated.txt +0 -0
- {morango-0.8.2 → morango-0.8.3}/requirements/dev.txt +0 -0
- {morango-0.8.2 → morango-0.8.3}/requirements/docs.txt +0 -0
- {morango-0.8.2 → morango-0.8.3}/requirements/postgres.txt +0 -0
- {morango-0.8.2 → morango-0.8.3}/requirements/test.txt +0 -0
- {morango-0.8.2 → morango-0.8.3}/setup.cfg +0 -0
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
List of the most important changes for each release.
|
|
4
4
|
|
|
5
|
+
## 0.8.3
|
|
6
|
+
- Adds error handling in the case that an incompatible cffi version is used in with Python 3.13
|
|
7
|
+
- Update Python rsa package dependency to 4.9
|
|
8
|
+
|
|
5
9
|
## 0.8.2
|
|
6
10
|
- Adds support for Python 3.13
|
|
7
11
|
- Adds conditional index to improve deserialization queries
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.8.3"
|
|
@@ -6,6 +6,7 @@ desirability/efficiency from left to right). We have a base ``Key`` class which
|
|
|
6
6
|
"""
|
|
7
7
|
import hashlib
|
|
8
8
|
import re
|
|
9
|
+
import sys
|
|
9
10
|
|
|
10
11
|
import rsa as PYRSA
|
|
11
12
|
from django.db import models
|
|
@@ -20,6 +21,16 @@ except ImportError:
|
|
|
20
21
|
M2CRYPTO_EXISTS = False
|
|
21
22
|
|
|
22
23
|
try:
|
|
24
|
+
# Pre-empt the PanicException that importing cryptography can cause
|
|
25
|
+
# when we are using a non-compatible version of cffi on Python 3.13
|
|
26
|
+
# this happens because of static depdendency bundling in Kolibri
|
|
27
|
+
import cffi
|
|
28
|
+
|
|
29
|
+
if sys.version_info > (3, 13):
|
|
30
|
+
if hasattr(cffi, "__version_info__"):
|
|
31
|
+
if cffi.__version_info__ < (1, 17, 1):
|
|
32
|
+
raise ImportError
|
|
33
|
+
|
|
23
34
|
from cryptography.hazmat.backends import default_backend
|
|
24
35
|
from cryptography import exceptions as crypto_exceptions
|
|
25
36
|
|
|
@@ -39,7 +50,13 @@ try:
|
|
|
39
50
|
CRYPTOGRAPHY_EXISTS = True
|
|
40
51
|
except ImportError:
|
|
41
52
|
CRYPTOGRAPHY_EXISTS = False
|
|
42
|
-
|
|
53
|
+
except BaseException as e:
|
|
54
|
+
# Still catch PanicExceptions just in case.
|
|
55
|
+
if "Python API call failed" in str(e):
|
|
56
|
+
CRYPTOGRAPHY_EXISTS = False
|
|
57
|
+
else:
|
|
58
|
+
# Otherwise raise the error again to avoid silently catching other errors
|
|
59
|
+
raise
|
|
43
60
|
|
|
44
61
|
from base64 import encodebytes as b64encode, decodebytes as b64decode
|
|
45
62
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.8.2"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|