-
Notifications
You must be signed in to change notification settings - Fork 88
/
Copy pathsetup.py
76 lines (64 loc) · 2.1 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
import os.path
from setuptools import setup
NAME = "pyscreenshot"
# get __version__
__version__ = None
exec(open(os.path.join(NAME, "about.py")).read())
VERSION = __version__
URL = "https://github.com/ponty/pyscreenshot"
DESCRIPTION = "python screenshot"
LONG_DESCRIPTION = """TL;DR: Use Pillow. If Pillow doesn't work or it's slow then try pyscreenshot.
The pyscreenshot module is obsolete in most cases.
It was created because PIL ImageGrab module worked on Windows only,
but now Linux and macOS are also supported.
There are some features in pyscreenshot which can be useful in special cases:
flexible backends, Wayland support, sometimes better performance, optional subprocessing.
The module can be used to copy the contents of the screen to a Pillow image memory using various back-ends.
Replacement for the ImageGrab Module.
Documentation: https://github.com/ponty/pyscreenshot/tree/"""
LONG_DESCRIPTION += VERSION
PACKAGES = [
NAME,
NAME + ".plugins",
NAME + ".check",
NAME + ".cli",
NAME + ".examples",
]
classifiers = [
# Get more strings from
# http://www.python.org/pypi?%3Aaction=list_classifiers
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
install_requires = [
"EasyProcess",
"entrypoint2",
"mss ; python_version > '3.4'",
"jeepney ; python_version > '3.4' and platform_system == 'Linux'",
]
setup(
name=NAME,
version=VERSION,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
long_description_content_type="text/x-rst",
python_requires=">=3.4",
classifiers=classifiers,
keywords="screenshot",
author="ponty",
# author_email='',
url=URL,
license="BSD",
packages=PACKAGES,
install_requires=install_requires,
package_data={
NAME: ["py.typed"],
},
)