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
|
[build-system]
build-backend = "hatchling.build"
requires = [
"hatch-vcs>=0.4",
"hatchling>=1.27",
]
[project]
name = "pipx"
description = "Install and Run Python Applications in Isolated Environments"
readme = "docs/README.md"
keywords = [
"cli",
"install",
"pip",
"Virtual Environment",
"workflow",
]
license = "MIT"
license-files = [ "LICENSE" ]
authors = [
{ name = "Chad Smith", email = "chadsmith.software@gmail.com" },
]
requires-python = ">=3.9"
classifiers = [
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"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 :: 3.14",
]
dynamic = [
"version",
]
dependencies = [
"argcomplete>=1.9.4",
"colorama>=0.4.4; sys_platform=='win32'",
"packaging>=20",
"platformdirs>=2.1",
"tomli; python_version<'3.11'",
"userpath>=1.6,!=1.9",
]
urls."Issue Tracker" = "https://github.com/pypa/pipx/issues"
urls."Release Notes" = "https://pipx.pypa.io/latest/changelog/"
urls."Source Code" = "https://github.com/pypa/pipx"
urls.Documentation = "https://pipx.pypa.io"
urls.Homepage = "https://pipx.pypa.io"
scripts.pipx = "pipx.main:cli"
[dependency-groups]
dev = [
{ include-group = "docs" },
{ include-group = "lint" },
{ include-group = "man" },
{ include-group = "test" },
]
test = [
"pypiserver[cache,passlib]>=2.3.2",
"pytest>=8",
"pytest-cov>=4",
"pytest-mock>=3.11.1",
"pytest-xdist>=3.5",
"setuptools>=68; python_version>='3.12'",
"watchdog>=4",
]
docs = [
"jinja2",
"markdown-gfm-admonition",
"mkdocs",
"mkdocs-gen-files",
"mkdocs-macros-plugin",
"mkdocs-material",
"towncrier>=23.6",
]
lint = [
"pre-commit>=3",
]
man = [
"argparse-manpage[setuptools]",
]
zipapp = [
"shiv>=1.0.6",
]
[tool.hatch]
build.hooks.vcs.version-file = "src/pipx/version.py"
build.targets.sdist.include = [
"/src",
"/logo.png",
"/pipx_demo.gif",
"/*.md",
]
version.source = "vcs"
[tool.ruff]
line-length = 121
lint.extend-select = [
"A",
"B",
"C4",
"C9",
"I",
"ISC",
"PERF",
"PGH",
"PIE",
"PLC",
"PLE",
"PLW",
"RSE",
"RUF",
"TC",
"UP",
"W",
]
lint.ignore = [
"PERF203",
"PLW1508",
"RUF005",
]
lint.per-file-ignores."src/pipx/venv.py" = [
"A005",
]
lint.isort = { known-first-party = [
"helpers",
"package_info",
"pipx",
] }
lint.mccabe.max-complexity = 15
[tool.codespell]
# Ref: https://github.com/codespell-project/codespell#using-a-config-file
skip = ".git,*.pdf,*.svg,.nox,testdata,.mypy_cache"
check-hidden = true
# case sensitive etc
ignore-regex = "\\b(UE|path/doesnt/exist)\\b"
[tool.mypy]
overrides = [ { module = [
"pycowsay.*",
], ignore_missing_imports = true } ]
warn_unreachable = true
enable_error_code = [ "ignore-without-code", "redundant-expr", "truthy-bool" ]
[tool.pytest]
ini_options.minversion = "8"
ini_options.log_cli_level = "INFO"
ini_options.markers = [
"all_packages: test install with maximum number of packages",
]
ini_options.testpaths = [ "tests" ]
ini_options.addopts = [ "-ra", "--strict-config", "--strict-markers" ]
[tool.towncrier]
directory = "changelog.d"
filename = "docs/changelog.md"
start_string = "<!-- towncrier release notes start -->\n"
underlines = [
"",
"",
"",
]
title_format = "## [{version}](https://github.com/pypa/pipx/tree/{version}) - {project_date}"
issue_format = "[#{issue}](https://github.com/pypa/pipx/issues/{issue})"
package = "pipx"
|