-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
92 lines (84 loc) · 3.1 KB
/
pyproject.toml
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
[tool.poetry]
name = "cedar-backup3"
version = "0.0.0" # published version is managed using Git tags (see below)
description = "Implements local and remote backups to CD/DVD and Amazon S3"
keywords = [ 'local', 'remote', 'backup', 'scp' ]
authors = ["Kenneth J. Pronovici <[email protected]>"]
license = "GPL-2.0-only"
readme = "PyPI.md"
homepage = "https://pypi.org/project/cedar-backup3/"
repository = "https://github.com/pronovic/cedar-backup3"
include = [
{ path = 'Changelog', format = 'sdist' },
{ path = 'NOTICE', format = 'sdist' },
{ path = 'LICENSE', format = 'sdist' },
{ path = 'README.md', format = 'sdist' },
{ path = 'docs', format = 'sdist' },
{ path = 'manpages', format = 'sdist' },
{ path = 'samples', format = 'sdist' },
{ path = 'tests', format = 'sdist' },
]
packages = [ { include = "CedarBackup3", from = "src" } ]
classifiers=[
"Programming Language :: Python :: 3",
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
"Operating System :: OS Independent",
"Environment :: Console",
"Intended Audience :: System Administrators",
"Natural Language :: English",
"Topic :: Software Development :: Libraries",
"Topic :: System :: Archiving :: Backup",
"Topic :: Utilities",
]
# Published version is managed using Git tags
# We get either the tag (like "0.24.1") or a snapshot-type version (like "0.24.1+3.e8319c4")
# If the plugin is not installed, then the version is always "0.0.0", taken from above
[tool.poetry-dynamic-versioning]
enable = true
pattern = '^[vV](?P<base>\d+\.\d+\.\d+)' # this extracts the version from our vX.Y.Z tag format
format-jinja = "{% if distance == 0 and not dirty %}{{ base }}{% else %}{{ base }}+{{ distance }}.{{ commit }}{% endif %}"
[tool.poetry.scripts]
cback3 = 'CedarBackup3.scripts:cback3'
cback3-amazons3-sync = 'CedarBackup3.scripts:amazons3'
cback3-span = 'CedarBackup3.scripts:span'
[tool.poetry.dependencies]
python = ">=3.10,<4"
chardet = "~5" # Debian bookworm only has 5.1.0
importlib-metadata = "~4" # Debian bookworm only has 4.12.0
sphinx = { version="~5", optional=true } # Debian bookworm only has 5.3.0
sphinx-autoapi = { version="~2", optional=true } # Debian bookworm only has 2.0.0
astroid = "~2" # Newer versions conflict with older Sphinx
[tool.poetry.extras]
docs = [ "sphinx", "sphinx-autoapi" ]
[tool.poetry.group.dev.dependencies]
coverage = "^7.4.4"
pylint = "~2" # newer versions need astroid 3
pre-commit = "^4.0.1"
black = "^24.2.0"
isort = "^5.12.0"
colorama = "~0, >=0.4.6"
[tool.black]
line-length = 132
target-version = [ 'py310', 'py311', 'py312', 'py313' ]
include = '\.pyi?$'
exclude = '''
/(
\.git
| __pycache__
| \.tox
| \.venv
| \.poetry
| build
| dist
| docs
| notes
)/
'''
[tool.isort]
profile = "black"
line_length = 132
skip_glob = [ "docs", "notes" ]
[build-system]
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning"]
build-backend = "poetry_dynamic_versioning.backend"