-
Notifications
You must be signed in to change notification settings - Fork 715
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up setup.py Update README.md Update CHANGES.md
- Loading branch information
1 parent
f49a826
commit 6545c72
Showing
3 changed files
with
9 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,45 +5,8 @@ | |
must be called before plt.style.use(...). | ||
""" | ||
|
||
# Commented out code is due to how installation was made. | ||
# That code is based on a StackOverflow answer: | ||
# https://stackoverflow.com/questions/31559225/how-to-ship-or-distribute-a-matplotlib-stylesheet | ||
# It will remain here until a decision is made on if we should uninstall old versions or just ignore the issue. | ||
|
||
# import atexit | ||
# import glob | ||
import os | ||
# import shutil | ||
|
||
# import matplotlib | ||
from setuptools import setup | ||
# from setuptools.command.install import install | ||
|
||
|
||
# def install_styles(): | ||
# # Find all style files | ||
# stylefiles = glob.glob('styles/**/*.mplstyle', recursive=True) | ||
# # Find stylelib directory (where the *.mplstyle files go) | ||
# mpl_stylelib_dir = os.path.join(matplotlib.get_configdir(), "stylelib") | ||
# if not os.path.exists(mpl_stylelib_dir): | ||
# os.makedirs(mpl_stylelib_dir) | ||
# # Copy files over | ||
# print("Installing styles into", mpl_stylelib_dir) | ||
# for stylefile in stylefiles: | ||
# print(os.path.basename(stylefile)) | ||
# shutil.copy( | ||
# stylefile, | ||
# os.path.join(mpl_stylelib_dir, os.path.basename(stylefile))) | ||
|
||
|
||
# ('notebook.mplstyle', 'scatter.mplstyle', 'science.mplstyle', 'bright.mplstyle', 'high-contrast.mplstyle', 'high-vis.mplstyle', 'light.mplstyle', 'muted.mplstyle', 'retro.mplstyle', 'std-colors.mplstyle', 'vibrant.mplstyle', 'ieee.mplstyle', 'nature.mplstyle', 'cjk-jp-font.mplstyle', 'cjk-kr-font.mplstyle', 'cjk-sc-font.mplstyle', 'cjk-tc-font.mplstyle', 'grid.mplstyle', 'latex-sans.mplstyle', 'no-latex.mplstyle', 'pgf.mplstyle', 'russian-font.mplstyle', 'sans.mplstyle') | ||
|
||
|
||
# class PostInstallMoveFile(install): | ||
# def __init__(self, *args, **kwargs): | ||
# super().__init__(*args, **kwargs) | ||
# atexit.register(install_styles) | ||
|
||
|
||
# Get description from README | ||
root = os.path.abspath(os.path.dirname(__file__)) | ||
|
@@ -52,7 +15,7 @@ | |
|
||
setup( | ||
name='SciencePlots', | ||
version='1.0.9', | ||
version='1.1.0', | ||
author="John Garrett", | ||
author_email="[email protected]", | ||
description="Format Matplotlib for scientific plotting", | ||
|
@@ -80,5 +43,4 @@ | |
"matplotlib-styles", | ||
"python" | ||
], | ||
# cmdclass={'install': PostInstallMoveFile, }, | ||
) |