Files
issue-core/pyproject.toml
tegwick b605d970e3 feat: rename to issue-core and add task ingestion endpoint
Renames the package, distribution, CLI alias, Makefile targets, and
working directory from issue-facade to issue-core, signalling its
role as the authoritative task lifecycle manager for the Coulomb org
(peer to activity-core, rules-core, project-core).

Adds POST /issues/ ingestion endpoint for activity-core's IssueSink,
under a new optional [api] extra. The endpoint is served by `issue
serve`, authenticates via the ISSUE_CORE_API_KEY env var (Bearer or
X-API-Key header), and routes the TaskSpec payload to the configured
default backend with full traceability metadata embedded in
sync_metadata.

- T01: Python package issue_tracker -> issue_core, dir rename
- T02: registered in state hub under custodian domain
- T03: INTENT.md (what it is, what it isn't, how it fits)
- T04: SCOPE.md (in/out-of-scope, integration boundaries)
- T05: POST /issues/ via FastAPI + Uvicorn, 9 unit tests
- T06: docs/nats-task-ingestion.md design stub

Closes ISSC-WP-0001.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-17 05:16:27 +02:00

172 lines
3.9 KiB
TOML

[build-system]
requires = ["setuptools>=45", "wheel", "setuptools-scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"
[project]
name = "issue-core"
description = "Authoritative task lifecycle manager for the Coulomb org — backend-agnostic with plugin architecture"
readme = "README.md"
requires-python = ">=3.8"
license = {text = "MIT"}
authors = [
{name = "MarkiTect Project", email = "noreply@example.com"},
]
keywords = ["issue-tracking", "project-management", "cli", "gitea", "github", "jira"]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Bug Tracking",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Utilities",
]
dependencies = [
"click>=8.0.0",
"requests>=2.25.0",
"python-dateutil>=2.8.0",
]
dynamic = ["version"]
[project.optional-dependencies]
dev = [
"pytest>=6.0",
"pytest-cov>=2.0",
"pytest-mock>=3.0",
"black>=22.0",
"isort>=5.0",
"flake8>=4.0",
"mypy>=0.900",
"pre-commit>=2.0",
"httpx>=0.27",
"fastapi>=0.110,<1.0",
"pydantic>=2.0,<3.0",
]
docs = [
"sphinx>=4.0",
"sphinx-rtd-theme>=1.0",
"sphinx-click>=3.0",
]
gitea = [
"requests>=2.25.0",
]
github = [
"pygithub>=1.55",
]
jira = [
"jira>=3.0",
]
api = [
"fastapi>=0.110,<1.0",
"uvicorn[standard]>=0.27,<1.0",
"pydantic>=2.0,<3.0",
]
[project.urls]
Homepage = "https://github.com/coulomb/issue-core"
Documentation = "https://issue-core.readthedocs.io/"
Repository = "https://github.com/coulomb/issue-core.git"
"Bug Tracker" = "https://github.com/coulomb/issue-core/issues"
[project.scripts]
issue = "issue_core.cli.main:main"
issue-core = "issue_core.cli.main:main"
[tool.setuptools.packages.find]
include = ["issue_core*"]
[tool.setuptools.dynamic]
version = {attr = "issue_core.__version__"}
[tool.setuptools.package-data]
issue_core = ["backends/local/schema.sql"]
[tool.black]
line-length = 100
target-version = ['py38']
include = '\.pyi?$'
extend-exclude = '''
/(
# directories
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| build
| dist
)/
'''
[tool.isort]
profile = "black"
line_length = 100
known_first_party = ["issue_core"]
[tool.mypy]
python_version = "3.8"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
warn_unreachable = true
strict_equality = true
[[tool.mypy.overrides]]
module = [
"requests.*",
"click.*",
]
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py", "*_test.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"--strict-markers",
"--disable-warnings",
"--tb=short",
]
markers = [
"unit: Unit tests",
"integration: Integration tests",
"slow: Slow tests",
]
[tool.coverage.run]
source = ["issue_core"]
omit = [
"*/tests/*",
"*/test_*",
"setup.py",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if self.debug:",
"if settings.DEBUG",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"if __name__ == .__main__.:",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
]