Add test suite to setup.py

This commit is contained in:
Dan 2019-06-13 16:40:23 +02:00
parent f07c2ea4ab
commit 780f78c840
2 changed files with 2 additions and 4 deletions

View File

@ -153,12 +153,9 @@ print(data == cbc_decrypted) # True
## Testing ## Testing
1. Install the package: `pip3 install -U tgcrypto`.
2. Clone this repository: `git clone https://github.com/pyrogram/tgcrypto`. 2. Clone this repository: `git clone https://github.com/pyrogram/tgcrypto`.
3. Enter the directory: `cd tgcrypto`. 3. Enter the directory: `cd tgcrypto`.
4. Run tests: `python3 -m unittest`. 4. Run tests: `python3 setup.py test`.
**Note**: I haven't found any public test vectors for AES256-IGE, yet.
## License ## License

View File

@ -65,6 +65,7 @@ setup(
}, },
python_requires="~=3.4", python_requires="~=3.4",
packages=find_packages(), packages=find_packages(),
test_suite="tests",
zip_safe=False, zip_safe=False,
ext_modules=[ ext_modules=[
Extension( Extension(