#43 — Имя файла и пути по умолчанию: - resolve_output_path() в yaml_config.py: резолвит --output с учётом output.dir, filename_template, default_format из YAML-конфига - Bare format (xlsx/odt/...) → путь по шаблону - Без расширения → автодописывается default_format (.xlsx) - Config.get_output_dir/filename/default_format() #47 — datetime precision и дедупликация: - period.last_used.from/to в YAML-конфиге и AppConfig - period.precision: date|datetime - _compute_dedup_cutoff() в cli.py: при precision=datetime вычисляет cutoff из period.last_used.to - _parse_datetime() + AND-логика дедупликации в client.py: запись исключается если created_on И updated_on < cutoff - Пропуск issues без часов после дедупликации Closes #43 Closes #47
63 lines
1.4 KiB
TOML
63 lines
1.4 KiB
TOML
[build-system]
|
|
requires = ["setuptools>=61.0", "wheel"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "redmine-reporter"
|
|
version = "1.8.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.9",
|
|
"Programming Language :: Python :: 3.10",
|
|
"Programming Language :: Python :: 3.11",
|
|
"Operating System :: POSIX :: Linux",
|
|
"Environment :: Console",
|
|
]
|
|
requires-python = ">=3.9"
|
|
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",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
dev = [
|
|
"pytest>=7.0",
|
|
"black>=23.0",
|
|
"isort>=5.12",
|
|
"mypy>=1.0",
|
|
"ruff>=0.1.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.black]
|
|
line-length = 100
|
|
target-version = ['py39']
|
|
|
|
[tool.isort]
|
|
profile = "black"
|
|
multi_line_output = 3
|
|
|
|
[tool.mypy]
|
|
warn_unused_configs = true
|
|
|
|
[[tool.mypy.overrides]]
|
|
module = ["odf.*", "redminelib.*", "tabulate", "openpyxl.*", "yaml", "requests", "urllib3.*"]
|
|
ignore_missing_imports = true
|