-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
73 lines (61 loc) · 1.82 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
72
73
import io
import os
import re
from setuptools import setup
# conditionally add teh documentation commands
try:
from sphinx.setup_command import BuildDoc
except ImportError:
cmdclass = {'build_sphinx': BuildDoc}
cmd_options = {
'build_sphinx': {
'project': ('setup.py', "lr-range-test"),
'version': ('setup.py', "0.0.1"),
'release': ('setup.py', "0.0.1"),
'source_dir': ('setup.py', 'docs'),
'build_dir': ('setup.py', './public')
}
}
else:
cmd_options = {}
cmdclass = {}
def read(filename):
filename = os.path.join(os.path.dirname(__file__), filename)
text_type = type(u"")
with io.open(filename, mode="r", encoding='utf-8') as fd:
return re.sub(text_type(r':[a-z]+:`~?(.*?)`'), text_type(r'``\1``'), fd.read())
setup(
name="lr-range-test",
version="0.0.1",
license='MIT',
author="Nichita Utiu",
author_email="nikita.utiu@gmail.com",
description="LR range test for pytorch models and/or ignite engines",
packages=['lr_range_test'],
cmdclass=cmdclass,
command_options=cmd_options,
install_requires=[
'matplotlib>=3.0.3',
'numpy>=1.16',
'pytorch-ignite>=0.2',
'torch',
'tqdm>=4.32'
],
extras_require={
'dev': [
'Sphinx>=2.0.1',
'sphinx-autodoc-typehints>=1.6.0'
]
},
test_suite='tests',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
],
)