-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
68 lines (63 loc) · 2.67 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
from setuptools import setup, find_packages
with open("README.md", encoding="utf-8") as f:
long_description = f.read()
with open("src/spey/_version.py", encoding="UTF-8") as f:
version = f.readlines()[-1].split()[-1].strip("\"'")
requirements = [
"numpy>=1.21.6, <2.0.0",
"scipy>=1.10.0",
"autograd>=1.5",
"semantic_version~=2.10",
"tqdm>=4.64.0",
"requests>=2.31.0",
"setuptools",
]
backend_plugins = [
"default_pdf.uncorrelated_background = spey.backends.default_pdf:UncorrelatedBackground",
"default_pdf.correlated_background = spey.backends.default_pdf:CorrelatedBackground",
"default_pdf.third_moment_expansion = spey.backends.default_pdf:ThirdMomentExpansion",
"default_pdf.effective_sigma = spey.backends.default_pdf:EffectiveSigma",
"default_pdf.poisson = spey.backends.default_pdf.simple_pdf:Poisson",
"default_pdf.normal = spey.backends.default_pdf.simple_pdf:Gaussian",
"default_pdf.multivariate_normal = spey.backends.default_pdf.simple_pdf:MultivariateNormal",
]
setup(
name="spey",
version=version,
description=("Smooth inference for reinterpretation studies"),
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/SpeysideHEP/spey",
project_urls={
"Bug Tracker": "https://github.com/SpeysideHEP/spey/issues",
"Documentation": "https://spey.readthedocs.io",
"Repository": "https://github.com/SpeysideHEP/spey",
"Homepage": "https://github.com/SpeysideHEP/spey",
"Download": f"https://github.com/SpeysideHEP/spey/archive/refs/tags/v{version}.tar.gz",
},
download_url=f"https://github.com/SpeysideHEP/spey/archive/refs/tags/v{version}.tar.gz",
author="Jack Y. Araz",
author_email=("[email protected]"),
license="MIT",
package_dir={"": "src"},
packages=find_packages(where="src"),
entry_points={"spey.backend.plugins": backend_plugins},
install_requires=requirements,
python_requires=">=3.8, <=3.12.6",
classifiers=[
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering :: Physics",
"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",
"Programming Language :: Python :: 3.12",
],
extras_require={
"dev": ["pytest>=7.1.2", "pytest-cov>=3.0.0", "twine>=3.7.1", "wheel>=0.37.1"],
},
)