blob: bb12e1638a9fee08f3295a8dc7e9c8cc1722c0cb [file] [log] [blame]
# Reference at https://peps.python.org/pep-0621/
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "antlion"
version = "0.1"
description = "Android Comms Test Suite"
readme = "README.md"
requires-python = ">=3.8"
license = {text = "Apache-2.0"}
dependencies = [
"backoff",
"future>=0.16.0", # Future needs to have a newer version that contains urllib.
"mobly==1.12.0",
"pyyaml>=5.1",
"retry",
]
[project.optional-dependencies]
# Required for running unit tests
test = [
# Latest version of mock (4.0.0b) causes a number of compatibility issues with ACTS unit tests
# b/148695846, b/148814743
"mock==3.0.5",
"pytest",
]
# Required to support development tools
dev = [
"shiv", # packaging python
"toml", # required for pyproject.toml
"vulture", # finds unused code
"yapf", # code formatting
]
digital_loggers_pdu = ['dlipower']
bluetooth = ['soundfile']
bokeh = [
'bokeh; python_version>="3.8"',
'bokeh<2.5; python_version>="3.7" and python_version<"3.8"',
'bokeh<2.4; python_version>="3.6" and python_version<"3.7"',
'bokeh<1.5; python_version>="3" and python_version<"3.6"',
]
android = [
"requests",
"Monsoon",
"paramiko[ed25519]",
"pylibftdi",
"pyserial",
"scapy",
'scipy; python_version>="3.8"',
'scipy<1.8; python_version>="3.7" and python_version<"3.8"',
'scipy<1.6; python_version>="3.6" and python_version<"3.7"',
'scipy<1.5; python_version>="3" and python_version<"3.6"',
'numpy; python_version>="3.8"',
'numpy<1.22; python_version>="3.7" and python_version<"3.8"',
'numpy<1.20; python_version>="3.6" and python_version<"3.7"',
'numpy<1.19; python_version>="3" and python_version<"3.6"',
]
fuchsia = [
"usbinfo", # flash
"zeroconf", # mdns
]
old_python = [
'typing_extensions==4.1.1; python_version>="3.6" and python_version<"3.7"',
'typing_extensions<4.0.0; python_version>="3" and python_version<"3.6"',
'dataclasses==0.8; python_version=="3.6"',
'enum34; python_version<"3"',
'statistics; python_version<"3"',
'futures; python_version<"3"',
'py2-ipaddress; python_version<"3"',
'subprocess32; python_version<"3"',
]
[project.scripts]
antlion = "antlion.bin.act:main"
[tool.setuptools.packages.find]
where = ["src"]
[tool.autoflake]
imports = [
"antlion",
"backoff",
"dataclasses",
"numpy",
"protobuf",
"scipy",
"Monsoon",
"dlipower",
"future",
"mobly",
"mock",
"paramiko",
"pylibftdi",
"requests",
"retry",
"scapy",
"usbinfo",
"zeroconf",
]
[tools.vulture]
paths = ["src", "tests"]
sort_by_size = true
min_confidence = 80