-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Little cleanup release in preparation for the debain freeze.
- Removed some unsafe debug code - Cleaned up serialization a little - Cleaned up dependencies a little
- Loading branch information
Tim Henkes
committed
Dec 15, 2018
1 parent
c6e9fad
commit 1d74f13
Showing
9 changed files
with
59 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
serializable | ||
============ | ||
|
||
.. autoclass:: x3dh.Serializable | ||
:members: | ||
:special-members: | ||
:member-order: bysource | ||
:exclude-members: __dict__, __weakref__, __module__ | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
cryptography>=1.7.1 | ||
XEdDSA>=0.4.2 | ||
XEdDSA>=0.4.5,<0.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,7 @@ | |
author_email = "[email protected]", | ||
license = "MIT", | ||
packages = find_packages(), | ||
install_requires = [ "cryptography>=1.7.1", "XEdDSA>=0.4.2" ], | ||
install_requires = [ "cryptography>=1.7.1", "XEdDSA>=0.4.5,<0.5" ], | ||
python_requires = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4", | ||
zip_safe = False, | ||
classifiers = [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
class Serializable(object): | ||
def serialize(self): | ||
""" | ||
:returns: A serializable Python structure, which contains all the state | ||
information of this object. | ||
Use together with the fromSerialized method. | ||
Here, "serializable" means, that the structure consists of any combination of the | ||
following types: | ||
* dictionaries | ||
* lists | ||
* strings | ||
* integers | ||
* floats | ||
* booleans | ||
* None | ||
""" | ||
|
||
return None | ||
|
||
@classmethod | ||
def fromSerialized(cls, serialized, *args, **kwargs): | ||
""" | ||
:param serialized: A serializable Python object. | ||
:returns: Return a new instance that was set to the state that was saved into the | ||
serialized object. | ||
Use together with the serialize method. | ||
Notice: You have to pass all positional parameters required by the constructor of | ||
the class you call fromSerialized on. | ||
""" | ||
|
||
return cls(*args, **kwargs) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "0.5.5" | ||
__version__ = "0.5.6" |