-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
26 lines (21 loc) · 714 Bytes
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
"""Install StonerPlots.
This script (setup.py) will install the StonerPlots package.
In order to expose .mplstyle files to matplotlib, "import stonerplots"
must be called before plt.style.use(...).
"""
import os
from setuptools import setup
# 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()
setup(
name='StonerPlots',
description="Format Matplotlib for physics plotting",
long_description=long_description,
long_description_content_type='text/markdown',
packages=["stonerplots"],
package_data={
'stonerplots': ['styles/**/*.mplstyle'],
},
)