forked from mpkato/interleaving
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
36 lines (33 loc) · 978 Bytes
/
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
# -*- coding:utf-8 -*-
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = ["./tests"]
self.test_suite = True
def run_tests(self):
import sys
import pytest
exit_code = pytest.main(self.test_args)
sys.exit(exit_code)
setup(
name = "interleaving",
packages = ["interleaving", "interleaving.simulation"],
version = "0.0.1",
description = "Interleaving library for ranking evaluation",
author = "Makoto P. Kato, Tomohiro Manabe",
author_email = "[email protected]",
license = "MIT License",
url = "https://github.com/mpkato/interleaving",
setup_requires = [
'numpy'
],
install_requires = [
'numpy',
'scipy',
'pulp'
],
tests_require=['pytest'],
cmdclass = {'test': PyTest}
)