Compare commits

..

3 Commits

Author SHA1 Message Date
Parona
33d98f376f Merge branch 'master' into 'master'
Fix major oversights with matrix-nio

See merge request src_prepare/src_prepare-overlay!180
2021-05-22 19:33:51 +00:00
Alfred Wingate
737301d1dd
dev-python/matrix-nio: fix blunders with docs and tests
Package-Manager: Portage-3.0.18, Repoman-3.0.2
Signed-off-by: Alfred Wingate <parona@protonmail.com>
2021-05-22 22:29:45 +03:00
Alfred Wingate
e918eb027d
dev-python/m2r2: add for matrix-nio
Package-Manager: Portage-3.0.18, Repoman-3.0.2
Signed-off-by: Alfred Wingate <parona@protonmail.com>
2021-05-22 21:58:31 +03:00
6 changed files with 80 additions and 22 deletions

1
dev-python/m2r2/Manifest Normal file
View File

@ -0,0 +1 @@
DIST m2r2-0.2.7.tar.gz 28653 BLAKE2B 374b4db98158b24aca57cef1e75d37af2623e305b45e4a1f84c6126e48116311fd6e5159854605e027a568d668dc04b9408a64c614e1609f6ed32e2e4722df49 SHA512 6b93ca7b564094e2a1e8ae538e00aa1f361dd40496bef1e440bfe152c905c35c6aad5fb9429ef51b5e6b532c73bcce03c1d17ac1f654e4973de885d1fe33bb9b

View File

@ -0,0 +1,20 @@
diff --git a/setup.py b/setup.py
index f80b653..4a604bb 100644
--- a/setup.py
+++ b/setup.py
@@ -10,13 +10,9 @@ except ImportError:
from distutils.core import setup
readme_file = path.join(path.dirname(path.abspath(__file__)), "README.md")
-try:
- from m2r2 import parse_from_file
- readme = parse_from_file(readme_file)
-except ImportError:
- with open(readme_file) as f:
- readme = f.read()
+with open(readme_file) as f:
+ readme = f.read()
__version__ = "0.2.7"

View File

@ -0,0 +1,33 @@
# Copyright 2020-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{8..9})
inherit distutils-r1
DESCRIPTION="Markdown to reStructuredText converter "
HOMEPAGE="https://crossnox.github.io/m2r2/"
SRC_URI="https://github.com/CrossNox/m2r2/archive/refs/tags/v"${PV}".tar.gz -> "${P}".tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test"
RDEPEND="
dev-python/docutils[${PYTHON_USEDEP}]
dev-python/mistune[${PYTHON_USEDEP}]
"
DEPEND="
test? (
${RDEPEND}
dev-python/pygments[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest
distutils_enable_sphinx docs
PATCHES=( "${FILESDIR}/quick_workaround_to_distributionnotfound.patch" )

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>parona@protonmail.com</email>
<name>Alfred Wingate</name>
</maintainer>
<upstream>
<remote-id type="github">CrossNox/m2r2</remote-id>
</upstream>
</pkgmetadata>

View File

@ -15,7 +15,7 @@ SRC_URI="https://github.com/poljar/matrix-nio/archive/${PV}.tar.gz -> ${P}.tar.g
LICENSE="ISC" LICENSE="ISC"
SLOT="0" SLOT="0"
KEYWORDS="~amd64" KEYWORDS="~amd64"
IUSE="doc e2e test" IUSE="e2e test"
RDEPEND=" RDEPEND="
>=dev-python/future-0.18.2[${PYTHON_USEDEP}] >=dev-python/future-0.18.2[${PYTHON_USEDEP}]
@ -55,21 +55,11 @@ DEPEND="
dev-python/mypy_extensions[${PYTHON_USEDEP}] dev-python/mypy_extensions[${PYTHON_USEDEP}]
) )
" "
BDEPEND="
doc? ( dev-python/sphinx )
"
distutils_enable_tests pytest distutils_enable_tests pytest
distutils_enable_sphinx doc dev-python/sphinx_rtd_theme dev-python/m2r2
# Tests dont parallelize happily python_test() {
# Former requires internet access, latter fails randomly
python_compile_all() { epytest --deselect tests/async_client_test.py::TestClass::test_connect_wrapper[pyloop] --deselect tests/async_client_test.py::TestClass::test_transfer_monitor_callbacks
if use doc; then
emacs -C docs html || die
fi
}
python_install_all() {
use doc && HTML_DOCS=( docs/build/html/. )
distutils-r1_python_install_all
} }

View File

@ -2,10 +2,13 @@
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata> <pkgmetadata>
<maintainer type="person"> <maintainer type="person">
<email> parona@protonmail.com </email> <email>parona@protonmail.com</email>
<name> Alfred Wingate </name> <name>Alfred Wingate</name>
</maintainer> </maintainer>
<upstream>
<remote-id type="github">poljar/matrix-nio</remote-id>
</upstream>
<use> <use>
<flag name="e2e"> Enable end to end encryption support </flag> <flag name="e2e">Enable end to end encryption support</flag>
</use> </use>
</pkgmetadata> </pkgmetadata>