Regression from #62: verify_ssl true used to resolve to the system CA bundle path, so corporate CAs installed in the OS worked; after the unification true became requests' default (certifi), breaking setups with a corporate CA in the system store. Now verify_ssl true injects truststore, so requests verifies against the OS trust store on any platform. verify_ssl false / custom CA path behavior is unchanged. Tests mock truststore via an autouse fixture to keep the pytest process free of global ssl mutation. Refs #62
65 lines
1.5 KiB
TOML
65 lines
1.5 KiB
TOML
[build-system]
|
|
requires = ["setuptools>=61.0", "wheel"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "redmine-reporter"
|
|
version = "1.11.1"
|
|
description = "Redmine time-entry based issue reporter for internal use"
|
|
readme = "README.md"
|
|
authors = [{ name = "Artem Kokos", email = "artem-kokos@mail.ru" }]
|
|
license = { text = "MIT" }
|
|
classifiers = [
|
|
"Programming Language :: Python :: 3",
|
|
"Programming Language :: Python :: 3.10",
|
|
"Programming Language :: Python :: 3.11",
|
|
"Operating System :: POSIX :: Linux",
|
|
"Environment :: Console",
|
|
]
|
|
requires-python = ">=3.10"
|
|
dependencies = [
|
|
"python-redmine>=2.4.0",
|
|
"tabulate>=0.9.0",
|
|
"python-dotenv>=1.0.0",
|
|
"odfpy>=1.4.0",
|
|
"openpyxl>=3.1.0",
|
|
"pyyaml>=6.0",
|
|
"requests>=2.31",
|
|
"truststore>=0.10",
|
|
"urllib3>=1.26",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
dev = [
|
|
"pytest>=7.0",
|
|
"mypy>=1.0",
|
|
"ruff>=0.1.0",
|
|
"black>=24.0",
|
|
"isort>=5.0",
|
|
"setuptools>=61.0",
|
|
]
|
|
|
|
[project.scripts]
|
|
redmine-reporter = "redmine_reporter.cli:main"
|
|
|
|
[tool.setuptools.packages.find]
|
|
where = ["."]
|
|
include = ["redmine_reporter*"]
|
|
|
|
[tool.setuptools.package-data]
|
|
"redmine_reporter" = ["templates/template.odt"]
|
|
|
|
[tool.pytest.ini_options]
|
|
testpaths = ["tests"]
|
|
pythonpath = ["."]
|
|
|
|
[tool.mypy]
|
|
warn_unused_configs = true
|
|
|
|
[[tool.mypy.overrides]]
|
|
module = ["odf.*", "redminelib.*", "tabulate", "openpyxl.*", "yaml", "requests", "urllib3.*"]
|
|
ignore_missing_imports = true
|
|
|
|
[tool.isort]
|
|
profile = "black"
|