-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
72 lines (70 loc) · 2.16 KB
/
Copy pathsetup.py
File metadata and controls
72 lines (70 loc) · 2.16 KB
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
from setuptools import setup, find_packages
import os
# Read version from __version__.py
def get_version():
version_file = os.path.join(os.path.dirname(__file__), 'fastshot', '__version__.py')
version_dict = {}
with open(version_file, 'r', encoding='utf-8') as f:
exec(f.read(), version_dict)
print("setting up ", version_dict['__version__'])
return version_dict['__version__']
setup(
name='fastshot',
version=get_version(),
packages=find_packages(),
include_package_data=True,
install_requires=[
# Cross-platform
"pynput",
"pillow",
"mss",
"pyperclip",
"rapidocr>=3.0.0",
"onnxruntime",
"customtkinter",
"configparser",
"openai",
"httpx>=0.24.0",
"requests",
"numpy",
"boto3>=1.26.0",
# Windows only
"pywin32; sys_platform == 'win32'",
"pyautogui; sys_platform == 'win32'",
"screeninfo; sys_platform == 'win32'",
# macOS only
"pyobjc>=10.0; sys_platform == 'darwin'",
],
package_data={
'fastshot': [
'config.ini',
'_config_reset.ini',
'plugins/*',
'plugins/utils/*',
'resources/*.onnx',
'app_platform/*',
'web/templates/*.html',
'web/static/css/*.css',
'web/static/js/*.js',
'web/static/images/*.png',
],
},
entry_points={
'console_scripts': [
'fastshot = fastshot.main:main',
],
},
author='Jim T',
author_email='tianwai263@gmail.com',
description='A versatile screen capturing tool with annotation and OCR features',
long_description=open('README.md', encoding='utf-8').read(),
long_description_content_type='text/markdown',
url='https://github.com/jimeverest/fastshot',
classifiers=[
'Programming Language :: Python :: 3',
'License :: OSI Approved :: MIT License',
'Operating System :: Microsoft :: Windows',
'Operating System :: MacOS :: MacOS X',
],
python_requires='>=3.9',
)