From ce85e936c0ae53296a76e2a7505c7ee06640c945 Mon Sep 17 00:00:00 2001 From: John Garrett Date: Wed, 15 Apr 2020 17:24:26 -0400 Subject: [PATCH] Format for PyPI --- MANIFEST.in | 1 + setup.py | 33 ++++++++++----------------------- 2 files changed, 11 insertions(+), 23 deletions(-) create mode 100644 MANIFEST.in diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..67c7fd2 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1 @@ +global-include *.mplstyle \ No newline at end of file diff --git a/setup.py b/setup.py index 76c2448..04d35d9 100644 --- a/setup.py +++ b/setup.py @@ -17,6 +17,11 @@ from setuptools.command.install import install +# Get description from README +root = os.path.abspath(os.path.dirname(__file__)) +with open(os.path.join(root, 'README.md'), 'r', encoding='utf-8') as f: + long_description = f.read() + def install_styles(): # Find all style files @@ -42,10 +47,12 @@ def __init__(self, *args, **kwargs): setup( name='SciencePlots', - version='1.0.0', + version='1.0.3', author="John Garrett", author_email="garrettj403@gmail.com", description="Format Matplotlib for scientific plotting", + long_description=long_description, + long_description_content_type='text/markdown', license="MIT", keywords=[ "matplotlib-style-sheets", @@ -56,26 +63,6 @@ def __init__(self, *args, **kwargs): "python" ], url="https://github.com/garrettj403/SciencePlots/", - # py_modules=['styles'], - package_data = { - 'styles': [ - "misc/no-latex.mplstyle", - "misc/pgf.mplstyle", - "science.mplstyle", - "color/muted.mplstyle", - "color/vibrant.mplstyle", - "color/high-vis.mplstyle", - "color/bright.mplstyle", - "color/retro.mplstyle", - "scatter.mplstyle", - "journals/ieee.mplstyle", - "notebook.mplstyle" - ] - }, - install_requires=[ - 'matplotlib', - ], - cmdclass={ - 'install': PostInstallMoveFile, - } + install_requires=['matplotlib',], + cmdclass={'install': PostInstallMoveFile,}, )