forked from jonathf/chaospy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
36 lines (32 loc) · 1.04 KB
/
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
#!/usr/bin/env python
import inspect
import os
import re
from setuptools import setup, find_packages
# move to current directory:
os.chdir(os.path.dirname(os.path.abspath(__file__)))
with open(os.path.join("chaospy", "__init__.py")) as src:
regex = r"^__version__\s*=\s*['\"]([^'\"]+)['\"]"
VERSION = re.search(regex, src.read(), flags=re.M).group(1)
with open("README.rst") as src:
LONG_DESCRIPTION = src.read()
setup(
name='chaospy',
version=VERSION,
url='https://github.com/jonathf/chaospy',
author="Jonathan Feinberg",
author_email="[email protected]",
license='MIT',
platforms='any',
packages=find_packages(),
install_requires=["numpy", "scipy"],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Mathematics',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
],
long_description=LONG_DESCRIPTION,
long_description_content_type="text/x-rst",
)