From 90c32646faee5612fba70273f9937e4d18e1ec9f Mon Sep 17 00:00:00 2001 From: Daniel Safta Date: Mon, 19 Jul 2021 15:33:24 +0300 Subject: [PATCH] Changed dependencies for cgcs-patch pkgs Added pycryptodomex as depdendency needed for packaging cgcs-patch. When running tox on patch-alarm with py36 env, it raises an exception, when trying to import Cryptodome. There is also a workaround here: https://review.opendev.org/c/starlingx/config/+/800099 Story: 2008454 Task: 42768 Signed-off-by: Daniel Safta Change-Id: Ic97d7779e601026c362110c706168f328dcd65be (cherry picked from commit 614e73687e812c74239413182a97916fb6826db0) --- cgcs-patch/cgcs-patch/setup.cfg | 4 ++++ cgcs-patch/cgcs-patch/setup.py | 3 +++ 2 files changed, 7 insertions(+) diff --git a/cgcs-patch/cgcs-patch/setup.cfg b/cgcs-patch/cgcs-patch/setup.cfg index 70f3dbfd..74627812 100644 --- a/cgcs-patch/cgcs-patch/setup.cfg +++ b/cgcs-patch/cgcs-patch/setup.cfg @@ -20,3 +20,7 @@ packages = [wheel] universal = 1 + +[options] +install_requires = + pycryptodomex \ No newline at end of file diff --git a/cgcs-patch/cgcs-patch/setup.py b/cgcs-patch/cgcs-patch/setup.py index 25a080d8..5e77c1ea 100644 --- a/cgcs-patch/cgcs-patch/setup.py +++ b/cgcs-patch/cgcs-patch/setup.py @@ -13,6 +13,9 @@ setuptools.setup( version='1.0', description='CGCS Patch', packages=setuptools.find_packages(), + install_requires=[ + 'pycryptodomex', + ], package_data={ # Include templates '': ['templates/*'],