From 44c511c75f5c6599b15d8e50d03e3d4072a24e6b Mon Sep 17 00:00:00 2001 From: Patrick Guo Date: Mon, 25 Nov 2024 14:12:24 -0500 Subject: [PATCH] bug fix: adding long_description_content_type attribute to setup.py --- setup.py | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/setup.py b/setup.py index 924edc9..07b515b 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,4 @@ # pylint: disable='missing-module-docstring -import os import shutil from setuptools import setup @@ -8,17 +7,8 @@ class CustomInstall(install): # pylint: disable='missing-class-docstring def run(self): - for root, dirs, files in os.walk(os.getcwd()): - level = root.replace(os.getcwd(), '').count(os.sep) - indent = ' ' * 4 * (level) - print('{}{}/'.format(indent, os.path.basename(root))) - subindent = ' ' * 4 * (level + 1) - for f in files: - print('{}{}'.format(subindent, f)) - print(os.getcwd()) - print(__file__) shutil.copytree('./src/rs232_to_pdu/devices/', - '/usr/share/rs232-to-pdu/devices/', + '/tmp/rs232-to-pdu/devices/', dirs_exist_ok=True) super().run() @@ -35,6 +25,7 @@ def run(self): description='Converts RS232 serial data to SNMP commands to control PDUs.', long_description=readme.read(), + long_description_content_type='text/markdown', install_requires=[ 'APScheduler==3.10.4',