-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·44 lines (36 loc) · 1.31 KB
/
Copy pathsetup.py
File metadata and controls
executable file
·44 lines (36 loc) · 1.31 KB
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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function, unicode_literals
import os
import re
from io import open # Python 2
from os import path
from setuptools import find_packages, setup
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
def lookup_version():
with open(os.path.join('zernike', 'version.py'), 'r') as f:
m = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", f.read(), re.M)
return m.group(1)
setup(
name='zernike',
version=lookup_version(),
description='Python code for Zernike polynomials',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/jacopoantonello/zernike',
author='Jacopo Antonello',
author_email='jacopo@antonello.org',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Topic :: Scientific/Engineering :: Physics',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 3',
],
install_requires=['numpy', 'h5py'],
extras_require={'plotting': ['matplotlib']},
packages=find_packages(exclude=['tests*', 'examples*']),
python_requires='>=2.7',
)