-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
74 lines (64 loc) · 2.2 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
"""
pyCompressor is q python package for Monte Carlo Parton Distribution Functions
(PDFs) compression.
This program has been developed within the N3PDF group. (n3pdf.mi.infn.it/)
Authors: - Stefano Carrazza
- Juan M. Cruz-Martinez
- Tanjona R. Rabemananjara
License: GPL-3.0, 2020
"""
import pathlib
from setuptools import setup
from setuptools import find_packages
PACKAGE = "pycompressor"
THIS_DIR = pathlib.Path(__file__).parent
LONG_DESCRIPTION = (THIS_DIR / "README.md").read_text()
REQUIREMENTS = (THIS_DIR / "requirements.txt").read_text()
try:
import lhapdf
except ImportError:
print(f"Note: {PACKAGE} requires the installation of LHAPDF")
try:
import validphys
except ImportError:
print(f"Note: {PACKAGE} requires the installation of VALIDPHYS")
setup(
name=PACKAGE,
version='1.1.0-dev',
description="PDF Compression",
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
author="N3PDF",
author_email="[email protected]",
license="GPL 3.0",
url="https://github.com/N3PDF/pyCompressor",
zip_safe=False,
project_urls={
"Documentation": "https://n3pdf.github.io/pycompressor/",
"Source": "https://github.com/N3PDF/pyCompressor"
},
entry_points={
"console_scripts": [
"pycomp = pycompressor.scripts.main:main",
"validate = pycompressor.scripts.validate:main",
"cmp-erfs = pycompressor.scripts.compute_erfs:main",
"cmp-fids = pycompressor.scripts.fids:main",
"cmp-dist = pycompressor.scripts.distributions:main",
"cmp-corr = pycompressor.scripts.correlations:main",
"get-grid = pycompressor.scripts.compressed_set:main"
]
},
package_dir={"": "src"},
packages=find_packages("src"),
install_requires=REQUIREMENTS,
classifiers=[
"Operating System :: Unix",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Physics",
],
setup_requires=["wheel"],
python_requires='>=3.6'
)