-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·121 lines (105 loc) · 3.21 KB
/
setup.py
File metadata and controls
executable file
·121 lines (105 loc) · 3.21 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
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
#! /usr/bin/env python
import os
from setuptools import setup, find_packages
from setuptools.command.install import install
NAME = "oasys2"
VERSION = "0.0.42"
DESCRIPTION = "Core component of OASYS 2.0"
with open("README.md", "rt", encoding="utf-8") as f: LONG_DESCRIPTION = f.read()
URL = "https://www.aps.anl.gov/Science/Scientific-Software/OASYS"
AUTHOR = "Manuel Sanchez del Rio & Luca Rebuffi"
AUTHOR_EMAIL = 'lrebuffi@aps.gov'
LICENSE = "BSD3"
DOWNLOAD_URL = 'https://github.com/oasys-kit/OASYS2'
PACKAGES = [
"oasys2",
"oasys2.canvas",
"oasys2.canvas.application",
"oasys2.canvas.menus",
"oasys2.canvas.registry",
"oasys2.canvas.scheme",
"oasys2.canvas.util",
"oasys2.widget",
"oasys2.widget.util",
"oasys2.widget.util.script",
"oasys2.widget.workflow",
"oasys2.widgets",
"oasys2.widgets.abstract",
"oasys2.widgets.abstract.scanning",
"oasys2.widgets.loops",
"oasys2.widgets.tools",
]
PACKAGE_DATA = {
"oasys2.canvas.application": ["data/*.txt"],
"oasys2.canvas.scheme": ["data/*.json"],
"oasys2.canvas": ["icons/*.png", "icons/*.svg"],
"oasys2.widgets.loops": ["icons/*.png", "icons/*.svg"],
"oasys2.widgets.tools": ["icons/*.png", "icons/*.svg"],
}
ENTRY_POINTS = {
'oasys2.widgets' : (
"Oasys Tools = oasys2.widgets.tools",
"Oasys Loops = oasys2.widgets.loops",
)
}
INSTALL_REQUIRES = (
"numpy==2.2.6",
"fabio==2024.9.0",
"scipy==1.16.1",
"importlib_resources",
"importlib_metadata",
"PyQt6==6.9.1",
"srxraylib",
"syned>=1.0.44",
"xoppylib>=1.0.45",
"crystalpy>=0.0.25",
"wofry>=1.0.33",
"wofryimpl>=1.0.33",
"silx==2.2.2",
"h5py==3.14.0",
"orange-canvas-core<=0.2.8",
"orange-widget-base<=4.27.0",
)
CLASSIFIERS = [
'Development Status :: 4 - Beta',
'Environment :: X11 Applications :: Qt',
'Environment :: Console',
'Environment :: Plugins',
'Programming Language :: Python',
'Operating System :: POSIX',
'Operating System :: Microsoft :: Windows',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
'Topic :: Scientific/Engineering :: Visualization',
'Topic :: Software Development :: Libraries :: Python Modules',
'Intended Audience :: Education',
'Intended Audience :: Science/Research',
'Intended Audience :: Developers',
]
EXTRAS_REQUIRE = {
}
PROJECT_URLS = {
"Bug Reports": "https://github.com/oasys-kit/OASYS2/issues",
"Source": "https://github.com/oasys-kit/OASYS2",
"Documentation": "https://orange-canvas-core.readthedocs.io/en/latest/",
}
PYTHON_REQUIRES = ">=3.11"
if __name__ == "__main__":
setup(
name=NAME,
version=VERSION,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
url=URL,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
license=LICENSE,
classifiers=CLASSIFIERS,
packages=PACKAGES,
package_data=PACKAGE_DATA,
entry_points=ENTRY_POINTS,
install_requires=INSTALL_REQUIRES,
extras_require=EXTRAS_REQUIRE,
project_urls=PROJECT_URLS,
python_requires=PYTHON_REQUIRES,
)