From af8b72b1c4b67a99859aff9bcd3f564937a31843 Mon Sep 17 00:00:00 2001 From: algerchen Date: Wed, 13 Jan 2021 21:12:17 +0200 Subject: [PATCH] Updated setup.py file inside mylibrary folder to get the long_description from the README.md file. Also, added minimum steps for 'twine check dist/*' to work to enable publishing to PyPi --- mylibrary/setup.py | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/mylibrary/setup.py b/mylibrary/setup.py index f9c0835..9f96151 100644 --- a/mylibrary/setup.py +++ b/mylibrary/setup.py @@ -3,10 +3,32 @@ Setup file created """ from setuptools import setup +from os import path + +this_directory = path.abspath(path.dirname(__file__)) +with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f: + long_description = f.read() + setup(name='mylibrary', version='0.1', description='Test', author='Shahnawaz Ahmed, Nathan Shammah', - packages = ['mylibrary'] - ) + packages=['mylibrary'], + long_description=long_description, + long_description_content_type='text/markdown', + classifiers=[ + "Programming Language :: Python", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", + "Framework:: Jupyter", + "Intended Audience :: Science/Research", + "Natural Language :: English", + "Topic:: Education" + "Topic:: Documentation :: Sphinx", + "Topic:: Software Development:: Build Tools", + "Topic:: Software Development:: Libraries:: nbconvert", + "Topic :: Software Development :: Testing", + "Topic :: Software Development :: Version Control :: Git", + ], + )