-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
79 lines (65 loc) · 2.01 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
# std
from distutils.core import setup
import sys
# noinspection PyUnresolvedReferences
import setuptools # see below (1)
from pathlib import Path
import site
# (1) see https://stackoverflow.com/questions/8295644/
# Without this import, install_requires won't work.
# Sometimes editable install fails with an error message about user site
# being not writeable. The following line can fix that, see
# https://github.com/pypa/pip/issues/7953
site.ENABLE_USER_SITE = "--user" in sys.argv[1:]
keywords = [
"clustering",
"cluster",
"kinematics",
"cluster-analysis",
"machine-learning",
"ml",
"hep",
"hep-ml",
"hep-ex",
"hep-ph",
"wilson",
"clusterking",
]
description = (
"Physics distributions to be clustered by the ClusterKinG package."
)
this_dir = Path(__file__).resolve().parent
packages = setuptools.find_packages()
with (this_dir / "README.rst").open() as fh:
long_description = fh.read()
with (this_dir / "clusterking_physics" / "version.txt").open() as vf:
version = vf.read()
with (this_dir / "requirements.txt").open() as rf:
install_requires = [
req.strip()
for req in rf.readlines()
if req.strip() and not req.startswith("#")
]
setup(
name="clusterking_physics",
version=version,
packages=packages,
install_requires=install_requires,
url="https://github.com/clusterking/clusterking_physics",
project_urls={
"Bug Tracker": "https://github.com/clusterking/clusterking_physics/issues",
"Source Code": "https://github.com/clusterking/clusterking_physics/",
},
package_data={"clusterking_physics": ["version.txt"]},
license="MIT",
keywords=keywords,
description=description,
long_description=long_description,
long_description_content_type="text/x-rst",
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering :: Physics",
],
)