Merge pull request 'ripe' (#4) from ripe into master

This commit is contained in:
Alarig Le Lay 2020-04-23 20:02:36 +02:00
commit 6b49eddd12
12 changed files with 202 additions and 0 deletions

View file

@ -0,0 +1 @@
DIST socketio-client-0.7.2.tar.gz 23488 BLAKE2B 8c638dcc8ed30fb01a31e36f8175ef7e6b77b37dac0a66f1ef663a372458ccb34bac2ed58fce31a3856eb3d067ad8dc20f7d4a332b2af10ae12717bbb786349f SHA512 850839f804953c706458467c9e35c4c3637d3a61ff55042ef0b6f98e39a277faa97a0a3d7b1e18210e68ec32bb4ca793cd404631e0e2b533e61ad5d05cbc18fa

View file

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<upstream>
<remote-id type="pypi">socketIO-client</remote-id>
<remote-id type="github">invisibleroads/socketIO-client</remote-id>
</upstream>
<maintainer type="person">
<email>zmedico@gentoo.org</email>
</maintainer>
<maintainer type="project">
<email>python@gentoo.org</email>
<name>Python</name>
</maintainer>
</pkgmetadata>

View file

@ -0,0 +1,45 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=5
PYTHON_COMPAT=( python3_{6,7,8} )
inherit distutils-r1
MY_PN="socketIO-client"
DESCRIPTION="A socket.io client library for Python"
HOMEPAGE="https://github.com/invisibleroads/socketIO-client/ https://pypi.org/project/socketIO-client/"
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
RESTRICT="!test? ( test )"
RDEPEND="dev-python/six[${PYTHON_USEDEP}]
>=dev-python/requests-2.7.0[${PYTHON_USEDEP}]
dev-python/websocket-client[${PYTHON_USEDEP}]"
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
test? ( ${RDEPEND}
dev-python/nose[${PYTHON_USEDEP}]
dev-python/coverage[${PYTHON_USEDEP}]
)"
S="${WORKDIR}/${MY_PN}-${PV}"
python_test() {
# https://github.com/invisibleroads/socketIO-client/issues/90
# This runs the suite but has nill output to the screen
# The bug filed will hopefully yield a more conventional testsuite
# The import of SocketIO need be made with abs path to run the tests
sed -e 's:from .. import:from socketIO_client import:' \
-i ${REPO_PN}/tests/__init__.py || die
"${PYTHON}" ${REPO_PN}/tests/__init__.py || die "Tests failed under ${EPYTHON}"
# Return to original form for final install
sed -e 's:from socketIO_client import:from .. import:' \
-i ${REPO_PN}/tests/__init__.py || die
}

View file

@ -0,0 +1 @@
DIST ripe.atlas.tools-1.2.3.tar.gz 86364 BLAKE2B de2aa0a57e135d463d1edb7e3277d21052353009d1dbcc2ead03d659c9736e61f36e95d102b5c3792448a1ea304e340f97856647f3c565fec9fcbbf0c414596a SHA512 f9e3b94ac9561faf0f6738099a0511b5aedb3b0d3230997a8033b8a1a804b885169891de8f408933ad90e3d4543375741657d9989fef09548d9cc8f0d9920e66

View file

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<!-- maintainer-needed -->
<upstream>
<remote-id type="pypi">ripe.atlas.tools</remote-id>
</upstream>
</pkgmetadata>

View file

@ -0,0 +1,48 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python3_6 )
inherit distutils-r1
MY_PN=${PN//-/.}
DESCRIPTION="The official command-line client for RIPE Atlas"
HOMEPAGE="https://atlas.ripe.net/"
SRC_URI="mirror://pypi/${PN:0:1}/ripe.atlas.tools/ripe.atlas.tools-${PV}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
RESTRICT="!test? ( test )"
S="${WORKDIR}/${MY_PN}-${PV}"
DOCS=( CHANGES.rst README.rst )
RDEPEND="
>=net-libs/ripe-atlas-sagan-1.1.10[${PYTHON_USEDEP}]
>=www-client/ripe-atlas-cousteau-1.2[${PYTHON_USEDEP}]
>=dev-python/requests-2.7.0[${PYTHON_USEDEP}]
>=dev-python/pyopenssl-0.13[${PYTHON_USEDEP}]
dev-python/pyyaml[${PYTHON_USEDEP}]
dev-python/tzlocal[${PYTHON_USEDEP}]
dev-python/python-dateutil[${PYTHON_USEDEP}]
dev-python/ujson[${PYTHON_USEDEP}]"
DEPEND="
dev-python/setuptools[${PYTHON_USEDEP}]
test? (
${RDEPEND}
dev-python/nose[${PYTHON_USEDEP}] )"
python_test() {
nosetests --verbose || die "Tests failed with ${EPYTHON}"
}
python_install() {
distutils-r1_python_install
echo "RIPE Atlas Tools (Magellan) [Gentoo Linux] ${PVR}" > \
${D}$(python_get_sitedir)/ripe/atlas/tools/user-agent
}

View file

@ -0,0 +1 @@
DIST ripe-atlas-sagan-1.3.0.tar.gz 117529 BLAKE2B 2076f8a7db16334b8eeefc020a6cee6d42c79428ac3c602cfd9a93cd7382d01d627b066ddf5b5d80cb715ebbfb890c28430ac068dedd24c76f1b39aed25c712a SHA512 4adb7377f9dc4afd7228e7e932cb97b2620921885a7a58b0264fe1fda7bacc3ce0e9ae47918191569af688b6ad7c969477c133f211ef61856558f14cbe693fc0

View file

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<!-- maintainer-needed -->
<upstream>
<remote-id type="pypi">ripe.atlas.sagan</remote-id>
</upstream>
</pkgmetadata>

View file

@ -0,0 +1,28 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python3_{6,7} )
inherit distutils-r1
DESCRIPTION="A parsing library for RIPE Atlas result strings"
HOMEPAGE="https://atlas.ripe.net/"
MY_GITHUB_AUTHOR="RIPE-NCC"
SRC_URI="https://github.com/${MY_GITHUB_AUTHOR}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
DOCS=( CHANGES.rst README.rst )
RDEPEND="
dev-python/python-dateutil[${PYTHON_USEDEP}]
dev-python/pytz[${PYTHON_USEDEP}]
dev-python/pyopenssl[${PYTHON_USEDEP}]
dev-python/ujson[${PYTHON_USEDEP}]
"
distutils_enable_tests nose
distutils_enable_sphinx docs

View file

@ -0,0 +1 @@
DIST ripe-atlas-cousteau-1.4.2.tar.gz 56895 BLAKE2B ce3fd4d0c0964e13d4b4a484cd61039ba1ff4a4512744f5d4a9a0daa5f04d2aeb89759f78d7d4286022410698f4501aa38b60e0151c84fd4ecef02e8ab8cc2dc SHA512 d5cb89b9c6381b000c809e7750490084e42020407345d27435d9c4ec3e4693954efc620d44cf63422ff8552e8d42524b39d3368144b39c9e045f2a5d16b4d273

View file

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<!-- maintainer-needed -->
<upstream>
<remote-id type="pypi">ripe.atlas.cousteau</remote-id>
</upstream>
</pkgmetadata>

View file

@ -0,0 +1,38 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python3_{6,7} )
inherit distutils-r1
DESCRIPTION="A Python wrapper around the RIPE Atlas API"
HOMEPAGE="https://atlas.ripe.net/"
MY_GITHUB_AUTHOR="RIPE-NCC"
SRC_URI="https://github.com/${MY_GITHUB_AUTHOR}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
DOCS=( CHANGES.rst README.rst )
RDEPEND="
<dev-python/websocket-client-0.99[${PYTHON_USEDEP}]
>=dev-python/requests-2.7.0[${PYTHON_USEDEP}]
>=dev-python/socketio-client-0.6.5[${PYTHON_USEDEP}]
dev-python/python-dateutil[${PYTHON_USEDEP}]
"
DEPEND="
test? (
dev-python/coverage[${PYTHON_USEDEP}]
dev-python/funcsigs[${PYTHON_USEDEP}]
dev-python/jsonschema[${PYTHON_USEDEP}]
dev-python/mock[${PYTHON_USEDEP}]
)
${RDEPEND}
"
distutils_enable_tests nose
distutils_enable_sphinx docs