mirror of
https://github.com/microsoft/markitdown.git
synced 2025-11-10 14:54:20 +00:00
* Work started moving converters to individual files. * Significant cleanup and refactor. * Moved everything to a packages subfolder. * Added sample plugin. * Added instructions to the README.md * Bumped version, and added a note about compatibility.
71 lines
1.9 KiB
TOML
71 lines
1.9 KiB
TOML
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[project]
|
|
name = "markitdown-sample-plugin"
|
|
dynamic = ["version"]
|
|
description = 'A sample plugin for the "markitdown" library.'
|
|
readme = "README.md"
|
|
requires-python = ">=3.10"
|
|
license = "MIT"
|
|
keywords = []
|
|
authors = [
|
|
{ name = "Adam Fourney", email = "adamfo@microsoft.com" },
|
|
]
|
|
classifiers = [
|
|
"Development Status :: 4 - Beta",
|
|
"Programming Language :: Python",
|
|
"Programming Language :: Python :: 3.10",
|
|
"Programming Language :: Python :: 3.11",
|
|
"Programming Language :: Python :: 3.12",
|
|
"Programming Language :: Python :: 3.13",
|
|
"Programming Language :: Python :: Implementation :: CPython",
|
|
"Programming Language :: Python :: Implementation :: PyPy",
|
|
]
|
|
dependencies = [
|
|
"markitdown",
|
|
"striprtf",
|
|
]
|
|
|
|
[project.urls]
|
|
Documentation = "https://github.com/microsoft/markitdown#readme"
|
|
Issues = "https://github.com/microsoft/markitdown/issues"
|
|
Source = "https://github.com/microsoft/markitdown"
|
|
|
|
[tool.hatch.version]
|
|
path = "src/markitdown_sample_plugin/__about__.py"
|
|
|
|
# IMPORTANT: MarkItDown will look for this entry point to find the plugin.
|
|
[project.entry-points."markitdown.plugin"]
|
|
sample_plugin = "markitdown_sample_plugin"
|
|
|
|
[tool.hatch.envs.types]
|
|
extra-dependencies = [
|
|
"mypy>=1.0.0",
|
|
]
|
|
[tool.hatch.envs.types.scripts]
|
|
check = "mypy --install-types --non-interactive {args:src/markitdown_sample_plugin tests}"
|
|
|
|
[tool.coverage.run]
|
|
source_pkgs = ["markitdown-sample-plugin", "tests"]
|
|
branch = true
|
|
parallel = true
|
|
omit = [
|
|
"src/markitdown_sample_plugin/__about__.py",
|
|
]
|
|
|
|
[tool.coverage.paths]
|
|
markitdown-sample-plugin = ["src/markitdown_sample_plugin", "*/markitdown-sample-plugin/src/markitdown_sample_plugin"]
|
|
tests = ["tests", "*/markitdown-sample-plugin/tests"]
|
|
|
|
[tool.coverage.report]
|
|
exclude_lines = [
|
|
"no cov",
|
|
"if __name__ == .__main__.:",
|
|
"if TYPE_CHECKING:",
|
|
]
|
|
|
|
[tool.hatch.build.targets.sdist]
|
|
only-include = ["src/markitdown_sample_plugin"]
|