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 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190
|
[project]
name = "b2sdk"
description = "Backblaze B2 SDK"
dynamic = ["version"]
authors = [
{name = "Backblaze Inc", email = "support@backblaze.com"},
]
dependencies = [
"annotated_types>=0.5.0",
"importlib-metadata>=3.3.0; python_version < '3.8'",
"logfury<2.0.0,>=1.0.1",
"requests<3.0.0,>=2.9.1",
"typing-extensions>=4.7.1; python_version < '3.12'",
]
requires-python = ">=3.9"
readme = "README.md"
license = {text = "MIT"}
keywords = ["backblaze", "b2", "cloud", "storage"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
[project.urls]
Homepage = "https://github.com/Backblaze/b2-sdk-python"
[project.entry-points.pyinstaller40]
hook-dirs = "b2sdk._pyinstaller:get_hook_dirs"
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.liccheck]
authorized_licenses = [
"bsd",
"new bsd",
"bsd license",
"new bsd license",
"simplified bsd",
'bsd-3-clause',
"apache",
"apache 2.0",
"apache software",
"apache software license",
"lgpl",
"gnu lgpl",
"gnu library or lesser general public license (lgpl)",
"lgpl with exceptions or zpl",
"isc license",
"isc license (iscl)",
"mit",
"mit license",
"mozilla public license 2.0 (mpl 2.0)",
"mpl-2.0",
"psf",
"python software foundation",
"python software foundation license",
"zpl 2.1",
]
unauthorized_licences = [
"affero",
"agpl",
"gpl v3",
"gpl v2",
"gpl",
]
dependencies = true
optional_dependencies = ["full", "doc"]
[tool.ruff]
# TODO add D
select = ["E", "F", "I", "UP"]
# TODO: remove E501 once docstrings are formatted
ignore = [
"D100", "D105", "D107", "D200", "D202", "D203", "D205", "D212", "D400", "D401", "D415",
"D101", "D102","D103", "D104", # TODO remove once we have docstring for all public methods
"E501", # TODO: remove E501 once docstrings are formatted
"UP031",
]
line-length = 100
target-version = "py37"
[tool.ruff.format]
quote-style = "single"
[tool.ruff.per-file-ignores]
"__init__.py" = ["I", "F401"]
"b2sdk/v3/__init__.py" = ["E402"]
"b2sdk/v*/**" = ["I", "F403", "F405"]
"b2sdk/_v*/**" = ["I", "F403", "F405"]
"test/**" = ["D", "F403", "F405"]
[tool.towncrier]
directory = "changelog.d"
filename = "CHANGELOG.md"
start_string = "<!-- towncrier release notes start -->\n"
underlines = ["", "", ""]
title_format = "## [{version}](https://github.com/Backblaze/b2-sdk-python/releases/tag/v{version}) - {project_date}"
issue_format = "[#{issue}](https://github.com/Backblaze/b2-sdk-python/issues/{issue})"
[[tool.towncrier.type]]
directory = "removed"
name = "Removed"
showcontent = true
[[tool.towncrier.type]]
directory = "changed"
name = "Changed"
showcontent = true
[[tool.towncrier.type]]
directory = "fixed"
name = "Fixed"
showcontent = true
[[tool.towncrier.type]]
directory = "deprecated"
name = "Deprecated"
showcontent = true
[[tool.towncrier.type]]
directory = "added"
name = "Added"
showcontent = true
[[tool.towncrier.type]]
directory = "doc"
name = "Doc"
showcontent = true
[[tool.towncrier.type]]
directory = "infrastructure"
name = "Infrastructure"
showcontent = true
[tool.pdm]
distribution = true
[tool.pdm.build]
includes = ["b2sdk"]
[tool.pdm.version]
source = "scm"
[tool.pdm.dev-dependencies]
format = [
"ruff~=0.8.4",
]
lint = [
"ruff~=0.8.4",
"pytest>=8.3.3",
"liccheck==0.9.2",
"setuptools",
]
test = [
"coverage>=7.2.7",
"pytest>=8.3.3",
"pytest-cov>=3.0.0",
"pytest-mock>=3.6.1",
"pytest-lazy-fixtures==1.1.1",
"pytest-xdist>=2.5.0",
"pytest-timeout>=2.1.0",
"tenacity>=9.1.2",
"tqdm<5.0.0,>=4.5.0",
"eval_type_backport>=0.1.3,<1; python_version<'3.10'", # used with pydantic
"pydantic>=2.0.1",
"pywin32>=306; sys_platform == \"win32\" and platform_python_implementation!='PyPy'",
"responses",
]
release = [
"towncrier==23.11.0; python_version>='3.8'",
]
doc = [
"sadisplay>=0.4.9",
"sphinx>=5.3.0, <6",
"sphinx-autobuild>=2021.3.14",
"sphinx-rtd-theme>=2.0.0",
"sphinx-autodoc-typehints>=1.23.0",
"sphinxcontrib-plantuml>=0.27",
"tornado>=6.3.3; python_version>='3.8'",
]
|