-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
71 lines (61 loc) · 1.96 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
#! /usr/bin/env python
"""
Setup information to allow installation with pip.
"""
from setuptools import setup
def version():
"""
Define the version number.
"""
with open("VERSION") as version_file:
return version_file.read().strip()
def readme():
"""
Define the README text used by PyPI to build the package homepage.
"""
# with open("README.md") as readme_file:
# return readme_file.read()
readme = """
xsec is a tool for fast evaluation of cross-sections, taking advantage
of the power and flexibility of Gaussian process regression.
For more information, please visit the GitHub repository
at [https://github.com/jeriek/xsec](https://github.com/jeriek/xsec).
"""
return readme
def requirements():
"""
Define the package requirements.
"""
with open("requirements.txt") as req_file:
return req_file.read().splitlines()
# Add the package metadata and specify which files to include in the
# distribution.
setup(
name="xsec",
version=version(),
description="xsec: the cross-section evaluation code",
long_description=readme(),
long_description_content_type="text/markdown",
classifiers=[
"License :: OSI Approved :: "
"GNU General Public License v3 or later (GPLv3+)",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering :: Physics",
"Intended Audience :: Science/Research",
],
keywords="gaussian processes, supersymmetry, particle physics, hep, "
"hep-ph, physics, cross-sections, machine learning",
url="https://github.com/jeriek/xsec",
maintainer="Jeriek Van den Abeele",
maintainer_email="jeriekvda@fys.uio.no",
license="GPLv3+",
packages=["xsec"],
install_requires=requirements(),
include_package_data=False,
scripts=[
"scripts/xsec-download-gprocs",
"scripts/xsec-test",
"scripts/xsec",
],
)