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 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215
|
[project]
name = "libpass"
version = "1.9.3"
description = "Fork of passlib, a comprehensive password hashing framework supporting over 30 schemes"
authors = [
{ name = "Eli Collins", email = "elic@assurancetechnologies.com" },
]
maintainers = [
{ name = "Doctor", email = "notypecheck@gmail.com" },
]
dependencies = []
requires-python = ">=3.9"
readme = "README.md"
license = { text = "BSD" }
keywords = [
"2fa",
"apache",
"argon2",
"bcrypt",
"crypt",
"hash",
"htdigest",
"htpasswd",
"md5-crypt",
"passlib",
"password",
"pbkdf2",
"scrypt",
"secret",
"security",
"sha256-crypt",
"sha512-crypt",
"totp",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Operating System :: OS Independent",
"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",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Security :: Cryptography",
"Topic :: Software Development :: Libraries",
]
[project.urls]
Homepage = "https://github.com/notypecheck/passlib"
Repository = "https://github.com/notypecheck/passlib"
Docs = "https://passlib.readthedocs.io"
Issues = "https://github.com/notypecheck/passlib/issues"
Changelog = "https://github.com/notypecheck/passlib/blob/main/CHANGELOG.md"
[project.optional-dependencies]
argon2 = [
"argon2-cffi>=18.2.0",
]
bcrypt = [
"bcrypt>=3.1.0",
]
totp = [
"cryptography>=43.0.1",
]
[dependency-groups]
dev = [
"ipython>=8.18.1",
]
lint = [
"deptry>=0.23.0",
"mypy>=1.15.0",
"ruff>=0.11.9",
]
test = [
"coverage>=7.6.12",
"django>=4.2.21",
"django-stubs>=5.1.3",
"pytest>=8.3.4",
"pytest-archon>=0.0.6",
"pytest-cov>=6.1.1",
"pytest-xdist>=3.6.1",
"typeguard>=4.4.2",
]
docs = [
"cloud-sptheme>=1.10.1.post20200504175005",
"sphinx>=7.4.7",
"sphinxcontrib-fulltoc>=1.2.0",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = [
"passlib",
]
[tool.uv]
package = true
default-groups = "all"
[tool.uv.workspace]
members = ["test"]
[tool.coverage.run]
source = ["passlib"]
omit = []
command_line = "-m pytest -v"
branch = true
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"class .*\\(.*\\bProtocol\\b.*\\):",
"@(?:typing\\.)?overload",
"if TYPE_CHECKING:",
"raise NotImplementedError",
]
show_missing = true
skip_covered = true
skip_empty = true
precision = 2
fail_under = 0
[tool.deptry]
known_first_party = ["passlib"]
[tool.deptry.per_rule_ignores]
DEP001 = [
"argon2pure",
"fastpbkdf2",
"scrypt",
"matplotlib",
]
DEP004 = [
"django",
"cloud_sptheme",
]
[tool.ruff]
target-version = "py39"
[tool.ruff.lint]
select = ["ALL"]
unfixable = ["F401"]
ignore = [
"PT011",
"E501",
"ISC001", # Conflicts with ruff format
"COM812", # Conflicts with ruff format
# Disabled categories
"N",
"ANN",
"S",
"FBT",
"B",
"A",
"C4",
"DTZ",
"EM",
"D", # docstrings
"PTH", # Pathlib
"RUF",
"PLR",
"FIX",
"TD",
"ARG",
"TRY",
"SLF",
"ERA",
"C90",
"PD", # Pandas
"BLE",
"FLY",
"UP031",
"PLW2901",
"PLC0415", # `import` should be at the top-level of a file
]
[tool.ruff.lint.per-file-ignores]
"passlib/hash.py" = ["F401"]
"passlib/crypto/_blowfish/base.py" = ["E741"]
"passlib/crypto/_blowfish/unrolled.py" = ["E741"]
"passlib/*" = ["T"]
"docs/conf.py" = ["INP001"]
[tool.commitizen]
name = "cz_conventional_commits"
version = "1.9.3"
tag_format = "$version"
update_changelog_on_bump = true
version_files = [
"passlib/__init__.py",
"pyproject.toml:version"
]
[tool.pytest.ini_options]
addopts = "-W error::Warning"
[tool.mypy]
python_version = "3.9"
follow_imports = "normal"
ignore_missing_imports = false
|