|
| 1 | +[build-system] |
| 2 | +requires = ["setuptools>=61.0", "wheel"] |
| 3 | +build-backend = "setuptools.build_meta" |
| 4 | + |
| 5 | +[project] |
| 6 | +name = "toolium" |
| 7 | +dynamic = ["version", "dependencies", "optional-dependencies"] |
| 8 | +authors = [ |
| 9 | + { name = "Rubén González Alonso", email = "[email protected]"}, |
| 10 | +] |
| 11 | +description = "Wrapper tool of Selenium and Appium libraries to test web and mobile applications in a single project" |
| 12 | +readme = "README.rst" |
| 13 | +license = {text = "Apache 2.0"} |
| 14 | +keywords = [ |
| 15 | + "selenium", |
| 16 | + "appium", |
| 17 | + "webdriver", |
| 18 | + "web_automation", |
| 19 | + "mobile_automation", |
| 20 | + "page_object", |
| 21 | + "visual_testing", |
| 22 | + "ai", |
| 23 | + "bdd", |
| 24 | + "behave", |
| 25 | + "pytest" |
| 26 | +] |
| 27 | +classifiers = [ |
| 28 | + "Development Status :: 5 - Production/Stable", |
| 29 | + "Intended Audience :: Developers", |
| 30 | + "Intended Audience :: Other Audience", |
| 31 | + "License :: OSI Approved :: Apache Software License", |
| 32 | + "Natural Language :: English", |
| 33 | + "Operating System :: OS Independent", |
| 34 | + "Programming Language :: Python :: 3.10", |
| 35 | + "Programming Language :: Python :: 3.11", |
| 36 | + "Programming Language :: Python :: 3.12", |
| 37 | + "Programming Language :: Python :: 3.13", |
| 38 | + "Topic :: Scientific/Engineering :: Artificial Intelligence", |
| 39 | + "Topic :: Software Development :: Libraries :: Python Modules", |
| 40 | + "Topic :: Software Development :: Quality Assurance", |
| 41 | + "Topic :: Software Development :: Testing", |
| 42 | + "Topic :: Software Development :: Testing :: Acceptance", |
| 43 | + "Topic :: Software Development :: Testing :: BDD", |
| 44 | + "Topic :: Text Processing :: Linguistic", |
| 45 | +] |
| 46 | +requires-python = ">=3.10" |
| 47 | + |
| 48 | +[project.urls] |
| 49 | +Homepage = "https://github.com/telefonica/toolium" |
| 50 | +Repository = "https://github.com/telefonica/toolium" |
| 51 | +Documentation = "http://toolium.readthedocs.org/en/latest" |
| 52 | +Changelog = "http://toolium.readthedocs.org/en/latest/changelog.html" |
| 53 | +"Bug Tracker" = "https://github.com/telefonica/toolium/issues" |
| 54 | + |
| 55 | +[tool.setuptools] |
| 56 | +packages = [ |
| 57 | + "toolium", |
| 58 | + "toolium.pageobjects", |
| 59 | + "toolium.pageelements", |
| 60 | + "toolium.pageelements.playwright", |
| 61 | + "toolium.behave", |
| 62 | + "toolium.utils", |
| 63 | + "toolium.utils.ai_utils" |
| 64 | +] |
| 65 | + |
| 66 | +[tool.setuptools.package-data] |
| 67 | +"toolium" = [ |
| 68 | + "resources/VisualTestsTemplate.html", |
| 69 | + "resources/VisualTests.js", |
| 70 | + "resources/VisualTests.css" |
| 71 | +] |
| 72 | + |
| 73 | +[tool.setuptools.dynamic] |
| 74 | +version = {file = "VERSION"} |
| 75 | +dependencies = {file = ["requirements.txt"]} |
| 76 | +optional-dependencies.playwright = {file = ["requirements_playwright.txt"]} |
| 77 | +optional-dependencies.ai = {file = ["requirements_ai.txt"]} |
| 78 | +optional-dependencies.dev = {file = ["requirements_dev.txt"]} |
| 79 | + |
| 80 | +[tool.pytest.ini_options] |
| 81 | +testpaths = ["toolium/test"] |
| 82 | +python_files = ["test_*.py", "*_test.py"] |
| 83 | +python_classes = ["Test*"] |
| 84 | +python_functions = ["test_*"] |
| 85 | +addopts = "-v --tb=short" |
| 86 | + |
| 87 | +[tool.coverage.run] |
| 88 | +source = ["toolium"] |
| 89 | +omit = [ |
| 90 | + "*/test*", |
| 91 | + "*/tests/*", |
| 92 | + "*/venv/*", |
| 93 | + "*/.venv/*", |
| 94 | +] |
| 95 | + |
| 96 | +[tool.coverage.report] |
| 97 | +exclude_lines = [ |
| 98 | + "pragma: no cover", |
| 99 | + "def __repr__", |
| 100 | + "if self.debug:", |
| 101 | + "if settings.DEBUG", |
| 102 | + "raise AssertionError", |
| 103 | + "raise NotImplementedError", |
| 104 | + "if 0:", |
| 105 | + "if __name__ == .__main__.:", |
| 106 | +] |
| 107 | + |
| 108 | +[tool.black] |
| 109 | +line-length = 120 |
| 110 | +target-version = ['py310', 'py311', 'py312', 'py313'] |
| 111 | +include = '\.pyi?$' |
| 112 | +extend-exclude = ''' |
| 113 | +/( |
| 114 | + # directories |
| 115 | + \.eggs |
| 116 | + | \.git |
| 117 | + | \.hg |
| 118 | + | \.mypy_cache |
| 119 | + | \.tox |
| 120 | + | \.venv |
| 121 | + | build |
| 122 | + | dist |
| 123 | +)/ |
| 124 | +''' |
| 125 | + |
| 126 | +[tool.isort] |
| 127 | +profile = "black" |
| 128 | +line_length = 120 |
| 129 | +multi_line_output = 3 |
| 130 | +include_trailing_comma = true |
| 131 | +force_grid_wrap = 0 |
| 132 | +use_parentheses = true |
| 133 | +ensure_newline_before_comments = true |
| 134 | + |
| 135 | +[tool.ruff] |
| 136 | +line-length = 120 |
| 137 | +target-version = "py310" |
| 138 | +select = [ |
| 139 | + "E", # pycodestyle errors |
| 140 | + "W", # pycodestyle warnings |
| 141 | + "F", # pyflakes |
| 142 | + "I", # isort |
| 143 | + "B", # flake8-bugbear |
| 144 | + "C4", # flake8-comprehensions |
| 145 | + "UP", # pyupgrade |
| 146 | +] |
| 147 | +ignore = [ |
| 148 | + "E501", # line too long, handled by black |
| 149 | + "B008", # do not perform function calls in argument defaults |
| 150 | + "C901", # too complex |
| 151 | +] |
| 152 | + |
| 153 | +[tool.ruff.per-file-ignores] |
| 154 | +"__init__.py" = ["F401"] |
0 commit comments