-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathsetup.py
69 lines (61 loc) · 2.5 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
61
62
63
64
65
66
67
68
69
from setuptools import setup, find_packages
import sys
if sys.version_info.major == 3:
import LaueTools
python3entry_points = {
'console_scripts': [
'lauetools = LaueTools.LaueToolsGUI:start',
'peaksearch = LaueTools.FileSeries.Peak_Search:start',
'indexrefine = LaueTools.FileSeries.Index_Refine:start',
'plotmeshGUI = LaueTools.plotmeshspecGUI:start',
'buildsummary = LaueTools.FileSeries.Build_Summary:start',
'plotmap = LaueTools.FileSeries.Plot_Maps2:start',
'mapanalyzer = LaueTools.FileSeries.mainFileSeriesGUI:start',
'daxmgui = LaueTools.daxmgui:start']}
else:
python3entry_points= {}
# this will be displayed on pypi at the front page of the project
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
name="LaueTools",
use_scm_version=True,
setup_requires=['setuptools_scm'],
#version="3.0.48", ##Automatic versioning from Github Tags
packages=find_packages(),
python_requires='>=2.6 , <3.13',
# Project uses reStructuredText, so ensure that the docutils get
# installed or upgraded on the target machine
install_requires=['docutils>=0.3',
'numpy>=1.0.3',
'scipy>=0.15.0',
'matplotlib>=2.0.0',
'wxpython>=3.0',
'networkx>=2.1',
'tqdm>=4.60.0',
'h5py>=3.1','scikit-image>=0.1.0','astropy>=3.0'], # add fabio libtif ObjectListView2?
include_package_data=True,
# metadata for upload to PyPI
author="J S Micha",
author_email="micha@esrf.fr",
description="Distribution of LaueTools Package from gitlab.esrf.fr repository for pip",
long_description=long_description,
long_description_content_type="text/markdown",
license="MIT",
keywords="Lauetools x-ray scattering data analysis GUI Laue",
url="https://github.com/BM32ESRF/lauetools", # project home page, if any
classifiers=["Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 2.7",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
entry_points = python3entry_points,
# could also include long_description, download_url, classifiers, etc.
)