Skip to content

Commit 0f786d2

Browse files
author
John Garrett
committed
Bump version to 1.0.9
1 parent c552fcf commit 0f786d2

File tree

3 files changed

+22
-17
lines changed

3 files changed

+22
-17
lines changed

CHANGES.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
v1.0.9 (16-Sep-2021)
2+
====================
3+
4+
- `notebook`:
5+
- make Latex fonts sans-serif
6+
- Fix bug with Latex packages:
7+
- e.g., `\usepackage{amsmath, amssymb, sfmath}` --> `\usepackage{amsmath} \usepackage{amssymb} \usepackage{sfmath}`
8+
- Add `pyproject.toml` file (see PEP 517/518)
9+
- Minor updates to README, including adding more papers to publication list
10+
111
v1.0.8 (02-Jun-2021)
212
====================
313

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ The easiest way to install SciencePlots is by using `pip`:
2222
pip install SciencePlots
2323

2424
# to install the latest commit (from GitHub)
25-
pip install git+https://github.com/garrettj403/SciencePlots.git
25+
pip install git+https://github.com/garrettj403/SciencePlots
2626

2727
# to clone and then install from a local copy
2828
git clone https://github.com/garrettj403/SciencePlots.git
@@ -301,13 +301,12 @@ Citing SciencePlots
301301
You don't have to cite SciencePlots if you use it but it's nice if you do:
302302
303303
@article{SciencePlots,
304-
author = {John D. Garrett and
305-
Hsin-Hsiang Peng},
304+
author = {John D. Garrett},
306305
title = {{garrettj403/SciencePlots}},
307-
month = feb,
306+
month = sep,
308307
year = 2021,
309308
publisher = {Zenodo},
310-
version = {1.0.7},
309+
version = {1.0.9},
311310
doi = {10.5281/zenodo.4106649},
312311
url = {http://doi.org/10.5281/zenodo.4106649}
313312
}

setup.py

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""Install SciencePlots.
22
3-
This will copy the *.mplstyle files into the appropriate directory.
3+
This script (setup.py) will copy the matplotlib styles (*.mplstyle) into the
4+
appropriate directory on your computer (OS dependent).
45
56
This code is based on a StackOverflow answer:
67
https://stackoverflow.com/questions/31559225/how-to-ship-or-distribute-a-matplotlib-stylesheet
@@ -13,27 +14,17 @@
1314
import shutil
1415

1516
import matplotlib
16-
import matplotlib.pyplot as plt
1717
from setuptools import setup
1818
from setuptools.command.install import install
1919

2020

21-
# Get description from README
22-
root = os.path.abspath(os.path.dirname(__file__))
23-
with open(os.path.join(root, 'README.md'), 'r', encoding='utf-8') as f:
24-
long_description = f.read()
25-
26-
2721
def install_styles():
28-
2922
# Find all style files
3023
stylefiles = glob.glob('styles/**/*.mplstyle', recursive=True)
31-
3224
# Find stylelib directory (where the *.mplstyle files go)
3325
mpl_stylelib_dir = os.path.join(matplotlib.get_configdir(), "stylelib")
3426
if not os.path.exists(mpl_stylelib_dir):
3527
os.makedirs(mpl_stylelib_dir)
36-
3728
# Copy files over
3829
print("Installing styles into", mpl_stylelib_dir)
3930
for stylefile in stylefiles:
@@ -49,9 +40,14 @@ def __init__(self, *args, **kwargs):
4940
atexit.register(install_styles)
5041

5142

43+
# Get description from README
44+
root = os.path.abspath(os.path.dirname(__file__))
45+
with open(os.path.join(root, 'README.md'), 'r', encoding='utf-8') as f:
46+
long_description = f.read()
47+
5248
setup(
5349
name='SciencePlots',
54-
version='1.0.8',
50+
version='1.0.9',
5551
author="John Garrett",
5652
author_email="[email protected]",
5753
description="Format Matplotlib for scientific plotting",

0 commit comments

Comments
 (0)