From: "Patrick McLean" <chutzpah@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-doc/json-schema-for-humans/
Date: Fri, 19 Apr 2024 17:54:57 +0000 (UTC) [thread overview]
Message-ID: <1713549282.7a874f61b51aa98e27ddbcbdaa7fea19746f86da.chutzpah@gentoo> (raw)
commit: 7a874f61b51aa98e27ddbcbdaa7fea19746f86da
Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 19 17:54:42 2024 +0000
Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
CommitDate: Fri Apr 19 17:54:42 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a874f61
app-doc/json-schema-for-humans: new package, add 0.47
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>
app-doc/json-schema-for-humans/Manifest | 1 +
.../json-schema-for-humans-0.47.ebuild | 56 ++++++++++++++++++++++
app-doc/json-schema-for-humans/metadata.xml | 12 +++++
3 files changed, 69 insertions(+)
diff --git a/app-doc/json-schema-for-humans/Manifest b/app-doc/json-schema-for-humans/Manifest
new file mode 100644
index 000000000000..ab6548da8a4b
--- /dev/null
+++ b/app-doc/json-schema-for-humans/Manifest
@@ -0,0 +1 @@
+DIST json-schema-for-humans-0.47.gh.tar.gz 745355 BLAKE2B eb7c5ddca459e0dd4264b2b2ed219227523ec90e520dfc30e3390418370926defbfc956742ea3e5ff8a4a1ba4724facceabc59f8d184aea892303f00f2705f1e SHA512 db55cc6d31e38cd5cdeb200536ad7fd8f691a49ab009ac24aae3beb29cec27dedbfb6ae11d0a0712ba3e39ac35340eab7c67869b4e65964582764334dedb50ea
diff --git a/app-doc/json-schema-for-humans/json-schema-for-humans-0.47.ebuild b/app-doc/json-schema-for-humans/json-schema-for-humans-0.47.ebuild
new file mode 100644
index 000000000000..b1124d8e6537
--- /dev/null
+++ b/app-doc/json-schema-for-humans/json-schema-for-humans-0.47.ebuild
@@ -0,0 +1,56 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..12} )
+DISTUTILS_USE_PEP517=poetry
+inherit distutils-r1
+
+DESCRIPTION="Quickly generate HTML documentation from a JSON schema"
+HOMEPAGE="
+ https://pypi.org/project/json-schema-for-humans/
+ https://github.com/coveooss/json-schema-for-humans
+"
+SRC_URI="https://github.com/coveooss/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+ dev-python/click[${PYTHON_USEDEP}]
+ dev-python/dataclasses-json[${PYTHON_USEDEP}]
+ app-text/htmlmin[${PYTHON_USEDEP}]
+ dev-python/jinja[${PYTHON_USEDEP}]
+ dev-python/markdown2[${PYTHON_USEDEP}]
+ dev-python/pygments[${PYTHON_USEDEP}]
+ dev-python/pytz[${PYTHON_USEDEP}]
+ dev-python/pyyaml[${PYTHON_USEDEP}]
+ dev-python/requests[${PYTHON_USEDEP}]
+ dev-python/markupsafe[${PYTHON_USEDEP}]
+"
+
+distutils_enable_tests pytest
+
+python_test() {
+ local -a EPYTEST_DESELECT=(
+ # tests that don't work in sandbox environment
+ tests/generate_test.py::test_references_url
+ tests/generate_test.py::test_references_url_two_levels
+ tests/generate_test.py::test_references_url_yaml
+ "tests/test_md_generate.py::TestMdGenerate::test_basic[True-True-references_url_yaml]"
+ "tests/test_md_generate.py::TestMdGenerate::test_basic[True-True-references_url_two_levels]"
+ "tests/test_md_generate.py::TestMdGenerate::test_basic[True-True-references_url]"
+ "tests/test_md_generate.py::TestMdGenerate::test_basic[True-False-references_url_yaml]"
+ "tests/test_md_generate.py::TestMdGenerate::test_basic[True-False-references_url_two_levels]"
+ "tests/test_md_generate.py::TestMdGenerate::test_basic[True-False-references_url]"
+ "tests/test_md_generate.py::TestMdGenerate::test_basic[False-True-references_url_yaml]"
+ "tests/test_md_generate.py::TestMdGenerate::test_basic[False-True-references_url_two_levels]"
+ "tests/test_md_generate.py::TestMdGenerate::test_basic[False-True-references_url]"
+ "tests/test_md_generate.py::TestMdGenerate::test_basic[False-False-references_url_yaml]"
+ "tests/test_md_generate.py::TestMdGenerate::test_basic[False-False-references_url_two_levels]"
+ "tests/test_md_generate.py::TestMdGenerate::test_basic[False-False-references_url]"
+ )
+ epytest
+}
diff --git a/app-doc/json-schema-for-humans/metadata.xml b/app-doc/json-schema-for-humans/metadata.xml
new file mode 100644
index 000000000000..0302a553d359
--- /dev/null
+++ b/app-doc/json-schema-for-humans/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>chutzpah@gentoo.org</email>
+ <name>Patrick McLean</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="pypi">json-schema-for-humans</remote-id>
+ <remote-id type="github">coveooss/json-schema-for-humans</remote-id>
+ </upstream>
+</pkgmetadata>
next reply other threads:[~2024-04-19 17:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-19 17:54 Patrick McLean [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-04-20 3:58 [gentoo-commits] repo/gentoo:master commit in: app-doc/json-schema-for-humans/ Michał Górny
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1713549282.7a874f61b51aa98e27ddbcbdaa7fea19746f86da.chutzpah@gentoo \
--to=chutzpah@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox