Skip to content

Commit

Permalink
Format for PyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettj403 committed Apr 15, 2020
1 parent 86d5d76 commit ce85e93
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 23 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
global-include *.mplstyle
33 changes: 10 additions & 23 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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="[email protected]",
description="Format Matplotlib for scientific plotting",
long_description=long_description,
long_description_content_type='text/markdown',
license="MIT",
keywords=[
"matplotlib-style-sheets",
Expand All @@ -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,},
)

0 comments on commit ce85e93

Please sign in to comment.