-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
61 lines (54 loc) · 1.43 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
import os
import sys
from setuptools import find_packages, setup
from setuptools.command.test import test as TestCommand
test_args = [
'--verbose',
'--capture=sys',
'--log-level=INFO',
'--log-cli-level=INFO',
'--log-file-level=INFO',
'--timeout=300',
'--cov=torcharc',
'test',
]
class PyTest(TestCommand):
user_options = [('pytest-args=', 'a', 'Arguments to pass to py.test')]
def initialize_options(self):
os.environ['PY_ENV'] = 'test'
TestCommand.initialize_options(self)
self.pytest_args = test_args
def run_tests(self):
import pytest
errno = pytest.main(self.pytest_args)
sys.exit(errno)
setup(
name='torcharc',
version='1.2.1',
description='Build PyTorch networks by specifying architectures.',
long_description='https://github.com/kengz/torcharc',
keywords='torcharc',
url='https://github.com/kengz/torcharc',
author='kengz',
author_email='[email protected]',
packages=find_packages(),
install_requires=[
'numpy>=1.16.1',
'pydash==4.7.6',
'einops>=0.3.0',
],
zip_safe=False,
include_package_data=True,
dependency_links=[],
extras_require={},
classifiers=[],
tests_require=[
'autopep8==1.5.3',
'flake8==3.8.3',
'pytest',
'pytest-cov==2.8.1',
'pytest-timeout==1.3.4',
],
test_suite='test',
cmdclass={'test': PyTest},
)