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 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124
|
[tool.ruff]
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".ipynb_checkpoints",
".mypy_cache",
".nox",
".pants.d",
".pyenv",
".pytest_cache",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
".vscode",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"site-packages",
"venv",
]
# Same as Black.
line-length = 88
indent-width = 4
# Assume Python 3.10
target-version = "py310"
[tool.pytest.ini_options]
testpaths = ["tests"]
norecursedirs = [".git", ".tox", "build", "lib"]
addopts = ["--disable-socket", "--allow-unix-socket"]
[tool.coverage.run]
branch = true
omit = [
"examples.py",
"conftest.py",
"fetch_devices_error.py",
]
[tool.coverage.paths]
source = [
"pyicloud/",
"tests/"
]
[tool.isort]
profile = "black"
[tool.tox]
requires = ["tox>=4.24.1"]
env_list = ["lint", "3.13", "3.12", "3.11", "3.10"]
[tool.tox.env_run_base]
description = "Run test under {base_python}"
commands = [["pytest"]]
deps = ["-r requirements_test.txt"]
[tool.tox.gh-actions]
python = '''
3.10: 3.10, lint
3.11: 3.11
3.12: 3.12
3.13: 3.13
'''
[tool.setuptools_scm]
[build-system]
requires = ["setuptools >= 77.0,< 80.10", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[project]
name = "pyicloud"
dynamic = ["version", "readme", "dependencies", "optional-dependencies"]
description = "PyiCloud is a module which allows pythonistas to interact with iCloud webservices."
requires-python = ">=3.10"
license = "MIT"
license-files = ["LICENSE.txt"]
authors = [
{name = "The PyiCloud Authors"}
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Libraries"
]
keywords = ["icloud", "find-my-iphone"]
[project.urls]
homepage = "https://github.com/timlaing/pyicloud"
download = "https://github.com/timlaing/pyicloud/releases/latest"
bug_tracker = "https://github.com/timlaing/pyicloud/issues"
repository = "https://github.com/timlaing/pyicloud"
[project.scripts]
icloud = "pyicloud.cmdline:main"
[tool.setuptools]
packages = ["pyicloud", "pyicloud.services"]
[tool.setuptools.dynamic]
readme = {file = "README.md", content-type = "text/markdown"}
dependencies = {file = ["requirements.txt"]}
optional-dependencies = {test = {file = ["requirements_test.txt"]}}
|