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 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263
|
[build-system]
build-backend = "setuptools.build_meta"
requires = ["setuptools >= 60.0.0", "setuptools_scm[toml] >= 7.0.0"]
[project]
authors = [{email = "ben.speakmon@gmail.com", name = "Ben Speakmon"}]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Other Environment",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Internet :: WWW/HTTP"
]
dependencies = [
"defusedxml",
"packaging",
"requests-oauthlib>=1.1.0",
"requests>=2.10.0",
"requests_toolbelt",
"typing_extensions>=3.7.4.2"
]
description = "Python library for interacting with JIRA via REST APIs."
dynamic = ["version"]
keywords = ["api", "atlassian", "jira", "rest", "web"]
maintainers = [{email = "sorin.sbarnea@gmail.com", name = "Sorin Sbarnea"}]
name = "jira"
requires-python = ">=3.10"
[project.optional-dependencies]
async = ["requests-futures>=0.9.7"]
cli = [
"ipython>=4.0.0",
"keyring"
]
docs = [
"sphinx>=5.0.0",
"sphinx-copybutton",
# HTML Theme
"furo"
]
opt = [
"filemagic>=1.6",
"PyJWT",
"requests_jwt",
"requests_kerberos"
]
test = [
"MarkupSafe>=0.23",
"PyYAML>=5.1", # MIT
"docutils>=0.21.2",
"flaky",
"oauthlib",
"parameterized>=0.8.1", # BSD-3-Clause
"pip",
"pytest-cache",
"pytest-cov",
"pytest-instafail",
"pytest-sugar",
"pytest-timeout>=1.3.1",
"pytest-xdist>=2.2",
"pytest>=6.0.0", # MIT
"requests_mock", # Apache-2
"requires.io", # UNKNOWN!!!
"tenacity", # Apache-2
"wheel>=0.24.0", # MIT
"yanc>=0.3.3", # GPL
"parameterized>=0.8.1" # BSD-3-Clause
]
[project.readme]
content-type = "text/x-rst; charset=UTF-8"
file = "README.rst"
[project.scripts]
jirashell = "jira.jirashell:main"
[project.urls]
"Bug Tracker" = "https://github.com/pycontribs/jira/issues"
"CI: GitHub Actions" = "https://github.com/pycontribs/jira/actions"
Documentation = "https://jira.readthedocs.io"
Forum = "https://community.atlassian.com/t5/tag/jira-python/tg-p?sort=recent"
Homepage = "https://github.com/pycontribs/jira"
"Release Management" = "https://github.com/pycontribs/jira/projects"
"Source Code" = "https://github.com/pycontribs/jira.git"
[tool.codespell]
builtin = ["clear", "rare", "usage", "names", "code"]
check-filenames = true
check-hidden = true
enable-colors = true
ignore-words = [".config/dictionary.txt"]
quiet-level = 0
skip = [
"./.eggs",
"./.git",
"./.mypy_cache",
"./.tox",
"./build",
"./docs/build",
"./node_modules",
"./pip-wheel-metadata",
"./tests/icon.png",
".DS_Store",
".ruff_cache",
"AUTHORS",
"ChangeLog",
"__pycache__",
"coverage.xml",
"dist"
]
write-changes = true
[tool.coverage.report]
exclude_also = ["pragma: no cover", "if TYPE_CHECKING:"]
# Increase it just so it would pass on any single-python run
fail_under = 92
# During development we might remove code (files) with coverage data, and we don't want to fail:
ignore_errors = true
omit = ["test/*"]
show_missing = true
skip_covered = true
skip_empty = true
[tool.coverage.run]
concurrency = ["multiprocessing", "thread"]
# Do not use branch until bug is fixes:
# https://github.com/nedbat/coveragepy/issues/605
# branch = true
parallel = true
source = ["src"]
[tool.files]
packages = """
jira"""
[tool.mypy]
check_untyped_defs = true
namespace_packages = true
python_version = "3.10"
warn_unused_configs = true
[[tool.mypy.overrides]]
check_untyped_defs = false
disable_error_code = "annotation-unchecked"
module = "tests.*"
[tool.pytest.ini_options]
addopts = '''-p no:xdist --durations=10 --tb=long -rxX -v --color=yes'''
# avoid useless warnings related to coverage skips
filterwarnings = ["ignore::pytest.PytestWarning"]
markers = ["allow_on_cloud: opt in for the test to run on Jira Cloud"]
minversion = "6.0"
python_files = ["test_*.py", "tests.py"]
# these are important for distributed testing, to speed up their execution we minimize what we sync
rsyncdirs = ". jira demo docs"
rsyncignore = ".git"
testpaths = ["tests"]
# pytest-timeout, delete_project on jira cloud takes >70s
timeout = 80
[tool.ruff]
# Same as Black.
line-length = 88
# The source code paths to consider, e.g., when resolving first- vs. third-party imports
src = ["jira", "tests"]
# Assume Python 3.10 (minimum supported)
target-version = "py310"
[tool.ruff.lint]
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
ignore = [
"E501", # We have way too many "line too long" errors at the moment
# TODO: Address these with time
"D100",
"D101",
"D102",
"D103",
"D105",
"D107",
"D401",
"D402",
"D417",
"UP006",
"UP035"
]
select = [
"E", # pydocstyle
"W", # pydocstyle
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
"D" # docstrings
]
[tool.ruff.lint.isort]
known-first-party = ["jira", "tests"]
required-imports = ["from __future__ import annotations"]
[tool.ruff.lint.per-file-ignores]
"jira/__init__.py" = [
"E402" # ignore import order in this file
]
"tests/*.*" = [
"E501", # We have way too many "line too long" errors at the moment
"D" # Too many undocumented functions at the moment
]
[tool.ruff.lint.pydocstyle]
# Use Google-style docstrings.
convention = "google"
[tool.setuptools]
include-package-data = true
platforms = ["any"]
zip-safe = false
[tool.setuptools.package-data]
jira = ["jira/py.typed"]
[tool.setuptools.packages]
find = {namespaces = false}
[tool.setuptools_scm]
# To prevent accidental pick of mobile version tags such 'v6'
git_describe_command = [
"git",
"describe",
"--dirty",
"--long",
"--tags",
"--match",
"*.*.*"
]
local_scheme = "no-local-version"
tag_regex = "^(?P<prefix>v)?(?P<version>\\d+[^\\+]*)(?P<suffix>.*)?$"
[tool.tomlsort]
in_place = true
sort_inline_tables = true
sort_table_keys = true
[tool.uv]
[tool.uv.pip]
custom-compile-command = "tox run -e deps"
no-annotate = true # divergent results when run between different platforms
no-emit-package = [
"secretstorage", # linux specific dependency of keyring
"jeepney", # linux specific dependency of keyring
"pip",
"typing-extensions",
"uv"
]
|