forked from sorenlind/rankmetrics
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
53 lines (43 loc) · 1.42 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
"""Setup script for package."""
import re
from distutils.core import Command
from setuptools import setup, find_packages
class PyTest(Command):
"""Setup class for pytest."""
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
"""Run the tests."""
import subprocess
import sys
errno = subprocess.call([sys.executable, "runtests.py"])
raise SystemExit(errno)
VERSION = re.search(r'^VERSION\s*=\s*"(.*)"', open("rankmetrics/version.py").read(), re.M).group(1)
with open("./README.md", "rb") as f:
LONG_DESCRIPTION = f.read().decode("utf-8")
setup(
name="rankmetrics",
version=VERSION,
description="Calculate various metrics relevant for learning to rank algorithms.",
long_description=LONG_DESCRIPTION,
author="Soren Lind Kristiansen",
author_email="soren@gutsandglory.dk",
keywords="recommender system learning to rank python",
platforms=["Any"],
packages=find_packages(),
include_package_data=True,
zip_safe=False,
install_requires=["numpy", "scipy", "sklearn"],
classifiers=[
"Development Status :: 3 - Alpha",
"Environment :: Console",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
'Programming Language :: Python :: 3.5',
],
cmdclass={
"test": PyTest
}, )