2024-11-13 21:00:01 +00:00
|
|
|
[build-system]
|
|
|
|
|
requires = ["hatchling"]
|
|
|
|
|
build-backend = "hatchling.build"
|
|
|
|
|
|
|
|
|
|
[project]
|
2025-04-21 07:13:19 +00:00
|
|
|
name = "markitup"
|
2024-11-13 21:00:01 +00:00
|
|
|
dynamic = ["version"]
|
2024-12-18 09:22:41 +00:00
|
|
|
description = 'Utility tool for converting various files to Markdown'
|
2024-11-13 21:00:01 +00:00
|
|
|
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",
|
2024-12-13 18:53:35 +00:00
|
|
|
"Programming Language :: Python :: 3.13",
|
2024-11-13 21:00:01 +00:00
|
|
|
"Programming Language :: Python :: Implementation :: CPython",
|
|
|
|
|
"Programming Language :: Python :: Implementation :: PyPy",
|
|
|
|
|
]
|
|
|
|
|
dependencies = [
|
|
|
|
|
"beautifulsoup4",
|
|
|
|
|
"requests",
|
2025-03-06 05:16:55 +00:00
|
|
|
"markdownify",
|
2025-03-20 05:09:14 +00:00
|
|
|
"magika~=0.6.1",
|
2025-03-03 17:06:19 +00:00
|
|
|
"charset-normalizer",
|
2025-04-21 09:37:43 +00:00
|
|
|
"python-magic>=0.4.27",
|
2024-11-13 21:00:01 +00:00
|
|
|
"python-pptx",
|
2025-03-03 17:06:19 +00:00
|
|
|
"mammoth",
|
2024-11-13 21:00:01 +00:00
|
|
|
"pandas",
|
2025-01-03 21:58:17 +00:00
|
|
|
"xlrd",
|
2025-03-28 22:36:38 +00:00
|
|
|
"lxml",
|
2025-01-03 21:34:39 +00:00
|
|
|
"olefile",
|
2025-03-03 17:06:19 +00:00
|
|
|
"pydub",
|
2024-11-13 21:00:01 +00:00
|
|
|
"SpeechRecognition",
|
2025-04-21 12:21:35 +00:00
|
|
|
"pymupdf>=1.25.5",
|
2024-11-13 21:00:01 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
[tool.hatch.version]
|
2025-04-21 07:13:19 +00:00
|
|
|
path = "src/markitup/__about__.py"
|
2024-11-13 21:00:01 +00:00
|
|
|
|
2024-11-14 15:50:21 +00:00
|
|
|
[project.scripts]
|
2025-04-21 07:13:19 +00:00
|
|
|
markitup = "markitup.__main__:main"
|
2024-11-14 15:50:21 +00:00
|
|
|
|
2025-03-03 17:06:19 +00:00
|
|
|
[tool.hatch.envs.default]
|
2025-04-21 09:37:43 +00:00
|
|
|
# No features needed since everything is installed by default
|
2025-03-03 17:06:19 +00:00
|
|
|
|
|
|
|
|
[tool.hatch.envs.hatch-test]
|
|
|
|
|
extra-dependencies = [
|
|
|
|
|
"openai",
|
|
|
|
|
]
|
|
|
|
|
|
2024-11-13 21:00:01 +00:00
|
|
|
[tool.hatch.envs.types]
|
|
|
|
|
extra-dependencies = [
|
2025-03-06 05:16:55 +00:00
|
|
|
"openai",
|
2024-11-13 21:00:01 +00:00
|
|
|
"mypy>=1.0.0",
|
|
|
|
|
]
|
2025-03-06 05:16:55 +00:00
|
|
|
|
2024-11-13 21:00:01 +00:00
|
|
|
[tool.hatch.envs.types.scripts]
|
2025-04-21 07:13:19 +00:00
|
|
|
check = "mypy --install-types --non-interactive --ignore-missing-imports {args:src/markitup tests}"
|
2024-11-13 21:00:01 +00:00
|
|
|
|
|
|
|
|
[tool.coverage.run]
|
2025-04-21 07:13:19 +00:00
|
|
|
source_pkgs = ["markitup", "tests"]
|
2024-11-13 21:00:01 +00:00
|
|
|
branch = true
|
|
|
|
|
parallel = true
|
|
|
|
|
omit = [
|
2025-04-21 07:13:19 +00:00
|
|
|
"src/markitup/__about__.py",
|
2024-11-13 21:00:01 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
[tool.coverage.paths]
|
2025-04-21 07:13:19 +00:00
|
|
|
markitup = ["src/markitup", "*/markitup/src/markitup"]
|
|
|
|
|
tests = ["tests", "*/markitup/tests"]
|
2024-11-13 21:00:01 +00:00
|
|
|
|
|
|
|
|
[tool.coverage.report]
|
|
|
|
|
exclude_lines = [
|
|
|
|
|
"no cov",
|
|
|
|
|
"if __name__ == .__main__.:",
|
|
|
|
|
"if TYPE_CHECKING:",
|
|
|
|
|
]
|
2024-12-17 20:13:19 +00:00
|
|
|
|
|
|
|
|
[tool.hatch.build.targets.sdist]
|
2025-04-21 12:21:35 +00:00
|
|
|
only-include = ["src/markitup"]
|