forked from scikit-hep/uproot5
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-uproot4.sh
78 lines (66 loc) · 2.55 KB
/
build-uproot4.sh
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
#!/usr/bin/env bash
# BSD 3-Clause License; see https://github.com/scikit-hep/uproot4/blob/main/LICENSE
set -e
rm -rf build dist
mkdir build
mkdir build/uproot4
cat > build/uproot4/__init__.py << EOF
# BSD 3-Clause License; see https://github.com/scikit-hep/uproot4/blob/main/LICENSE
from __future__ import absolute_import
from uproot import *
EOF
cat > build/uproot4-setup.py << EOF
import os
import setuptools
from setuptools import setup
def get_version():
g = {}
exec(open(os.path.join("uproot", "version.py")).read(), g)
return g["__version__"]
setup(name = "uproot4",
packages = ["uproot4"],
package_dir = {"": "build"},
version = get_version(),
author = "Jim Pivarski",
author_email = "pivarski@princeton.edu",
maintainer = "Jim Pivarski",
maintainer_email = "pivarski@princeton.edu",
description = "ROOT I/O in pure Python and NumPy.",
long_description = open("README.md").read(),
long_description_content_type = "text/markdown",
url = "https://github.com/scikit-hep/uproot4",
download_url = "https://github.com/scikit-hep/uproot4/releases",
license = "BSD 3-clause",
python_requires = ">=3.6",
install_requires = ["uproot>=4.0.0"],
classifiers = [
# "Development Status :: 1 - Planning",
# "Development Status :: 2 - Pre-Alpha",
# "Development Status :: 3 - Alpha",
# "Development Status :: 4 - Beta",
"Development Status :: 5 - Production/Stable",
# "Development Status :: 6 - Mature",
# "Development Status :: 7 - Inactive",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
# "Programming Language :: Python :: 2.7",
# "Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Scientific/Engineering :: Mathematics",
"Topic :: Scientific/Engineering :: Physics",
"Topic :: Software Development",
"Topic :: Utilities",
])
EOF
python build/uproot4-setup.py bdist_wheel sdist
if [ "$1" == "--install" ]; then
pip install dist/uproot4-*.whl
fi