-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
53 lines (47 loc) · 1.7 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
import re
from setuptools import setup
# load version form _version.py
VERSIONFILE = "sif_parser/_version.py"
with open(VERSIONFILE, 'rt', encoding='utf-8') as f:
verstrline = f.read()
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
mo = re.search(VSRE, verstrline, re.M)
if mo:
verstr = mo.group(1)
else:
raise RuntimeError(f"Unable to find version string in {VERSIONFILE}.")
# README
with open('README.md', 'r', encoding='utf-8') as f:
long_desc = f.read()
# module
setup(name='sif_parser',
version=verstr,
author="Keisuke Fujii",
author_email="[email protected]",
description=("Python package to read Andor sif file."),
long_description=long_desc,
long_description_content_type='text/markdown',
license="BSD 3-clause",
keywords="imaging, Andor",
url="https://github.com/fujiisoup/sif_parser",
packages=["sif_reader", "sif_parser"],
package_dir={'sif_reader': 'sif_reader', 'sif_parser': 'sif_parser'},
py_modules=['sif_parser.__init__'],
test_suite='testings',
install_requires=[
'numpy>=1.10',
'pandas'],
classifiers=['License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 3.6',
'Topic :: Scientific/Engineering :: Physics'],
entry_points={
'console_scripts': ['sif_parser=sif_parser.__main__:_main']
}
)