-
Notifications
You must be signed in to change notification settings - Fork 32
/
setup.py
36 lines (29 loc) · 947 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
33
34
35
36
"""
Setup script for pybo.
"""
import os
import setuptools
def read(fname):
"""Construct the name and descriptions from README.md."""
text = open(os.path.join(os.path.dirname(__file__), fname)).read()
text = text.split('\n\n')
name = text[0].lstrip('#').strip()
description = text[1].strip('.')
long_description = text[2]
return name, description, long_description
def main():
"""Run the setup."""
NAME, DESCRIPTION, LONG_DESCRIPTION = read('README.md')
setuptools.setup(
name=NAME,
version='0.2',
author='Matthew W. Hoffman',
author_email='[email protected]',
url='http://github.com/mwhoffman/' NAME,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
license='Simplified BSD',
packages=setuptools.find_packages(),
install_requires=['numpy', 'scipy', 'reggie', 'ezplot'])
if __name__ == '__main__':
main()