-
Notifications
You must be signed in to change notification settings - Fork 63
/
setup.py
71 lines (59 loc) · 1.86 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
#!/usr/bin/env python
import io
import sys
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
from distutils.util import convert_path
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = ["--cov", ".", "--cov-config", ".coveragerc"]
self.test_suite = True
def run_tests(self):
import pytest
sys.exit(pytest.main(self.test_args))
PROJECT = "evalai"
package_config = {}
version_file_path = convert_path("evalai/version.py")
with io.open("README.md", encoding="utf-8") as f:
long_description = f.read()
with open("requirements.txt") as f:
requirements = f.read().splitlines()
with open(version_file_path) as version_file:
exec(version_file.read(), package_config)
tests_require = [
"coverage",
"coveralls==1.3.0",
"flake8==3.0.4",
"pytest==3.5.1",
"pytest-cov==2.5.1",
"pytest-env==0.6.2",
"responses==0.9.0",
"pre-commit==1.14.4",
]
setup(
name=PROJECT,
cmdclass={"test": PyTest},
version=package_config["__version__"],
description="Use EvalAI through command line interface",
long_description=long_description,
long_description_content_type="text/markdown",
author="Cloud-CV",
author_email="[email protected]",
url="https://github.com/Cloud-CV/evalai_cli ",
classifiers=(
"Programming Language :: Python :: 3",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
),
platforms=["Any"],
scripts=[],
provides=[],
install_requires=requirements,
tests_require=tests_require,
namespace_packages=[],
packages=find_packages(exclude=("docs", "scripts", "tests")),
include_package_data=True,
entry_points={"console_scripts": ["evalai=evalai.main:main"]},
zip_safe=False,
)