| 1 |
[build-system] |
| 2 |
# Upper bound on uv_build is intentional: uv's versioning policy reserves |
| 3 |
# breaking changes for minor-version bumps, so pinning to the current minor |
| 4 |
# prevents unexpected breakage. Raise the bound when the new minor is |
| 5 |
# validated. See: https://docs.astral.sh/uv/concepts/build-backend/ |
| 6 |
requires = ["uv_build>=0.11.17,<0.13"] |
| 7 |
build-backend = "uv_build" |
| 8 |
|
| 9 |
[project] |
| 10 |
name = "barman" |
| 11 |
version = "3.20.1" |
| 12 |
description = "Backup and Recovery Manager for PostgreSQL" |
| 13 |
readme = "README.rst" |
| 14 |
license = "GPL-3.0-only" |
| 15 |
license-files = ["LICENSE"] |
| 16 |
requires-python = ">=3.12" |
| 17 |
authors = [ |
| 18 |
{name = "EnterpriseDB", email = "[email protected]"}, |
| 19 |
] |
| 20 |
classifiers = [ |
| 21 |
"Environment :: Console", |
| 22 |
"Development Status :: 5 - Production/Stable", |
| 23 |
"Topic :: System :: Archiving :: Backup", |
| 24 |
"Topic :: Database", |
| 25 |
"Topic :: System :: Recovery Tools", |
| 26 |
"Intended Audience :: System Administrators", |
| 27 |
"Operating System :: POSIX :: Linux", |
| 28 |
"Operating System :: POSIX :: BSD :: FreeBSD", |
| 29 |
"Operating System :: Unix", |
| 30 |
"Programming Language :: Python", |
| 31 |
"Programming Language :: Python :: 3 :: Only", |
| 32 |
"Programming Language :: Python :: 3.12", |
| 33 |
"Programming Language :: Python :: 3.13", |
| 34 |
"Programming Language :: Python :: 3.14", |
| 35 |
] |
| 36 |
dependencies = [ |
| 37 |
"psycopg2 >= 2.4.2", |
| 38 |
"python-dateutil", |
| 39 |
] |
| 40 |
|
| 41 |
[project.urls] |
| 42 |
Homepage = "https://www.pgbarman.org/" |
| 43 |
Documentation = "https://docs.pgbarman.org/" |
| 44 |
"Source Code" = "https://github.com/EnterpriseDB/barman" |
| 45 |
"Issue Tracker" = "https://github.com/EnterpriseDB/barman/issues" |
| 46 |
"Release Notes" = "https://github.com/EnterpriseDB/barman/blob/master/RELNOTES.md" |
| 47 |
|
| 48 |
[project.optional-dependencies] |
| 49 |
argcomplete = ["argcomplete"] |
| 50 |
aws-snapshots = ["boto3"] |
| 51 |
azure = ["azure-identity", "azure-storage-blob"] |
| 52 |
azure-snapshots = [ |
| 53 |
"azure-identity", |
| 54 |
"azure-mgmt-compute>=38.0.0", |
| 55 |
] |
| 56 |
cloud = ["boto3"] |
| 57 |
google = ["google-cloud-storage>=3.12,<3.14"] |
| 58 |
google-snapshots = ["grpcio", "google-cloud-compute"] |
| 59 |
snappy = ["python-snappy", "cramjam >= 2.7.0"] |
| 60 |
zstandard = ["zstandard"] |
| 61 |
lz4 = ["lz4"] |
| 62 |
|
| 63 |
[project.scripts] |
| 64 |
barman = "barman.cli:main" |
| 65 |
barman-cloud-backup = "barman.clients.cloud_backup:main" |
| 66 |
barman-cloud-backup-delete = "barman.clients.cloud_backup_delete:main" |
| 67 |
barman-cloud-backup-keep = "barman.clients.cloud_backup_keep:main" |
| 68 |
barman-cloud-backup-list = "barman.clients.cloud_backup_list:main" |
| 69 |
barman-cloud-backup-show = "barman.clients.cloud_backup_show:main" |
| 70 |
barman-cloud-check-wal-archive = "barman.clients.cloud_check_wal_archive:main" |
| 71 |
barman-cloud-restore = "barman.clients.cloud_restore:main" |
| 72 |
barman-cloud-wal-archive = "barman.clients.cloud_walarchive:main" |
| 73 |
barman-cloud-wal-restore = "barman.clients.cloud_walrestore:main" |
| 74 |
barman-wal-archive = "barman.clients.walarchive:main" |
| 75 |
barman-wal-restore = "barman.clients.walrestore:main" |
| 76 |
|
| 77 |
[tool.uv] |
| 78 |
# MacOS is not a supported production platform but is supported for development |
| 79 |
# and testing. |
| 80 |
environments = [ |
| 81 |
"sys_platform == 'linux'", |
| 82 |
"sys_platform == 'darwin'", |
| 83 |
"sys_platform == 'freebsd'", |
| 84 |
] |
| 85 |
|
| 86 |
[tool.uv.build-backend] |
| 87 |
# Files listed here are included in the sdist but are NOT installed by pip. |
| 88 |
# uv_build does not support setuptools' data_files; files outside the module |
| 89 |
# root can be installed via the `data` directory mechanism, but man pages are |
| 90 |
# intentionally left to distro packages (deb/rpm) and not installed via pip. |
| 91 |
# docs/_build/man/** is only present after running `make -C docs man` |
| 92 |
# before `uv build --sdist`. |
| 93 |
source-include = [ |
| 94 |
# uv.lock is included in the sdist so that downstream packagers (e.g. |
| 95 |
# RPM/DEB) can run `uv sync --frozen` for reproducible dependency installs. |
| 96 |
# uv_build does not include VCS-tracked files automatically; only files |
| 97 |
# matching source-include patterns are added beyond the Python package itself. |
| 98 |
"uv.lock", |
| 99 |
"docs/barman.d/**", |
| 100 |
"docs/barman.conf", |
| 101 |
"scripts/barman.bash_completion", |
| 102 |
"docs/_build/man/**", |
| 103 |
"AUTHORS", |
| 104 |
"RELNOTES.md", |
| 105 |
"INSTALL.md", |
| 106 |
] |
| 107 |
|
| 108 |
# [dependency-groups] (PEP 735) declares dev-only deps that are NOT part of |
| 109 |
# the published package metadata. Use `uv sync --group <name>` to install them. |
| 110 |
# These are intentionally separate from [project.optional-dependencies], which |
| 111 |
# are user-facing extras installable via `pip install barman[extra]`. |
| 112 |
[dependency-groups] |
| 113 |
test = ["pytest", "mock", "pytest-cov"] |
| 114 |
docs = [ |
| 115 |
"sphinx", |
| 116 |
"sphinx-github-style", |
| 117 |
"sphinxcontrib-apidoc", |
| 118 |
"pydata-sphinx-theme", |
| 119 |
"myst-parser", |
| 120 |
] |
| 121 |
lint = ["ruff"] |
| 122 |
dev = [ |
| 123 |
{include-group = "test"}, |
| 124 |
{include-group = "docs"}, |
| 125 |
{include-group = "lint"}, |
| 126 |
] |
| 127 |
|
| 128 |
[tool.ruff] |
| 129 |
line-length = 88 |
| 130 |
|
| 131 |
[tool.ruff.lint] |
| 132 |
# preview is required for CPY001 (copyright notice check), which is a |
| 133 |
# direct replacement for flake8-copyright. Scoped to lint only so that |
| 134 |
# ruff format is not affected. |
| 135 |
preview = true |
| 136 |
select = [ |
| 137 |
"CPY001", # missing copyright notice (replaces flake8-copyright) |
| 138 |
"E", # pycodestyle errors |
| 139 |
"F", # pyflakes |
| 140 |
"I", # isort (replaces flake8-isort) |
| 141 |
"W", # pycodestyle warnings |
| 142 |
] |
| 143 |
# E501 (line too long) is enforced by ruff format; ignoring here preserves |
| 144 |
# the same behaviour as the previous flake8 config (ignore = E501). |
| 145 |
# E203 and W503 were also ignored previously but do not exist in ruff. |
| 146 |
ignore = ["E501"] |
| 147 |
|
| 148 |
[tool.ruff.lint.isort] |
| 149 |
# Ruff's isort defaults match isort's "black" profile (multi_line_output = 3, |
| 150 |
# use_parentheses = True, force_grid_wrap = 0) when line-length = 88, which |
| 151 |
# preserves the behaviour previously configured in .isort.cfg. |
| 152 |
|
| 153 |
[tool.ruff.lint.flake8-copyright] |
| 154 |
notice-rgx = "© Copyright EnterpriseDB UK Limited \\d{4}-2026" |