forked from yoori/flare-bypasser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
46 lines (43 loc) · 1.24 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
import sys
from setuptools import setup
name = 'flare-bypasser'
setup(
name='flare-bypasser',
python_requires='>= 3.9',
version='0.1.24',
packages=["flare_bypasser"],
package_dir={
"": ".",
"flare_bypasser": "./src/flare_bypasser"
},
url='https://github.com/yoori/flare-bypasser',
license='GNU Lesser General Public License',
author='yoori',
author_email='[email protected]',
description='',
install_requires=[ # Solver dependecies
'asyncio',
'uuid',
'opencv-python',
'certifi==2023.7.22',
'requests', # nodriver require it
'nodriver @ git+https://github.com/yoori/nodriver.git',
# < fork with cookie fix, switch to https://github.com/ultrafunkamsterdam/nodriver.git after MR
'argparse',
'oslex',
'jinja2',
] + [ # Server dependecies
'fastapi',
'uvicorn',
'gunicorn'
] + ['xvfbwrapper==0.2.9'] if sys.platform != 'win32' else [] +
# < we believe that 'cygwin', 'darwin' are supported in addition to 'linux'
['gunicorn'] if sys.platform not in ['win32', 'cygwin'] else [],
# < gunicorn use fcntl (supported only at darwin, linux)
include_package_data=True,
entry_points={
'console_scripts': [
'flare_bypass_server=flare_bypasser:server_run',
]
}
)