-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathsetup.py
40 lines (37 loc) · 1.46 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
import setuptools
import mantis_xray
import platform
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
deps_list = ['PyQt5>=5.15.9','numpy', 'scipy>=1.11.4', 'matplotlib>=3.6.0', 'h5py', 'Pillow', 'lxml', 'pyqtgraph>=0.13.7', "scikit-image>=0.19.1"]
python_version = platform.python_version_tuple()
if int(python_version[0]) >= 3 and int(python_version[1]) >= 13:
deps_list = deps_list + ["xdrlib3"]
setuptools.setup(
name="mantis-xray",
version=mantis_xray.__version__,
author="Mirna Lerotic",
author_email="[email protected]",
description="MANTiS is a Multivariate ANalysis Tool for x-ray Spectromicroscopy",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://spectromicroscopy.com/",
project_urls={
"Code": "https://github.com/mlerotic/spectromicroscopy",
"Documentation": "https://docs.spectromicroscopy.com",
},
install_requires=deps_list,
extras_require={
"netCDF": "netcdf4-python"},
entry_points={
"gui_scripts": "mantis-xray = mantis_xray.mantis_qt:main"},
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering",
],
packages=setuptools.find_packages(),
include_package_data=True,
python_requires=">=3",
)