-
-
Notifications
You must be signed in to change notification settings - Fork 141
/
Copy pathsetup.py
58 lines (51 loc) · 1.92 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
from setuptools import setup, find_packages
from os import path
import re
def readme():
with open('README.md', encoding='utf-8') as f:
return f.read()
def version():
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, 'livelossplot/version.py')) as f:
version_file = f.read()
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", version_file, re.M)
version = version_match.group(1)
return version
setup(
name='livelossplot',
version=version(),
python_requires=">=3.7",
install_requires=[
'ipython==7.*;python_version<"3.8"',
'matplotlib', 'bokeh',
'numpy<1.22;python_version<"3.8"',
],
description='Live training loss plot in Jupyter Notebook for Keras, PyTorch and others.',
long_description=readme(),
long_description_content_type='text/markdown',
url='https://github.com/stared/livelossplot',
author='Piotr Migdał',
author_email='[email protected]',
keywords=['keras', 'pytorch', 'plot', 'chart', 'deep-learning'],
license='MIT',
classifiers=[
'Development Status :: 4 - Beta',
'Framework :: Jupyter',
'Intended Audience :: Developers',
'Intended Audience :: Education',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
'Topic :: Scientific/Engineering :: Visualization',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
],
packages=find_packages(),
zip_safe=False
)