-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathsetup.py
76 lines (63 loc) · 1.96 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
74
75
76
#!/usr/bin/env python
import os
import re
from setuptools import setup
__PATH__ = os.path.abspath(os.path.dirname(__file__))
def read_readme():
with open('README.md') as f:
return f.read()
def read_version():
# importing the package causes an ImportError :-)
with open(os.path.join(__PATH__, 'imgcat/__init__.py')) as f:
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
f.read(), re.M)
if version_match:
return str(version_match.group(1))
raise RuntimeError("Unable to find __version__ string")
install_requires = [
]
tests_requires = [
'pytest',
'numpy',
'torch',
'tensorflow>=2.0',
'matplotlib>=3.3',
'Pillow',
]
__version__ = read_version()
setup(
name='imgcat',
version=__version__,
license='MIT',
description='imgcat as Python API and CLI',
long_description=read_readme(),
long_description_content_type='text/markdown',
url='https://github.com/wookayin/python-imgcat',
author='Jongwook Choi',
author_email='[email protected]',
keywords='imgcat iterm2 matplotlib',
classifiers=[
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: MIT License',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 3.6',
'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=['imgcat'],
python_requires='>=3.6',
install_requires=install_requires,
extras_require={'test': tests_requires},
entry_points={
'console_scripts': ['imgcat=imgcat:main'],
},
include_package_data=True,
zip_safe=False,
cmdclass={
},
)