diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/jupyter_client |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/jupyter_client')
-rw-r--r-- | dev-python/jupyter_client/Manifest | 7 | ||||
-rw-r--r-- | dev-python/jupyter_client/files/jupyter_client-5.1.0-setuptools.patch | 39 | ||||
-rw-r--r-- | dev-python/jupyter_client/jupyter_client-4.4.0.ebuild | 36 | ||||
-rw-r--r-- | dev-python/jupyter_client/jupyter_client-5.1.0-r1.ebuild | 40 | ||||
-rw-r--r-- | dev-python/jupyter_client/metadata.xml | 17 |
5 files changed, 139 insertions, 0 deletions
diff --git a/dev-python/jupyter_client/Manifest b/dev-python/jupyter_client/Manifest new file mode 100644 index 000000000000..fca4886c0f03 --- /dev/null +++ b/dev-python/jupyter_client/Manifest @@ -0,0 +1,7 @@ +AUX jupyter_client-5.1.0-setuptools.patch 1062 SHA256 eeb2870c19cf0bd29f1b1ba74ff54fc8096bb34429c917404fae8b3ad910fe47 SHA512 b373c4bd3278484252430bf463d873249895aa6e5b041274352866d73de9fe3196dd64a73385aed8878b44a33e742e64623427d6a2d68706fcbdd70d4a539109 WHIRLPOOL 82fae12597d63016cfc972ca5ea08e5d674e7c059b4614241ae808727d1db80808b022d3d1b73c23d565f79f04a0e99b53ec0b45a1e9c0175eb3dd5805db4504 +DIST jupyter_client-4.4.0.tar.gz 256379 SHA256 c99a52fac2e5b7a3b714e9252ebf72cbf97536d556ae2b5082baccc3e5cd52ee SHA512 a5b35812e5a5f2435888c07fcdeb4dc3fb8abfd13143579cb519cf349da12e7e94ed53d7655bf5a51191f9cfc8175ecac606ace23b90a5dc91b72878b0e87e80 WHIRLPOOL ca2ffc030ee9ba89ce7c97feea775a70d936e5e89d9f0930b098f249f3e2501dcc92ae9455241f0285fba9c344b3dbcbaf30715f2428a0081f478a2c58712678 +DIST jupyter_client-5.1.0.tar.gz 265233 SHA256 08756b021765c97bc5665390700a4255c2df31666ead8bff116b368d09912aba SHA512 eca7adab1f8aae05743c341a257d4ca4338b0838cc3441939dda48229cdfa13b267bdc338b951bc4e6e139d03d26b40a1294140218f84ab800d211f7e0d8bfc7 WHIRLPOOL 7b121394caea86739eac46a709fd725f6a000404c4006543fab543cd7e09faeff088a7a72444dce8aa02d75743d9270e9c68179644070625a86d20d87af3a3b2 +EBUILD jupyter_client-4.4.0.ebuild 889 SHA256 c1916ff9ed3fc90b5dabbdb89e8ac8d0fbf577f558a2b938c2447b380aa4fc8f SHA512 442851e421b6b6e5c09161ce84d3ebc2585a6612360a99043d2926059e7e6d2994464d8e28bb7325ebd05278f0d0a3b18b2952b06985c511130de0e7d8ee761d WHIRLPOOL aeb076a0886caed7b20bae7028ce94299db3c0befbd8213603ce873ae5efad516f0ce10037a422ba587e9fa412e8d418a36a2089ff727be42ee36214026cb84b +EBUILD jupyter_client-5.1.0-r1.ebuild 1008 SHA256 c68a5afcfcc903c62dde7a115d5c89188efa46982c3256e3adbae0562a0602f8 SHA512 eec8c1b968f674e872734ec5ff531385cf0a6377cc8d3b561a3815d5885c39f6f33dcdb03e8b571ee3d058ea2511535b94006b5ef6139317da9e9cf536c08694 WHIRLPOOL d808f774d5f4273893063c3b7b627ae792d4cfb33aed413b59dec3deeb2aba995f357114b81ef6b87ab25edb3cd0a50af9738097e8c6d3af5f6fcdb85aa2dfee +MISC ChangeLog 2011 SHA256 9a8315aa8b584c69569f37ac85027521b1f5eeb29f95ac0b8ad3ee1dc75414c8 SHA512 56a153a02a558ff0f6a3b41dcfb4fc3cfa01731a4a01eefd26ff4a2ce717d3563493a81fcfc8c769204dc0380878b5eb25e7668c94ecb1dcd7668428e1f74c6a WHIRLPOOL b2841996918958dde0884565256099913c5380e7437b9e42f94d786a6049f9c39db3e7f910d93609e6d1cfa7649a5c426700c631fdfdb40c0ee168537520d6f6 +MISC metadata.xml 647 SHA256 e5c4cb2a0b96f5abd4519558b3234fb8063cd921b270faf93394efc9e8c133ea SHA512 ffa9ecee1da3f5856daefeedbee972936ede17b2a828acd2ae1f80a82badc834afa2cdfef6f4a2dd70d29babdead8de8f5f60b888f0ff5e72b6b3993142177c5 WHIRLPOOL fad9799ae41a585c7df3d9793186a55e7feff2b5b76bb51ebcf9e271bbd4fbe92b84b26768deb846b9bea4aebb59c31804e12c232bb934fa7e64c8c92c789c4c diff --git a/dev-python/jupyter_client/files/jupyter_client-5.1.0-setuptools.patch b/dev-python/jupyter_client/files/jupyter_client-5.1.0-setuptools.patch new file mode 100644 index 000000000000..ff7dcb0f3d4c --- /dev/null +++ b/dev-python/jupyter_client/files/jupyter_client-5.1.0-setuptools.patch @@ -0,0 +1,39 @@ +From f9bd2643d42b3354b27e64368d8c15cad18101d2 Mon Sep 17 00:00:00 2001 +From: Philipp A <flying-sheep@web.de> +Date: Tue, 8 Aug 2017 17:38:52 +0200 +Subject: [PATCH] Always use setuptools if availabe +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +When running `python* setup.py install`, the `jupyter-run` script doesn’t get installed without this. +--- + setup.py | 8 +++++++- + 1 file changed, 7 insertions(+), 1 deletion(-) + +diff --git a/setup.py b/setup.py +index 60fa17c..0831f7a 100644 +--- a/setup.py ++++ b/setup.py +@@ -70,6 +70,7 @@ + ], + ) + ++# require setuptools for these cases + if 'develop' in sys.argv or any(a.startswith('bdist') for a in sys.argv): + import setuptools + +@@ -85,7 +86,12 @@ + 'test': ['ipykernel', 'ipython', 'mock', 'pytest'], + } + +-if 'setuptools' in sys.modules: ++# always try to use setuptools if available ++try: ++ import setuptools ++except ImportError: ++ pass ++else: + setup_args.update(setuptools_args) + setup_args['entry_points'] = { + 'console_scripts': [ diff --git a/dev-python/jupyter_client/jupyter_client-4.4.0.ebuild b/dev-python/jupyter_client/jupyter_client-4.4.0.ebuild new file mode 100644 index 000000000000..306a0f15db25 --- /dev/null +++ b/dev-python/jupyter_client/jupyter_client-4.4.0.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) +PYTHON_REQ_USE="threads(+)" + +inherit distutils-r1 + +DESCRIPTION="Jupyter protocol implementation and client libraries" +HOMEPAGE="http://jupyter.org" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="test" + +RDEPEND=" + dev-python/traitlets[${PYTHON_USEDEP}] + dev-python/jupyter_core[${PYTHON_USEDEP}] + >=dev-python/pyzmq-14.4.0[${PYTHON_USEDEP}] + " +DEPEND="${RDEPEND} + test? ( + dev-python/nose[${PYTHON_USEDEP}] + dev-python/coverage[${PYTHON_USEDEP}] + $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7) + dev-python/ipykernel[${PYTHON_USEDEP}] + ) + " + +python_test() { + nosetests --with-coverage --cover-package jupyter_client jupyter_client || die +} diff --git a/dev-python/jupyter_client/jupyter_client-5.1.0-r1.ebuild b/dev-python/jupyter_client/jupyter_client-5.1.0-r1.ebuild new file mode 100644 index 000000000000..f58b4e92548e --- /dev/null +++ b/dev-python/jupyter_client/jupyter_client-5.1.0-r1.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) +PYTHON_REQ_USE="threads(+)" + +inherit distutils-r1 + +DESCRIPTION="Jupyter protocol implementation and client libraries" +HOMEPAGE="http://jupyter.org" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="test" + +RDEPEND=" + dev-python/python-dateutil[${PYTHON_USEDEP}] + dev-python/traitlets[${PYTHON_USEDEP}] + dev-python/jupyter_core[${PYTHON_USEDEP}] + >=dev-python/pyzmq-14.4.0[${PYTHON_USEDEP}] + " +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/pytest-cov[${PYTHON_USEDEP}] + $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' 'python2*') + dev-python/ipykernel[${PYTHON_USEDEP}] + ) + " + +python_test() { + pytest --cov jupyter_client jupyter_client || die +} + +PATCHES=( "${FILESDIR}"/${PN}-5.1.0-setuptools.patch ) diff --git a/dev-python/jupyter_client/metadata.xml b/dev-python/jupyter_client/metadata.xml new file mode 100644 index 000000000000..53a086c17f50 --- /dev/null +++ b/dev-python/jupyter_client/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>sci@gentoo.org</email> + <name>Gentoo Science Project</name> + </maintainer> + <longdescription> + Contains the reference implementation of the Jupyter protocol. It + also provides client and kernel management APIs for working with + kernels. It also provides the jupyter kernelspec entrypoint for + installing kernelspecs for use with Jupyter frontends. + </longdescription> + <upstream> + <remote-id type="pypi">jupyter_client</remote-id> + </upstream> +</pkgmetadata> |