|
1 |
| -""" |
2 |
| -
|
3 |
| - 888 888 d8b |
4 |
| - 888 888 Y8P |
5 |
| - 888 888 |
6 |
| - .d8888b 88888b. 888d888 .d88b. 88888b.d88b. .d88b. .d88888 888d888 888 888 888 .d88b. 888d888 |
7 |
| -d88P" 888 "88b 888P" d88""88b 888 "888 "88b d8P Y8b d88" 888 888P" 888 888 888 d8P Y8b 888P" |
8 |
| -888 888 888 888 888 888 888 888 888 88888888 888 888 888 888 Y88 88P 88888888 888 |
9 |
| -Y88b. 888 888 888 Y88..88P 888 888 888 Y8b. Y88b 888 888 888 Y8bd8P Y8b. 888 |
10 |
| - "Y8888P 888 888 888 "Y88P" 888 888 888 "Y8888 "Y88888 888 888 Y88P "Y8888 888 88888888 |
11 |
| -
|
12 |
| -BY ULTRAFUNKAMSTERDAM (https://github.com/ultrafunkamsterdam)""" |
13 |
| - |
14 |
| -import codecs |
15 |
| -import os |
16 |
| -import re |
17 |
| - |
18 |
| -from setuptools import setup |
19 |
| - |
20 |
| - |
21 |
| -dirname = os.path.abspath(os.path.dirname(__file__)) |
22 |
| - |
23 |
| -with codecs.open( |
24 |
| - os.path.join(dirname, "undetected_chromedriver", "__init__.py"), |
25 |
| - mode="r", |
26 |
| - encoding="utf-8", |
27 |
| -) as fp: |
28 |
| - try: |
29 |
| - version = re.findall(r"^__version__ = ['\"]([^'\"]*)['\"]", fp.read(), re.M)[0] |
30 |
| - except Exception: |
31 |
| - raise RuntimeError("unable to determine version") |
32 |
| - |
33 |
| -description = ( |
34 |
| - "Selenium.webdriver.Chrome replacement with compatiblity for Brave, and other Chromium based browsers.", |
35 |
| - "Not triggered by CloudFlare/Imperva/hCaptcha and such.", |
36 |
| - "NOTE: results may vary due to many factors. No guarantees are given, except for ongoing efforts in understanding detection algorithms.", |
37 |
| -) |
38 |
| - |
39 |
| -setup( |
40 |
| - name="undetected-chromedriver", |
41 |
| - version=version, |
42 |
| - packages=["undetected_chromedriver"], |
43 |
| - install_requires=[ |
44 |
| - "selenium>=4.9.0", |
45 |
| - "requests", |
46 |
| - "websockets", |
47 |
| - ], |
48 |
| - package_data={"undetected_chromedriver": [os.path.join("example", "example.py")]}, |
49 |
| - url="https://github.com/ultrafunkamsterdam/undetected-chromedriver", |
50 |
| - license="GPL-3.0", |
51 |
| - author="UltrafunkAmsterdam", |
52 |
| - |
53 |
| - description=description, |
54 |
| - long_description=open(os.path.join(dirname, "README.md"), encoding="utf-8").read(), |
55 |
| - long_description_content_type="text/markdown", |
56 |
| - classifiers=[ |
57 |
| - "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", |
58 |
| - "Programming Language :: Python :: 3", |
59 |
| - "Programming Language :: Python :: 3.7", |
60 |
| - "Programming Language :: Python :: 3.8", |
61 |
| - "Programming Language :: Python :: 3.9", |
62 |
| - "Programming Language :: Python :: 3.10", |
63 |
| - "Programming Language :: Python :: 3.11", |
64 |
| - ], |
65 |
| -) |
| 1 | +""" |
| 2 | +
|
| 3 | + 888 888 d8b |
| 4 | + 888 888 Y8P |
| 5 | + 888 888 |
| 6 | + .d8888b 88888b. 888d888 .d88b. 88888b.d88b. .d88b. .d88888 888d888 888 888 888 .d88b. 888d888 |
| 7 | +d88P" 888 "88b 888P" d88""88b 888 "888 "88b d8P Y8b d88" 888 888P" 888 888 888 d8P Y8b 888P" |
| 8 | +888 888 888 888 888 888 888 888 888 88888888 888 888 888 888 Y88 88P 88888888 888 |
| 9 | +Y88b. 888 888 888 Y88..88P 888 888 888 Y8b. Y88b 888 888 888 Y8bd8P Y8b. 888 |
| 10 | + "Y8888P 888 888 888 "Y88P" 888 888 888 "Y8888 "Y88888 888 888 Y88P "Y8888 888 88888888 |
| 11 | +
|
| 12 | +BY ULTRAFUNKAMSTERDAM (https://github.com/ultrafunkamsterdam)""" |
| 13 | + |
| 14 | +import os |
| 15 | +import re |
| 16 | + |
| 17 | +from setuptools import setup |
| 18 | + |
| 19 | + |
| 20 | +dirname = os.path.abspath(os.path.dirname(__file__)) |
| 21 | + |
| 22 | +with open( |
| 23 | + os.path.join(dirname, "undetected_chromedriver", "__init__.py"), |
| 24 | + mode="r", |
| 25 | + encoding="utf-8", |
| 26 | +) as fp: |
| 27 | + try: |
| 28 | + version = re.findall(r"^__version__ = ['\"]([^'\"]*)['\"]", fp.read(), re.M)[0] |
| 29 | + except Exception: |
| 30 | + raise RuntimeError("unable to determine version") |
| 31 | + |
| 32 | +description = ( |
| 33 | + "Selenium.webdriver.Chrome replacement with compatiblity for Brave, and other Chromium based browsers.", |
| 34 | + "Not triggered by CloudFlare/Imperva/hCaptcha and such.", |
| 35 | + "NOTE: results may vary due to many factors. No guarantees are given, except for ongoing efforts in understanding detection algorithms.", |
| 36 | +) |
| 37 | + |
| 38 | +setup( |
| 39 | + name="undetected-chromedriver", |
| 40 | + version=version, |
| 41 | + packages=["undetected_chromedriver"], |
| 42 | + install_requires=[ |
| 43 | + "selenium>=4.18.1", # Updated to latest as of Mar 2024 |
| 44 | + "requests>=2.31.0", # Updated to latest as of Mar 2024 |
| 45 | + "websockets>=12.0", # Updated to latest as of Mar 2024 |
| 46 | + "packaging>=23.0", # Specify a recent version |
| 47 | + ], |
| 48 | + package_data={"undetected_chromedriver": [os.path.join("example", "example.py")]}, |
| 49 | + url="https://github.com/ultrafunkamsterdam/undetected-chromedriver", |
| 50 | + license="GPL-3.0", |
| 51 | + author="UltrafunkAmsterdam", |
| 52 | + |
| 53 | + description=description, |
| 54 | + long_description=open(os.path.join(dirname, "README.md"), encoding="utf-8").read(), |
| 55 | + long_description_content_type="text/markdown", |
| 56 | + classifiers=[ |
| 57 | + "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", |
| 58 | + "Programming Language :: Python :: 3", |
| 59 | + "Programming Language :: Python :: 3.7", |
| 60 | + "Programming Language :: Python :: 3.8", |
| 61 | + "Programming Language :: Python :: 3.9", |
| 62 | + "Programming Language :: Python :: 3.10", |
| 63 | + "Programming Language :: Python :: 3.11", |
| 64 | + "Programming Language :: Python :: 3.12", # Assuming 3.12 is also supported |
| 65 | + "Programming Language :: Python :: 3.13", |
| 66 | + ], |
| 67 | +) |
0 commit comments