From 78484c070cc076ae6eef0de3bb615c4533cd68f1 Mon Sep 17 00:00:00 2001 From: Siddhesh Agarwal Date: Mon, 5 Sep 2022 19:58:15 +0530 Subject: [PATCH] version 1.0.0 release --- cryptmoji/__init__.py | 5 ++++- cryptmoji/main.py | 11 +---------- pyproject.toml | 6 +++--- tests/test_cryptmoji.py | 2 +- 4 files changed, 9 insertions(+), 15 deletions(-) diff --git a/cryptmoji/__init__.py b/cryptmoji/__init__.py index d3ec452..f9fa638 100644 --- a/cryptmoji/__init__.py +++ b/cryptmoji/__init__.py @@ -1 +1,4 @@ -__version__ = "0.2.0" +from cryptmoji.data import LENGTH, emojis +from cryptmoji.main import Cryptmoji + +__version__ = "1.0.0" diff --git a/cryptmoji/main.py b/cryptmoji/main.py index e42f99b..ecdd4e6 100644 --- a/cryptmoji/main.py +++ b/cryptmoji/main.py @@ -1,4 +1,4 @@ -from data import LENGTH, emojis +from cryptmoji.data import LENGTH, emojis class Cryptmoji: @@ -59,12 +59,3 @@ def decrypt(self) -> str: decrypted = [emojis_2_int[i] for i in range(len(emojis_2_int))] self.text = [chr(i) for i in decrypted] return "".join(self.text) - - -if __name__ == "__main__": - text = "Hello World!" - key = "random_key" - a = Cryptmoji(text, key) - encrypted = a.encrypt() - print(encrypted) - print(a.decrypt()) diff --git a/pyproject.toml b/pyproject.toml index 38b1f93..5bc7881 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,9 +1,9 @@ [tool.poetry] name = "cryptmoji" -version = "0.2.0" +version = "1.0.0" description = "Encrypt Text using emojis!" authors = ["Siddhesh Agarwal "] -license = "MIT" +license = "MIT License" readme = "README.md" repository = "https://github.com/Siddhesh-Agarwal/cryptmoji" keywords = ["encryption", "emoji", "cipher"] @@ -25,7 +25,7 @@ classifiers = [ ] [tool.poetry.dependencies] -python = ">=3.6" +python = "^3.6" [tool.poetry.dev-dependencies] pytest = "^5.2" diff --git a/tests/test_cryptmoji.py b/tests/test_cryptmoji.py index cb7b19c..959f087 100644 --- a/tests/test_cryptmoji.py +++ b/tests/test_cryptmoji.py @@ -2,4 +2,4 @@ def test_version(): - assert __version__ == "0.2.0" + assert __version__ == "1.0.0"