-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
executable file
·60 lines (45 loc) · 1.22 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
"""
Setup script for ottemplate
==========================
This script allows to install ottemplate within the python environment.
Usage
-----
::
pip install .
"""
import re
import os
from distutils.core import setup
from setuptools import find_packages
# Get the version from __init__.py
path = os.path.join(os.path.dirname(__file__), 'ottemplate', '__init__.py')
with open(path) as f:
version_file = f.read()
version = re.search(r"^\s*__version__\s*=\s*['\"]([^'\"]+)['\"]",
version_file, re.M)
if version:
version = version.group(1)
else:
raise RuntimeError("Unable to find version string.")
# Long description
with open("README.rst", "r") as fh:
long_description = fh.read()
setup(
# library name
name='ottemplate',
# code version
version=version,
# list libraries to be imported
packages=find_packages(),
# Descriptions
description="ottemplate",
long_description=long_description,
# List of dependancies
setup_requires=['pytest-runner'],
install_requires=['numpy>=1.13',
'openturns'],
tests_require=['pytest'],
# Enable to take into account MANIFEST.in
# include_package_data=True,
license="LGPL"
)