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 191 192 193 194 195
|
[build-system]
requires = [
"setuptools>=60",
"setuptools-rust",
"setuptools-gettext>=0.1.4",
"cython>=0.29",
]
build-backend = "setuptools.build_meta"
[project]
name = "breezy"
maintainers = [{name = "Breezy Developers", email = "team@breezy-vcs.org"}]
description = "Friendly distributed version control system"
readme = "README.rst"
license = "GPL-2.0-or-later"
classifiers = [
"Development Status :: 6 - Mature",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Operating System :: OS Independent",
"Operating System :: POSIX",
"Programming Language :: Python",
"Programming Language :: Rust",
"Programming Language :: C",
"Topic :: Software Development :: Version Control",
]
requires-python = ">=3.10,<3.15"
dependencies = [
"configobj",
"fastbencode",
"patiencediff",
"merge3",
"dulwich>=0.24.3",
"urllib3>=1.24.1",
"pyyaml",
]
dynamic = ["version", "scripts"]
[project.urls]
Homepage = "https://www.breezy-vcs.org/"
Download = "https://launchpad.net/brz/+download"
Repository = "https://github.com/breezy-team/breezy"
[project.optional-dependencies]
fastimport = ["fastimport>=0.9.8"]
git = ["dulwich>=0.24.3"]
launchpad = ["launchpadlib>=1.6.3"]
workspace = ["pyinotify", "pyasyncore;python_version>='3.12'"]
doc = [
"docutils",
"setuptools",
"sphinx",
"sphinx_epytext",
]
pgp = ["gpg"]
github = ["github"]
paramiko = ["paramiko"]
subunit = ["python-subunit"]
dev = [
"testtools",
"testscenarios",
"python-subunit",
"flake8",
"cython>=0.29",
"ruff",
]
testing = [
"testtools",
"testscenarios",
"python-subunit",
"dulwich>=0.24.3",
]
[tool.setuptools]
zip-safe = false
include-package-data = false
[tool.setuptools.packages.find]
include = ["breezy*"]
namespaces = false
[tool.setuptools.package-data]
breezy = [
"doc/api/*.txt",
"tests/test_patches_data/*",
"help_topics/en/*.txt",
"tests/ssl_certs/ca.crt",
"tests/ssl_certs/server_without_pass.key",
"tests/ssl_certs/server_with_pass.key",
"tests/ssl_certs/server.crt",
"py.typed",
]
[tool.setuptools.dynamic]
version = {attr = "breezy.__version__"}
[tool.mypy]
ignore_missing_imports = true
[tool.ruff]
extend-exclude = ["lib", "bin"]
[tool.ruff.lint]
select = [
"ANN", # annotations
"D", # pydocstyle
"E", # pycodestyle
"F", # pyflakes
"N", # naming
"B", # bugbear
"I", # isort
"S", # bandit
"TCH", # typecheck
"INT", # gettext
"SIM", # simplify
"C4", # comprehensions
"UP", # pyupgrade
"RUF", # ruf-specific
]
ignore = [
"ANN001",
"ANN002",
"ANN003", # missing-type-arg
"ANN201",
"ANN202",
"ANN204",
"ANN205",
"ANN206",
"B904", # assert
"D100", # Missing docstring in public module
"D101", # Missing docstring in public class
"D103", # Missing docstring in public function
"D105", # Missing docstring in magic method
"D102", # Missing docstring in public method
"D205", # 1 blank line required between summary line and description
"D106", # Missing docstring in public nested class
"D107", # Missing docstring in __init__
"D417", # Missing argument descriptions in the docstring
"F821", # undefined-name
"E501", # line too long
"D402", # Missing blank line after last section
"E402", # module level import not at top of file
"E741", # ambiguous variable name
"F405", # name may be undefined, or defined from star imports
"N801", # Naming convention violation: invalid constant name
"N802", # Naming convention violation: invalid variable name
"N804", # Naming convention violation: invalid lowercase variable name
"N806", # Naming convention violation: invalid lowercase function name
"N818", # Naming convention violation: invalid argument name
"N999", # Naming convention violation: invalid module name
"S602", # subprocess with shell=True
"S603", # check for execution of untrusted input
"S101", # use of assert
"S105", # "hardcoded password"; false positives on "pwd"
"S106", # "hardcoded password"; false positives on "pwd"
"S110", # "consider logging exception"
"S317", # use defusedxml
# This triggers for docstrings that uses __doc__
"D104", # Missing docstring in public package
"RUF012", # Mutable class attributes should be annotated with `typing.ClassVar`
"RUF005", # Consider iterable concatenation instead of list concatenation
"RUF015", # Prefer next() of single slice access
"SIM102", # Use a single `if` statement instead of nested `if` statements
"SIM105", # Use `contextlib.suppress
"SIM108", # Use ternary operator
"SIM114", # Combine `if` branches using logical `or` operator
"SIM115", # Use context handler for opening files
# This is unsafe for breezy, where several objects (e.g. VersionedFiles)
# have a keys() method but no __iter__
"SIM118", # Use `key in dict` instead of `key in dict.keys()`
"UP032", # Use f-string instead of `format` call; f-strings break gettext
]
# These are actually fine, but they make mypy more strict and then it fails.
unfixable = ["ANN204"]
[tool.ruff.lint.extend-per-file-ignores]
"breezy/plugins/po_merge/tests/test_po_merge.py" = ["RUF001"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.cibuildwheel.linux]
skip = "*-musllinux_*"
archs = ["auto", "aarch64"]
[tool.cibuildwheel.macos]
[tool.cibuildwheel.windows]
|