-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathsetup.py
executable file
·106 lines (100 loc) · 2.7 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
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
#!/usr/bin/env python3
import glob
from pathlib import Path
from setuptools import setup
import versioneer
manpages = glob.glob("doc/guide/*.1")
KEYWORDS = """\
analysis
data-analysis
gamma-spectroscopy
nuclear-physics
nuclear-spectrum-analysis
physics
python
root
root-cern
spectroscopy
"""
CLASSIFIERS = """\
Development Status :: 5 - Production/Stable
Environment :: Console
Environment :: X11 Applications
Intended Audience :: Information Technology
Intended Audience :: Science/Research
License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)
Natural Language :: English
Operating System :: MacOS
Operating System :: POSIX
Operating System :: POSIX :: Linux
Programming Language :: C
Programming Language :: C++
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Topic :: Scientific/Engineering
Topic :: Scientific/Engineering :: Information Analysis
Topic :: Scientific/Engineering :: Physics
Topic :: Scientific/Engineering :: Visualization
"""
setup(
name="hdtv",
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
description="HDTV - Nuclear Spectrum Analysis Tool",
long_description=(Path(__file__).parent / "README.md").read_text(),
long_description_content_type="text/markdown",
url="https://github.com/janmayer/hdtv",
maintainer="Jan Mayer",
maintainer_email="[email protected]",
license="GPL",
classifiers=CLASSIFIERS.strip().split("\n"),
keywords=KEYWORDS.strip().replace("\n", " "),
install_requires=[
"scipy",
"matplotlib",
"numpy",
"ipython",
"prompt_toolkit>=3.0.14",
"traitlets",
"uncertainties",
],
extras_require={
"dev": ["docutils"],
"test": ["pytest", "pytest-cov"],
},
entry_points={
"console_scripts": [
"hdtv=hdtv.app:run",
]
},
packages=[
"hdtv",
"hdtv.database",
"hdtv.backgroundmodels",
"hdtv.efficiency",
"hdtv.peakmodels",
"hdtv.plugins",
"hdtv.rootext",
],
package_data={
"hdtv": ["share/*"],
"hdtv.rootext": [
"calibration/*",
"display/*",
"fit/*",
"mfile-root/*",
"mfile-root/*/*",
"mfile-root/*/*/*",
],
},
data_files=[
("share/man/man1", manpages),
("share/zsh/site-functions", ["data/completions/_hdtv"]),
("share/bash-completion/completions", ["data/completions/hdtv"]),
("share/applications", ["data/hdtv.desktop"]),
],
)