-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathsetup.py
39 lines (36 loc) · 1.26 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
import setuptools
api = ["Pillow", "fastapi", "uvicorn"]
cv2 = ["opencv-python"]
all = api + cv2
setuptools.setup(
name="winocr",
version="0.0.15",
author="Tomofumi Inoue",
author_email="funaox@gmail.com",
description="Windows.Media.Ocr",
long_description=open("README.md", encoding="utf-8").read(),
long_description_content_type="text/markdown",
url="https://github.com/GitHub30/winocr",
project_urls={"Bug Tracker": "https://github.com/GitHub30/winocr/issues",},
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: Microsoft :: Windows :: Windows 10",
],
install_requires=[
"winrt-windows-foundation-collections",
"winrt-windows-foundation",
"winrt-windows-globalization",
"winrt-windows-graphics-imaging",
"winrt-windows-media-ocr",
"winrt-windows-storage-streams",
],
extras_require={"all": all, "api": api, "cv2": cv2},
py_modules=["winocr"],
entry_points={"console_scripts": ["winocr_serve = winocr:serve"]},
)
# Publish commands
# https://packaging.python.org/tutorials/packaging-projects/
# pip install --upgrade pip build twine
# python -m build
# python -m twine upload dist/*