-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathsetup.py
32 lines (25 loc) · 846 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
27
28
29
30
31
32
from os.path import join
from pip.req import parse_requirements
from setuptools import setup, find_packages
package_name = 'mpl_style_gallery'
install_reqs = list(parse_requirements('requirements.txt'))
requirements = [str(ir.req) for ir in install_reqs]
info = {}
init_py = join(package_name, '__init__.py')
with open(init_py) as f:
code = compile(f.read(), init_py, 'exec')
exec(code, info)
setup(
name=package_name,
version=info['__version__'],
author='Tony S. Yu',
author_email='[email protected]',
maintainer='Tony S. Yu',
maintainer_email='[email protected]',
description='Gallery for Matplotlib stylesheets',
url='https://github.com/tonysyu/matplotlib-style-gallery',
include_package_data=True,
install_requires=requirements,
license='Modified BSD',
packages=find_packages(),
)