From 66f2ba98ecf11f2ded927b827f1795e0b5aea41f Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 25 Apr 2022 16:15:49 -0400 Subject: [PATCH] Set up confluent licensisng in setupdist context --- confluent_client/setup.py.tmpl | 1 + confluent_server/makesetup | 1 + confluent_server/setup.py.tmpl | 1 + 3 files changed, 3 insertions(+) diff --git a/confluent_client/setup.py.tmpl b/confluent_client/setup.py.tmpl index 34199a2b..9a12fc58 100644 --- a/confluent_client/setup.py.tmpl +++ b/confluent_client/setup.py.tmpl @@ -17,6 +17,7 @@ setup( author_email='jjohnson2@lenovo.com', url='http://xcat.sf.net/', packages=['confluent'], + license_files=['LICENSE'], scripts=scriptlist, data_files=data_files, ) diff --git a/confluent_server/makesetup b/confluent_server/makesetup index 44e7293f..f20e2d25 100755 --- a/confluent_server/makesetup +++ b/confluent_server/makesetup @@ -9,3 +9,4 @@ sed -e "s/#VERSION#/$VERSION/" setup.py.tmpl > setup.py if [ -f confluent/client.py ]; then echo '__version__ = "'$VERSION'"' > confluent/__init__.py fi +cp ../LICENSE . diff --git a/confluent_server/setup.py.tmpl b/confluent_server/setup.py.tmpl index e81fb811..74c52835 100644 --- a/confluent_server/setup.py.tmpl +++ b/confluent_server/setup.py.tmpl @@ -19,6 +19,7 @@ setup( 'confluent/plugins/shell/', 'confluent/collective/', 'confluent/plugins/configuration/'], + license_files=['LICENSE'], install_requires=['paramiko', 'pycrypto>=2.6', 'confluent_client>=0.1.0', 'eventlet', 'dnspython', 'netifaces', 'pysnmp', 'pyparsing', 'pyghmi>=1.0.44'],