Skip to content

Commit

Permalink
bug fix: adding long_description_content_type attribute to setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Pat-pGuo committed Nov 25, 2024
1 parent 9a2b2ee commit 44c511c
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# pylint: disable='missing-module-docstring
import os
import shutil

from setuptools import setup
Expand All @@ -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()
Expand All @@ -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',
Expand Down

0 comments on commit 44c511c

Please sign in to comment.