This repository was archived by the owner on Jan 13, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
76 lines (62 loc) · 2.48 KB
/
Copy pathsetup.py
File metadata and controls
76 lines (62 loc) · 2.48 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
73
74
75
76
import os
import shutil
from dyatel import project_version, org_project_name, project_name
from setuptools import setup
with open('README.md') as f:
description = f.read()
def cleanup():
home_dir = os.getcwd()
egg_name = project_name.replace('-', '_')
shutil.rmtree(f'{home_dir}/dist', ignore_errors=True)
shutil.rmtree(f'{home_dir}/{egg_name}.egg-info', ignore_errors=True)
print('Previous packages removed from local')
def get_packages(root_dir):
all_dirs = [root_dir]
for dirpath, dirnames, _ in os.walk(org_project_name):
for dirname in dirnames:
relative_path = os.path.relpath(os.path.join(dirpath, dirname), org_project_name)
subdir = os.path.join(root_dir, relative_path).replace(os.path.sep, '.')
if '__' not in subdir:
all_dirs.append(subdir)
print(f'Packages are: {all_dirs}')
return all_dirs
cleanup()
setup(
name=project_name,
version=project_version,
url=f'https://github.com/CustomEnv/{project_name}',
packages=get_packages(org_project_name),
install_requires=[
'Appium-Python-Client>=2.1.2',
'numpy>=1.18.1',
'opencv-python>=4.5.5.62',
'Pillow>=6.2.2',
'playwright>=1.41.0',
'selenium>=4.1.0',
'scikit-image>=0.20.0',
],
keywords='selenium appium playwright web_automation mobile_automation',
description='Wrapper of Selenium, Appium and Playwright with single API',
long_description=description,
long_description_content_type='text/markdown',
author_email='vladimir.podolyan64@gmail.com',
author='Podolian Vladimir',
project_urls={
'Source': f'https://github.com/CustomEnv/{project_name}',
'Tracker': f'https://github.com/CustomEnv/{project_name}/issues',
'Documentation': f'https://{project_name}.readthedocs.io',
'Changelog': f'https://github.com/CustomEnv/{project_name}/blob/master/CHANGELOG.md'
},
classifiers=[
'Development Status :: 4 - Beta',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Software Development :: Quality Assurance',
'Topic :: Software Development :: Testing :: Acceptance',
'License :: OSI Approved :: MIT License'
],
)