pymobiledevice3: ready for testing

This commit is contained in:
Anton Bolshakov 2023-10-25 15:39:37 +08:00
parent c5648b4d35
commit 77bf5b46cf
No known key found for this signature in database
GPG key ID: 32BDCED870788F04
16 changed files with 153 additions and 45 deletions

View file

@ -13,8 +13,7 @@ HOMEPAGE="https://github.com/doronz88/pymobiledevice3"
LICENSE="GPL-3"
SLOT="0"
#WIP
#KEYWORDS="~amd64 ~arm64 ~x86"
KEYWORDS="~amd64 ~arm64 ~x86"
IUSE=""
# dev-python/fastapi[all][${PYTHON_USEDEP}]
@ -26,17 +25,13 @@ RDEPEND="
dev-python/click[${PYTHON_USEDEP}]
dev-python/coloredlogs[${PYTHON_USEDEP}]
dev-python/ipython[${PYTHON_USEDEP}]
>=dev-python/bpylist2-4.0.1[${PYTHON_USEDEP}]
dev-python/pygments[${PYTHON_USEDEP}]
dev-python/hexdump[${PYTHON_USEDEP}]
dev-python/arrow[${PYTHON_USEDEP}]
dev-python/daemonize[${PYTHON_USEDEP}]
dev-python/gpxpy[${PYTHON_USEDEP}]
>=dev-python/pykdebugparser-1.2.4[${PYTHON_USEDEP}]
>=dev-python/pyusb-1.2.1[${PYTHON_USEDEP}]
dev-python/tqdm[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
@ -44,42 +39,27 @@ RDEPEND="
dev-python/packaging[${PYTHON_USEDEP}]
>=dev-python/pygnuutils-0.0.7[${PYTHON_USEDEP}]
>=dev-python/cryptography-41.0.1[${PYTHON_USEDEP}]
>=dev-python/pycrashreport-1.0.6[${PYTHON_USEDEP}]
dev-python/fastapi[${PYTHON_USEDEP}]
>=dev-python/uvicorn-0.15.0[${PYTHON_USEDEP}]
dev-python/starlette[${PYTHON_USEDEP}]
dev-python/wsproto[${PYTHON_USEDEP}]
>=dev-python/nest-asyncio-1.5.5[${PYTHON_USEDEP}]
dev-python/pillow[${PYTHON_USEDEP}]
>=dev-python/inquirer3-0.1.0[${PYTHON_USEDEP}]
>=dev-python/pyimg4-0.8[${PYTHON_USEDEP}]
>=dev-python/ipsw_parser-1.1.2[${PYTHON_USEDEP}]
dev-python/remotezip[${PYTHON_USEDEP}]
dev-python/zeroconf[${PYTHON_USEDEP}]
dev-python/ifaddr[${PYTHON_USEDEP}]
dev-python/hyperframe[${PYTHON_USEDEP}]
dev-python/srptools[${PYTHON_USEDEP}]
>=dev-python/qh3-0.11.5[${PYTHON_USEDEP}]
>=dev-python/developer_disk_image-0.0.2[${PYTHON_USEDEP}]
dev-python/opack[${PYTHON_USEDEP}]
dev-python/psutil[${PYTHON_USEDEP}]
>=dev-python/pytun-pmd3-1.0.0[${PYTHON_USEDEP}]
dev-python/aiofiles[${PYTHON_USEDEP}]
"
DEPEND="${RDEPEND}"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"

View file

@ -1,2 +1,2 @@
DIST fastapi-0.103.2.tar.gz 11231158 BLAKE2B dcc649bc61e41d680c8847d53c6233a3085d11e485f1cd6e4b53f8ff84396755d6a8c3300eb6b31091c33a66b939addca09f26c6067dad94df8942e7eac2474b SHA512 1fc645ab84e216760e996c76496cec2d1dc8dcf1d7555de4ae811c9f7305c836d7f8c9e0ad9109b05d84c27cbae571d9a6a4cbab357f9f1bd739d5cf17ad9e6e
DIST fastapi-0.95.1.tar.gz 10045151 BLAKE2B c4fbe9b203d4376ad5f9b6889f24ef77a757f1871f0dff9e9e5010e0292aaccf70e9952f582cd28bcbffbd7171fdabd51901b569a538bbbf5f2d30bf5bca7700 SHA512 111a77fda85deca863b610b693494a3628b90e006b7b6df0415149e486059d6191da7de84f48657b18784777e8cef824ed18364a299a8226596e11e5de8e661a
DIST fastapi-0.104.0.tar.gz 11296936 BLAKE2B 0554c11f6409e336e8804d4ecc1135f577862fa54a57a5208d4183ba9e4d0ef43faddcd2ecb8070a45f09b91be283ad8e8f0381b4c50731c9d16ea4b69a1b65e SHA512 e14fb026fc4362e303a04c26b0b97a5ec7dd09296a282270f1c15a1c1a9ec70ca06a9544f112fc28567ebb52d35f17fa88ade836f71e24fcab5b1a624c142b3b

View file

@ -18,36 +18,30 @@ LICENSE="MIT"
SLOT="0"
#starlette is not stable
KEYWORDS="~amd64 ~arm64 ~x86"
IUSE=""
IUSE="all"
RESTRICT="test"
#starlette is locked in the pyproject.toml, let's fix it
# FIXME: missing deps:
# >=dev-python/pydantic-settings-2.0.0[${PYTHON_USEDEP}]
# >=dev-python/pydantic-extra-types-2.0.0[${PYTHON_USEDEP}]
RDEPEND="
>=dev-python/starlette-0.26.1[${PYTHON_USEDEP}]
>=dev-python/pydantic-1.6.2[${PYTHON_USEDEP}]
"
all? (
>=dev-python/httpx-0.23.0[${PYTHON_USEDEP}]
>=dev-python/jinja-2.11.2[${PYTHON_USEDEP}]
>=dev-python/python-multipart-0.0.5[${PYTHON_USEDEP}]
>=dev-python/itsdangerous-1.1.0[${PYTHON_USEDEP}]
>=dev-python/pyyaml-5.3.1[${PYTHON_USEDEP}]
>=dev-python/ujson-4.0.1[${PYTHON_USEDEP}]
>=dev-python/orjson-3.2.1[${PYTHON_USEDEP}]
>=dev-python/email-validator-2.0.0[${PYTHON_USEDEP}]
>=dev-python/uvicorn-0.12.0[${PYTHON_USEDEP}]
)"
#FIXME: add missing deps
#BDEPEND="test? (
# dev-python/pytest[${PYTHON_USEDEP}]
# dev-python/pytest-cov[${PYTHON_USEDEP}]
# dev-python/mypy[${PYTHON_USEDEP}]
# dev-python/flake8[${PYTHON_USEDEP}]
# dev-python/black[${PYTHON_USEDEP}]
# dev-python/isort[${PYTHON_USEDEP}]
# dev-python/requests[${PYTHON_USEDEP}]
# dev-python/httpx[${PYTHON_USEDEP}]
# dev-python/email_validator[${PYTHON_USEDEP}]
# dev-python/sqlalchemy[${PYTHON_USEDEP}]
# dev-python/peewee[${PYTHON_USEDEP}]
# dev-python/databases[sqlite]
# dev-python/orjson[${PYTHON_USEDEP}]
# dev-python/ujson[${PYTHON_USEDEP}]
# dev-python/python-multipart[${PYTHON_USEDEP}]
# dev-python/flask[${PYTHON_USEDEP}]
# dev-python/anyio[trio]
# dev-python/types-ujson[${PYTHON_USEDEP}]
# dev-python/types-orjson[${PYTHON_USEDEP}]
#)"
#distutils_enable_tests pytest

View file

@ -27,3 +27,8 @@ DEPEND="${RDEPEND}"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
#distutils_enable_tests pytest
src_prepare(){
sed -i -e 's|rpcclient|ipsw_parser|g' pyproject.toml || die
eapply_user
}

View file

@ -27,3 +27,8 @@ RESTRICT="test"
#src_test(){
# ${EPYTHON} ./tests/test_opack.py || die
#}
src_prepare(){
sed -i -e 's|pymobiledevice3|opack|g' pyproject.toml || die
eapply_user
}

View file

@ -29,5 +29,7 @@ RESTRICT="test"
src_prepare(){
sed -i -e 's|==|>=|g' requirements.txt || die
# https://github.com/doronz88/pycrashreport/issues/20
sed -i -e 's|rpcclient|pycrashreport|g' pyproject.toml || die
eapply_user
}

View file

@ -0,0 +1 @@
DIST pytun-pmd3-1.0.0.tar.gz 43370 BLAKE2B 4d190b8766e776ae4e55d99cac5a261b8ed692154e2f70df66a0734cd6f61e844caf9223373804baa3f03d35c899d33eee042593f25f24d6f685f6f5de88bdd3 SHA512 b4cf93ce4808c2cf8beca6e23b2c758257537bf77e71b26dc0a104305de4343c740ca5cefc1a3731b9a174bd0ed09727c836abd578a8ee2d87f0c50bb0a8b429

View file

@ -0,0 +1,30 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_EXT=1
PYPI_NO_NORMALIZE=1
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..11} )
inherit distutils-r1 pypi
DESCRIPTION="python-pytun fork with Darwin support (IPv6-ONLY)"
HOMEPAGE="https://github.com/doronz88/pytun-pmd3"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="amd64 ~arm64 x86"
IUSE=""
RDEPEND=""
DEPEND="${RDEPEND}"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
#distutils_enable_tests pytest
src_prepare(){
rm -r test
eapply_user
}

1
dev-python/qh3/Manifest Normal file
View file

@ -0,0 +1 @@
DIST qh3-0.12.0.tar.gz 818568 BLAKE2B 8cc3f87469ee08fcf1da4fca2281e888ae03bcd6a2e57300e01165fcdfe26c9370617ba0db462b941bd767104b1f285f07bf3bfdf5a549c29a4d49b9a71d4792 SHA512 1003ef46f2ced3d5a01bec52ca8bbafb1317ed69a39cb1f74aa6686125381f6bb4c7d33f963a8eef6e85d5b073f0f9e086b63c0db93b86b11cd9d5ced12df823

View file

@ -0,0 +1,23 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..11} )
inherit distutils-r1 pypi
DESCRIPTION="An implementation of QUIC and HTTP/3"
HOMEPAGE="https://github.com/jawah/qh3"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 ~arm64 x86"
IUSE=""
RDEPEND=">=dev-python/cryptography-41.0.0[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
#distutils_enable_tests pytest

View file

@ -0,0 +1 @@
DIST remotezip-0.12.1.tar.gz 7481 BLAKE2B edeacf6ac204f6299975b8d28d56354297526fe5b151fa3ac4a9f193686ae00dbc8735da28d503542c5b344a38c7a67f24bf6ad4369f6a00844f399aabc10fd1 SHA512 13a379d47a00cd7c4b1755068359d7a1b3804fc42aa7879f3921336d085eb9a12b3a262e80f5712a823a857e16138a9ffcc6e7a2146af1f9d0e2afb7d5bb528d

View file

@ -0,0 +1,26 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..11} )
inherit distutils-r1 pypi
DESCRIPTION="Access zip file content hosted remotely without downloading the full file."
HOMEPAGE="https://github.com/gtsystem/python-remotezip"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 ~arm64 x86"
IUSE=""
RDEPEND="
dev-python/requests[${PYTHON_USEDEP}]
dev-python/tabulate[${PYTHON_USEDEP}]
"
DEPEND="${RDEPEND}"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
#distutils_enable_tests pytest

View file

@ -0,0 +1 @@
DIST srptools-1.0.1.tar.gz 15436 BLAKE2B bfa7e2805f84357eda276a73c6922e7bc42c07994f5ce45357be7c81ff0b80a00e0bbf2cb3d1d6a6ce2720303f0645a3cefb6aa5e00da5532acb45d400d34a99 SHA512 62ca138e283d89d7989361dca78f2bf550464c89d354ce4ec2ff55932105f53f86dd81506a9390b8d49aed177291c94db3bb94e920244e70b7ecb4db3dc6e3e0

View file

@ -0,0 +1,25 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..11} )
inherit distutils-r1 pypi
DESCRIPTION="Tools to implement Secure Remote Password (SRP) authentication"
HOMEPAGE="https://github.com/idlesign/srptools"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 ~arm64 x86"
IUSE=""
RDEPEND="dev-python/six[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RESTRICT="test"
#distutils_enable_tests pytest

View file

@ -1 +1,9 @@
# List unstable packages here
# Pentoo (unstable Gentoo deps: dev-python/aiofiles etc)
app-pda/pymobiledevice3
dev-python/pykdebugparser
dev-python/ipsw_parser
dev-python/pyimg4
dev-python/bpylist2
dev-python/developer_disk_image

View file

@ -87,7 +87,13 @@ def portage_mapping(search):
def pyproject_toml():
try:
with open('./pyproject.toml', 'rb') as f:
dependencies = tomli.load(f)['tool']['poetry']['dependencies']
try:
dependencies = tomli.load(f)['tool']['poetry']['dependencies']
except:
# FIXME:
# build-backend = "setuptools.build_meta"
print("unable to find 'poetry' dependencies, trying setuptools instead")
return 1
except FileNotFoundError:
return 1
#Debug