diff options
author | Julien Roy <julien@jroy.ca> | 2023-02-05 00:33:07 -0500 |
---|---|---|
committer | Julien Roy <julien@jroy.ca> | 2023-02-05 00:33:07 -0500 |
commit | 261c33d03b2fd4c11166edd21776779352549037 (patch) | |
tree | 42abd76c52f17df2329be1b6cb96d27852a142a5 | |
parent | 94fdb74ebd1957c8bcae88829095d24271834643 (diff) | |
download | MrRoy-Overlay-261c33d03b2fd4c11166edd21776779352549037.tar.gz MrRoy-Overlay-261c33d03b2fd4c11166edd21776779352549037.tar.bz2 MrRoy-Overlay-261c33d03b2fd4c11166edd21776779352549037.zip |
dev-python/zope-publisher: new package, add 6.1.0
Signed-off-by: Julien Roy <julien@jroy.ca>
-rw-r--r-- | dev-python/zope-publisher/Manifest | 1 | ||||
-rw-r--r-- | dev-python/zope-publisher/metadata.xml | 22 | ||||
-rw-r--r-- | dev-python/zope-publisher/zope-publisher-6.1.0.ebuild | 63 |
3 files changed, 86 insertions, 0 deletions
diff --git a/dev-python/zope-publisher/Manifest b/dev-python/zope-publisher/Manifest new file mode 100644 index 0000000..c527a4f --- /dev/null +++ b/dev-python/zope-publisher/Manifest @@ -0,0 +1 @@ +DIST zope-publisher-6.1.0.gh.tar.gz 95754 BLAKE2B 33b630b8ca71c67d19555a114b97e5dbcee6a3e324733077406f5ad41cd71eea77bb0c99180deb7518d7b4be476d947d21d43151c96b4ccb978891703020f813 SHA512 2a299dc8ef7b5edfdf0bcfa8934f3465662a140eb05bae03c3d84cbe473b53193c40c7e89fc933d2750f1e5603b474ac2f07a1c93c825e609345473193df9f9f diff --git a/dev-python/zope-publisher/metadata.xml b/dev-python/zope-publisher/metadata.xml new file mode 100644 index 0000000..b7e2733 --- /dev/null +++ b/dev-python/zope-publisher/metadata.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <name>Julien Roy</name> + <email>julien@jroy.ca</email> + </maintainer> + <longdescription> + This package allows you to publish Python objects on the web. It has support for plain HTTP/WebDAV clients, web browsers as well as XML-RPC and FTP clients. Input and output streams are represented by request and response objects which allow for easy client interaction from Python. The behaviour of the publisher is geared towards WSGI compatibility. + </longdescription> + <upstream> + <maintainer> + <name>Zope Foundation and Contributors</name> + <email>zope-dev@zope.org</email> + </maintainer> + <bugs-to>https://github.com/zopefoundation/zope.publisher/issues</bugs-to> + <changelog>https://github.com/zopefoundation/zope.publisher/blob/master/CHANGES.rst</changelog> + <doc>https://zopepublisher.readthedocs.io</doc> + <remote-id type="github">zopefoundation/zope.publisher</remote-id> + <remote-id type="pypi">zope.publisher</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/zope-publisher/zope-publisher-6.1.0.ebuild b/dev-python/zope-publisher/zope-publisher-6.1.0.ebuild new file mode 100644 index 0000000..6470fad --- /dev/null +++ b/dev-python/zope-publisher/zope-publisher-6.1.0.ebuild @@ -0,0 +1,63 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9..11} ) + +inherit distutils-r1 + +DESCRIPTION="Map requests from HTTP/WebDAV clients, web browsers, XML-RPC and FTP clients" +HOMEPAGE="https://github.com/zopefoundation/zope.publisher" +SRC_URI="https://github.com/zopefoundation/zope.publisher/archive/${PV}.tar.gz -> ${P}.gh.tar.gz" +S="${WORKDIR}/${PN/-/\.}-${PV}" + +LICENSE="ZPL" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + dev-python/six[${PYTHON_USEDEP}] + dev-python/multipart[${PYTHON_USEDEP}] + dev-python/zope-browser[${PYTHON_USEDEP}] + dev-python/zope-component[${PYTHON_USEDEP}] + dev-python/zope-configuration[${PYTHON_USEDEP}] + dev-python/zope-contenttype[${PYTHON_USEDEP}] + dev-python/zope-event[${PYTHON_USEDEP}] + dev-python/zope-exceptions[${PYTHON_USEDEP}] + dev-python/zope-i18n[${PYTHON_USEDEP}] + dev-python/zope-interface[${PYTHON_USEDEP}] + dev-python/zope-location[${PYTHON_USEDEP}] + dev-python/zope-proxy[${PYTHON_USEDEP}] + dev-python/zope-security[${PYTHON_USEDEP}] + doc? ( + dev-python/repoze-sphinx-autointerface[${PYTHON_USEDEP}] + dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] + ) + test? ( + dev-python/zope-testing[${PYTHON_USEDEP}] + dev-python/zope-testrunner[${PYTHON_USEDEP}] + ) +" +DEPEND="${RDEPEND}" + +distutils_enable_sphinx docs +distutils_enable_tests unittest + +src_prepare() { + # strip rdep specific to namespaces + sed -i -e "/'setuptools'/d" setup.py || die + distutils-r1_src_prepare +} + +python_compile() { + distutils-r1_python_compile + find "${BUILD_DIR}" -name '*.pth' -delete || die +} + +python_test() { + cd "${BUILD_DIR}/install$(python_get_sitedir)" || die + distutils_write_namespace zope + eunittest +} |