- Add user_id parameter to fetch_issues_with_spent_time(). - Support numeric ID, login, or full name resolution. - Reject ambiguous names and unknown users with clear messages. - Add CLI flags: --user-id, --user-login, --user-name. - Only allow one user flag at a time. - Add ResourceNotFoundError handling. - Update README with usage examples. - Add tests for user resolution and CLI flags. Closes #40
62 lines
1.4 KiB
TOML
62 lines
1.4 KiB
TOML
[build-system]
|
|
requires = ["setuptools>=61.0", "wheel"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "redmine-reporter"
|
|
version = "1.7.0"
|
|
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",
|
|
]
|
|
|
|
[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.*"]
|
|
ignore_missing_imports = true
|