Skip to content

Commit 6545c72

Browse files
committed
Bump to v1.1.0
Clean up setup.py Update README.md Update CHANGES.md
1 parent f49a826 commit 6545c72

File tree

3 files changed

+9
-40
lines changed

3 files changed

+9
-40
lines changed

CHANGES.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
v1.1.0 (07-Nov-2022)
2+
====================
3+
- Major change in distribution system
4+
- Now needs import directive `import scienceplots`
5+
- Fix not using raw string in `plot-example.py`
6+
- Update README
7+
18
v1.0.9 (16-Sep-2021)
29
====================
310

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ cd SciencePlots
3232
pip install -e .
3333
```
3434

35-
The pip installation will automatically move all of the Matplotlib style files `*.mplstyle` into the appropriate directory on your computer.
35+
From version `v1.1.0` on, `import scienceplots` is needed on top of your scripts so Matplotlib can make use of the styles.
3636

3737
**Notes:**
3838
- SciencePlots requires Latex ([see Latex installation instructions](https://github.com/garrettj403/SciencePlots/wiki/FAQ#installing-latex)).

setup.py

Lines changed: 1 addition & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -5,45 +5,8 @@
55
must be called before plt.style.use(...).
66
"""
77

8-
# Commented out code is due to how installation was made.
9-
# That code is based on a StackOverflow answer:
10-
# https://stackoverflow.com/questions/31559225/how-to-ship-or-distribute-a-matplotlib-stylesheet
11-
# It will remain here until a decision is made on if we should uninstall old versions or just ignore the issue.
12-
13-
# import atexit
14-
# import glob
158
import os
16-
# import shutil
17-
18-
# import matplotlib
199
from setuptools import setup
20-
# from setuptools.command.install import install
21-
22-
23-
# def install_styles():
24-
# # Find all style files
25-
# stylefiles = glob.glob('styles/**/*.mplstyle', recursive=True)
26-
# # Find stylelib directory (where the *.mplstyle files go)
27-
# mpl_stylelib_dir = os.path.join(matplotlib.get_configdir(), "stylelib")
28-
# if not os.path.exists(mpl_stylelib_dir):
29-
# os.makedirs(mpl_stylelib_dir)
30-
# # Copy files over
31-
# print("Installing styles into", mpl_stylelib_dir)
32-
# for stylefile in stylefiles:
33-
# print(os.path.basename(stylefile))
34-
# shutil.copy(
35-
# stylefile,
36-
# os.path.join(mpl_stylelib_dir, os.path.basename(stylefile)))
37-
38-
39-
# ('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')
40-
41-
42-
# class PostInstallMoveFile(install):
43-
# def __init__(self, *args, **kwargs):
44-
# super().__init__(*args, **kwargs)
45-
# atexit.register(install_styles)
46-
4710

4811
# Get description from README
4912
root = os.path.abspath(os.path.dirname(__file__))
@@ -52,7 +15,7 @@
5215

5316
setup(
5417
name='SciencePlots',
55-
version='1.0.9',
18+
version='1.1.0',
5619
author="John Garrett",
5720
author_email="[email protected]",
5821
description="Format Matplotlib for scientific plotting",
@@ -80,5 +43,4 @@
8043
"matplotlib-styles",
8144
"python"
8245
],
83-
# cmdclass={'install': PostInstallMoveFile, },
8446
)

0 commit comments

Comments
 (0)