forked from scholi/pySPM
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
43 lines (41 loc) · 1.64 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
from setuptools import setup, find_packages
import re
def description():
with open('README.md') as f:
return f.read()
def find_version():
with open("pySPM/__init__.py",'r') as fp:
src = fp.read()
version_match = re.search(r"^__version__\s*=\s*['\"]([^'\"]*)['\"]", src, re.M)
if version_match:
return version_match.group(1)
raise RuntimeError("Unable to find vesrion string.")
setup(
name="pySPM",
version=find_version(),
description="library to handle SPM and ToF-SIMS data",
long_description=description(),
long_description_content_type="text/markdown",
url="https://github.com/scholi/pySPM",
author = "Olivier Scholder",
author_email = "[email protected]",
license="Apache 2.0",
keywords='tof sims iontof spm sfm sxm afm kpfm pca imaging ita itm bruker nanonis',
packages=find_packages(exclude=['contrib','docs','tests']),
package_data={'pySPM':['data/elements.db','data/test.sxm']},
include_package_data=True,
entry_points = {
'console_scripts' : [],
'gui_scripts':['stability=pySPM.tools.stability:main','timer=pySPM.tools.tof_timer:main', 'plotter=pySPM.tools.emission_current_plotter:main',
'spectra=pySPM.tools.spectra:main']
},
install_requires=['numpy','scipy','pandas','scikit-image','scikit-learn','matplotlib'],
classifiers=[
'Development Status :: 4 - Beta',
'Topic :: Scientific/Engineering',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
],
)