diff options
Diffstat (limited to 'dev-python/pymongo')
-rw-r--r-- | dev-python/pymongo/Manifest | 4 | ||||
-rw-r--r-- | dev-python/pymongo/metadata.xml | 6 | ||||
-rw-r--r-- | dev-python/pymongo/pymongo-4.4.0.ebuild | 21 |
3 files changed, 21 insertions, 10 deletions
diff --git a/dev-python/pymongo/Manifest b/dev-python/pymongo/Manifest index 746c2507e5bf..1b5f1c7c6d76 100644 --- a/dev-python/pymongo/Manifest +++ b/dev-python/pymongo/Manifest @@ -5,5 +5,5 @@ DIST mongo-python-driver-4.4.0.gh.tar.gz 1461533 BLAKE2B 3be9b054bcfeaf7a1c00070 EBUILD pymongo-4.1.1.ebuild 2762 BLAKE2B 64bd9475841411ccb3ebf2296b5a256268d175b6566966db391a80042e340374136930a8b87812fcb93173289a4b7d3cb7c3f265c9ff45693a4358ac314d55ac SHA512 a329c5817d03518bf444f9eff5b566e4a2a71faa2f5bf841bd11796ae1e49b2b1a2b317a9ea708439dc53de4ee9b8545f25dd276f80eae66fadbe5f2466ca815 EBUILD pymongo-4.2.0.ebuild 2772 BLAKE2B 74604d4e0359dc49cd5f78cadca4dca49821841746d2865a4e0b73d3ae8b6e3f82b68c92ba80397bbb87d30df4e63430290cd89d34d4060a0b3aea38050a0f7c SHA512 606378578c5d9ffccb94b636366b809095e45416c1341b904483bb1cba579f8946847e302598fb55824abdd2029e42a7bce5877a791ec4e8b69422dda153c58e EBUILD pymongo-4.3.3.ebuild 2934 BLAKE2B bf671044e62ed43fdf3a26c0c6d809320398fa21ee93d757703d5f3df942f297934267ec0b3a6d0bf827e3fab46a1d02d184de9f6722422537fd2362287252c8 SHA512 162bb42903c35a3fe3fadeae7be44fe0e22eed58966985e66150edf849ef74ce0037bbf904403fbd8d009943e5ead4e847a66df49ecd70f0d80ff95798b763c9 -EBUILD pymongo-4.4.0.ebuild 2938 BLAKE2B 24c1e6b98230a2036fb91b2485f9c8e57f430469558275ed4656e5e6e4e6a4672b2c1a69347f632e93a5f57d4b875fbf1754031051c114d1448f4cd6d7dc0830 SHA512 9c90d684cbbd9dd6e8afd7c1473696648fd0832deba59ba58a938bc7232e735dd0bcd4c325502aca0033f68d45afcc84c55e72b27cb38e03b4c641919e613653 -MISC metadata.xml 673 BLAKE2B fb66f76592841f2647a94e24e07fafa8be2bc31583bac35dc3933a3feeea87f0c4105ab6b480bce5f2b8aeced8c113c8a3ce9714b22ff909f92eccceffa8f9a9 SHA512 9e758aa60153da583ed21bdf6addd001c560894fc6d429217405e7dfbdc673a9e22bc5a41afcc1281f7613ae1059c0824a7bba246006aa66c6eced75ab975e51 +EBUILD pymongo-4.4.0.ebuild 3044 BLAKE2B 5ab0727b03fecbcaaef28ba401e3f42a01fe309627eb0dd7365c092826ba39c50bf2fc4cc3e28e99ac265b076a3bd85b6e156037ee24b5e4d53a594c19b492ac SHA512 b7ecd6db645bec5c0998298ecc2890ca5e7880a23c659d3965716663c43247ce4ded34e87e569aed71ef92e7a2c3db493bf40a81fa679e37e0c0df46cd5c6e22 +MISC metadata.xml 806 BLAKE2B 536379dc753a1e4dcd787d3e00936e0a047e61388f3c9a843a6cf9bece4a2b39e3914cc600cfe9bf8dd3c44cfe44ef5961d66f2aca1e9a4cd1da9c93533f2349 SHA512 c74e54c17e7abe70b0155c17e85493f37da0a2b66d50099e05a5588680f20ad27c46682804a7db117dfdffa6e15abb78e1957587b881029a9c29c86cee890b22 diff --git a/dev-python/pymongo/metadata.xml b/dev-python/pymongo/metadata.xml index 9fefebbe96bd..49d5ee837cb8 100644 --- a/dev-python/pymongo/metadata.xml +++ b/dev-python/pymongo/metadata.xml @@ -12,6 +12,12 @@ <longdescription lang="en">PyMongo is a Python distribution containing tools for working with MongoDB, and is the recommended way to work with MongoDB from Python.</longdescription> + <use> + <flag name="test-full"> + Run test suite in full, including tests that run a local + database instance. + </flag> + </use> <upstream> <remote-id type="pypi">pymongo</remote-id> <remote-id type="github">mongodb/mongo-python-driver</remote-id> diff --git a/dev-python/pymongo/pymongo-4.4.0.ebuild b/dev-python/pymongo/pymongo-4.4.0.ebuild index 77c634e1b868..39b138a7bd5f 100644 --- a/dev-python/pymongo/pymongo-4.4.0.ebuild +++ b/dev-python/pymongo/pymongo-4.4.0.ebuild @@ -24,14 +24,14 @@ S=${WORKDIR}/${MY_P} LICENSE="Apache-2.0" SLOT="0" KEYWORDS="~amd64 ~arm64 ~hppa ~riscv ~x86" -IUSE="doc kerberos" +IUSE="doc kerberos +test-full" RDEPEND=" <dev-python/dnspython-3.0.0[${PYTHON_USEDEP}] kerberos? ( dev-python/pykerberos[${PYTHON_USEDEP}] ) " BDEPEND=" - test? ( + test-full? ( >=dev-db/mongodb-2.6.0 ) " @@ -40,7 +40,7 @@ distutils_enable_sphinx doc distutils_enable_tests unittest reqcheck() { - if use test; then + if use test-full; then # During the tests, database size reaches 1.5G. local CHECKREQS_DISK_BUILD=1536M @@ -72,11 +72,16 @@ src_prepare() { } python_test() { - # Yes, we need TCP/IP for that... - local DB_IP=127.0.0.1 - local DB_PORT=27000 + if ! use test-full; then + # .invalid is guaranteed to return NXDOMAIN per RFC 6761 + local -x DB_IP=mongodb.invalid + esetup.py test + return + fi - export DB_IP DB_PORT + # Yes, we need TCP/IP for that... + local -x DB_IP=127.0.0.1 + local -x DB_PORT=27000 local dbpath=${TMPDIR}/mongo.db local logpath=${TMPDIR}/mongod.log @@ -116,7 +121,7 @@ python_test() { done local failed - DB_PORT2=$(( DB_PORT + 1 )) DB_PORT3=$(( DB_PORT + 2 )) esetup.py test || failed=1 + nonfatal esetup.py test || failed=1 mongod --dbpath "${dbpath}" --shutdown || die |