-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
58 lines (49 loc) · 1.75 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
import os
from setuptools import setup, find_packages
def get_release_info():
from importlib.util import spec_from_file_location, module_from_spec
from pathlib import Path
path = Path(__file__).parent / "PAScual" / "release.py"
spec = spec_from_file_location("release", path.as_posix())
module = module_from_spec(spec)
spec.loader.exec_module(module)
return module
release = get_release_info()
# entry points to create scripts
entry_points = {
"console_scripts": [
"pascual_batch = PAScual.PAScual:start",
"pascual = PAScual.PAScualGUI:main",
"pascual_TEcalc = PAScual.TEcalcGUI:main",
]
}
# classifiers
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: X11 Applications :: Qt",
"Environment :: Win32 (MS Windows)",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Scientific/Engineering",
]
# call setup()
setup(
name="PAScual",
version=release.__version__,
url=release.__homepage__,
license="GPLv3",
author="Carlos Pascual-Izarra",
author_email="[email protected]",
description="Positron Annihilation Spectroscopy data analysis",
long_description=open(os.path.join(os.path.dirname(__file__), "README.md")).read(),
long_description_content_type="text/markdown",
keywords="science PALS PAS positron annihilation fit",
packages=find_packages(),
include_package_data=True,
entry_points=entry_points,
install_requires=["numpy", "scipy", "PythonQwt", "pyqt5"],
classifiers=classifiers,
)