forked from criteo/cluster-pack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
54 lines (44 loc) · 1.59 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
import os
import setuptools
import versioneer
here = os.path.abspath(os.path.dirname(__file__))
DESCRIPTION = ("A library on top of either pex or conda-pack"
"to make your Python code easily available on a cluster")
try:
LONG_DESCRIPTION = open(os.path.join(here, "README.md"), encoding="utf-8").read()
except Exception:
LONG_DESCRIPTION = ""
def _read_reqs(relpath):
fullpath = os.path.join(os.path.dirname(__file__), relpath)
with open(fullpath) as f:
return [s.strip() for s in f.readlines()
if (s.strip() and not s.startswith("#"))]
REQUIREMENTS = _read_reqs("requirements.txt")
CLASSIFIERS = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Operating System :: POSIX :: Linux",
"Environment :: Console",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Topic :: Software Development :: Libraries"
]
setuptools.setup(
name="cluster-pack",
packages=setuptools.find_packages(),
version=versioneer.get_version(),
install_requires=REQUIREMENTS,
tests_require=["pytest"],
python_requires=">=3.6",
maintainer="Criteo",
maintainer_email="[email protected]",
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
classifiers=CLASSIFIERS,
keywords="hadoop distributed cluster S3 HDFS",
url="https://github.com/criteo/cluster-pack"
)