mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-10-12 17:51:11 -04:00
dev-python/mdformat: new package, add 1.0.0
Signed-off-by: Huang Rui <vowstar@gmail.com>
This commit is contained in:
3 files changed
+59
No files matched your search
@@ -0,0 +1 @@
|
||||
DIST mdformat-1.0.0.gh.tar.gz 118368 BLAKE2B f98c96e8b37f0079b44b3861ef517c8e0c66523a23130157e2f383542b652561306ac7d4e988750583a2ee96f9fd76581a9b5e9cbe5eacec2093ad0f596224bc SHA512 5aa75c71520016046be93745146cb8cc031d3658208616d160f11ad9bfbc64ac0edc9451148e94df7ba3b92c195d331d8ed3a915062d0c1d134c609e2d2f6a24
|
||||
@@ -0,0 +1,35 @@
|
||||
# Copyright 2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{12..14} )
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="CommonMark compliant Markdown formatter"
|
||||
HOMEPAGE="
|
||||
https://github.com/hukkin/mdformat
|
||||
https://pypi.org/project/mdformat/
|
||||
"
|
||||
SRC_URI="
|
||||
https://github.com/hukkin/${PN}/archive/${PV}.tar.gz
|
||||
-> ${P}.gh.tar.gz
|
||||
"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/markdown-it-py-1[${PYTHON_USEDEP}]
|
||||
<dev-python/markdown-it-py-5[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
EPYTEST_PLUGINS=()
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_test() {
|
||||
# read_toml_opts() caches per directory, recycled tmp dirs poison the cache
|
||||
epytest -o tmp_path_retention_count=3 -o tmp_path_retention_policy=all
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>vowstar@gmail.com</email>
|
||||
<name>Huang Rui</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">
|
||||
Mdformat is an opinionated Markdown formatter that can be used to
|
||||
enforce a consistent style in Markdown files. It is a CommonMark
|
||||
compliant formatter, and its plugin system extends the syntax it
|
||||
understands, for example to GitHub Flavored Markdown tables.
|
||||
</longdescription>
|
||||
<longdescription lang="zh">
|
||||
Mdformat 是一个风格固定的 Markdown 格式化工具,用于在 Markdown 文件中
|
||||
强制统一的排版风格。它完全符合 CommonMark 规范,并通过插件系统扩展所
|
||||
支持的语法,例如 GitHub Flavored Markdown 表格。
|
||||
</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="github">hukkin/mdformat</remote-id>
|
||||
<remote-id type="pypi">mdformat</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
Reference in new issue
Block a user