Python Azure
This commit is contained in:
3
dev-python/port-for/Manifest
Normal file
3
dev-python/port-for/Manifest
Normal file
@@ -0,0 +1,3 @@
|
||||
DIST port-for-0.4.tar.gz 17320 BLAKE2B 6bbb76355012afec9653e075c78eaa557f7fa5715053581e9ca4eb11685a2d56fc8c2be4b8ad48d644f318a96ab794ccc03ec9018a3c0e6398b7d6edc8b34776 SHA512 eea58a0061ad82f0ac516d7d5c16f2a931d11d6eb239be2c3414407f7d49108f42e675c91df47137217b2c9bbb11c9894e9d1066205b8e8df6190a49c3d4d546
|
||||
EBUILD port-for-0.4.ebuild 936 BLAKE2B f2d4beca124af26010dba2dad4f82b0b83570f8582970183af1825fa5962f705453a64a42c23047731e78195f05f18f28fb0030d00aac4f146e14404b5be4b3a SHA512 9a499b3fb054ab002ee583b6e9f6e7313a69e008f818479d1ae56f38e590e9bb60741f8efb3af01a4542ea826e063136bf51346aea69791084d399879f25f9dc
|
||||
MISC metadata.xml 674 BLAKE2B 22c89c0cb90ba74d85979a74a53002f7e9df864cbf0596bd4c7e2602cd17e86ee6f74b8c23f9b57b11a0736cdebfcc0cfb7cb6802adce8eda062066c4480a172 SHA512 5c080ac92ccfc9f61de3aef0b795fac7de7ddd6f7d2d86ae4c7a1d76b1a095e6dceffacdadfd082371e2d5077ad1c5d078935813017f676f0dbd50faf304d1ba
|
||||
20
dev-python/port-for/metadata.xml
Normal file
20
dev-python/port-for/metadata.xml
Normal file
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>spiderx@spiderx.dp.ua</email>
|
||||
<name>Vladimir Pavljuchenkov</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>proxy-maint@gentoo.org</email>
|
||||
<name>Proxy Maintainers</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">
|
||||
Utility that helps with local TCP ports managment.
|
||||
It can find an unused TCP localhost port and remember the association.
|
||||
</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="github">kmike/port-for</remote-id>
|
||||
<remote-id type="pypi">port-for</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
37
dev-python/port-for/port-for-0.4.ebuild
Normal file
37
dev-python/port-for/port-for-0.4.ebuild
Normal file
@@ -0,0 +1,37 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{6..8} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="An utility and python library for TCP ports management"
|
||||
HOMEPAGE="https://github.com/kmike/port-for"
|
||||
SRC_URI="https://github.com/kmike/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test"
|
||||
|
||||
BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
DEPEND="test? ( dev-python/urllib3[${PYTHON_USEDEP}]
|
||||
virtual/python-unittest-mock[${PYTHON_USEDEP}] )"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
sed -i '/import urllib2/s/urllib2/urllib/' port_for/_download_ranges.py \
|
||||
|| die "sed failed for _download_ranges.py"
|
||||
}
|
||||
|
||||
python_test() {
|
||||
"${PYTHON}" setup.py test || die "tests failed with ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
find "${D}" -name 'tests.*' -delete || die "tests removing failed"
|
||||
}
|
||||
Reference in New Issue
Block a user