diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-12-21 13:54:09 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-12-21 13:54:09 +0000 |
commit | 454de691f3543d47dc89cd0b137eaa9ea4640cd3 (patch) | |
tree | 90ec469ff7d2e1b1fac0b0f98f32d49dacb30278 /dev-python/psycopg | |
parent | e393c0503a79342594a61547dc43f80f8bcc086e (diff) |
gentoo auto-resync : 21:12:2022 - 13:54:08
Diffstat (limited to 'dev-python/psycopg')
-rw-r--r-- | dev-python/psycopg/Manifest | 2 | ||||
-rw-r--r-- | dev-python/psycopg/psycopg-3.1.7.ebuild | 78 |
2 files changed, 80 insertions, 0 deletions
diff --git a/dev-python/psycopg/Manifest b/dev-python/psycopg/Manifest index cbd9d88a01bf..e591f40969cc 100644 --- a/dev-python/psycopg/Manifest +++ b/dev-python/psycopg/Manifest @@ -1,9 +1,11 @@ DIST psycopg-3.1.4.gh.tar.gz 469317 BLAKE2B a6df49a5adefbeb310602473e950ef77f0c613d8a33d41ee37dbfec544dfd014dba8dae5f78ce2bc89f2d9531ccbdd6ea07665ca638f29a4a7d0d1006bc0d778 SHA512 2bf49d6eb7e20c6f22adf47cef6dce691f38f4b310f2fbf3986f3ad14c7d390d53b9edeb3365bbf096941cc2d2affe2ddd542fe93ef37c41109742c9f9af4ba7 DIST psycopg-3.1.5.gh.tar.gz 478528 BLAKE2B f0e6d1970b81875481bf0939d750d585f9ce4be1ccf838d1884a54d366614ec1ca76756b455d28b559ef4f49696eda68fa3b42f8c0cc18d9ce9fd1ce21029830 SHA512 006a9a6b7d34ed6f0411c33001334b9e9d29c8d1fe5e9e3b940d5664cc5c06ce10bc278ee1906a96073843ca2f8effaada8789aa390de97e543e19cc452546d1 DIST psycopg-3.1.6.gh.tar.gz 478611 BLAKE2B d947344d033e034a94545bcbdcb27b5f903bbf344ce11f52de2b2e514892d2dfd87e3b26f130736c8c3798654c2d59d4f00c1093ce09f777b442d40eef8633c2 SHA512 2dc77cc90692fb92715add1dcbd9b82f10b811e7cf6782fa9d0cb7d076cf699be6d81ecb73d5b4b2772c08fb8070782956eb97b0fc4f0169c5bddb9b7df7a0ad +DIST psycopg-3.1.7.gh.tar.gz 480599 BLAKE2B 85badb2f7058000deec8f3eac023907c24f4de073150a536f5a8a646a74dfea7ccc429a9ada049f3a6285b508992c06a8e0d0ea826a3613145b238410190431f SHA512 a3be0074e38953bf2b08ac6892d3a7a98bb9ef3e5ab1183d65e7d2aa14c5b148b625dc1da1d830bb6b9cd17d6726b9348fa32415413ed48bba6dd6bd31521432 DIST psycopg2-2.9.4.tar.gz 384017 BLAKE2B 4bc0afcc890c8a257c1ccd5c6e4e5301857a80f8b1428aa46c1473c9e18f5d2914a2e592c13336b06106217bb334d9b0321835bdd123f1627cbeb29dedf97bf7 SHA512 259088e42e0ab0d8a1a0ccf04f5e560f32c6179b4a0a0059e91bcf269baa8f4b0f1f949c332c640a2438c927a29b2c144078a861f8e18ba9c764da7c93c73b8d EBUILD psycopg-2.9.4.ebuild 1341 BLAKE2B b15c8cbba716e477b2abdab49b2926c66ebf2a041398e2182450cdf5a8cdfecf23d955f557f5ab270d393116f77482d4572995dbf9be0b174fc127cfadb1f6e7 SHA512 c801cf840907a22566854ded036febc066fa42ef017bef2cfb45d5c7d9774a4f6aad0751769f74755d6b5c4dc2d24f51a1761d07e1cf66737145ecb1bc56c9fb EBUILD psycopg-3.1.4.ebuild 1725 BLAKE2B c78cc5299f68452a34fedef960e3ad1bab4d2ab350e06717813bb6972bc0b71c138d1b7d8da12fbea9c36d6b107d9be137e278d43e3a31e74a9fb0df09cbb404 SHA512 2efabffff8d9ae101f2207e694f60bb47daa54454274c8c7abfd69e7b21189628c088e9f8b2677a8bb2a9dde4a345abb165a538a35be7c7dc436a0f886b88ed0 EBUILD psycopg-3.1.5-r1.ebuild 1689 BLAKE2B dda00ed9a7de787e67bd4b91f0f2ba48006bf62723d80a1c639d582cbbc52138537a89bc376097078e1a5ddd78a2e190ebf407510f0287cea2abefcb3a660dc4 SHA512 ca94101ba5e0a51228315bbc1b09bb66d11cd729dfca89b91b78121d53d75dc8d94ba0050692c07c322078dde2f558d1a7e5ec84ac46395742d8a7c90e312b11 EBUILD psycopg-3.1.6.ebuild 1794 BLAKE2B 99a479d52acbaa15b6c3466652177fdf97c38bb9084cb3238ab87b423f07438beea1e0b7714a51bf7420bd520b7a090c8216be9151bff3145f4221529f7f7293 SHA512 a7a1fcc048d32a63ba14c335c585908da3e4f612ce216da6c4e972a0c671fb690529e077ca2bbd092052265e95e43974c4d90ead61b1fb5f8d104049e3e52169 +EBUILD psycopg-3.1.7.ebuild 1794 BLAKE2B 99a479d52acbaa15b6c3466652177fdf97c38bb9084cb3238ab87b423f07438beea1e0b7714a51bf7420bd520b7a090c8216be9151bff3145f4221529f7f7293 SHA512 a7a1fcc048d32a63ba14c335c585908da3e4f612ce216da6c4e972a0c671fb690529e077ca2bbd092052265e95e43974c4d90ead61b1fb5f8d104049e3e52169 MISC metadata.xml 426 BLAKE2B a573dbbef89ba2c3c7e7aa11e87005879fa823daa8d7e2080ce82dab7196429769b5e2ed0c4ffb363443469dfa47524d900fae75c4d7c8c9da901389e746838f SHA512 e3059428d8c00113696bfd232b2ad3fd4efccc304a31ff45801f30bb07c03acd58aafcab187fd85e4d89eff4db6c18a1395744eb1fd5cf8f11e43aca0f4e60cc diff --git a/dev-python/psycopg/psycopg-3.1.7.ebuild b/dev-python/psycopg/psycopg-3.1.7.ebuild new file mode 100644 index 000000000000..79cbeb5d8eb7 --- /dev/null +++ b/dev-python/psycopg/psycopg-3.1.7.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..11} ) + +inherit distutils-r1 + +DESCRIPTION="PostgreSQL database adapter for Python" +HOMEPAGE=" + https://www.psycopg.org/psycopg3/ + https://github.com/psycopg/psycopg/ + https://pypi.org/project/psycopg/ +" +SRC_URI=" + https://github.com/psycopg/psycopg/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" +S=${WORKDIR}/${P}/psycopg + +LICENSE="LGPL-3+" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-solaris" + +DEPEND=" + >=dev-db/postgresql-8.1:* +" +RDEPEND=" + ${DEPEND} + $(python_gen_cond_dep ' + >=dev-python/backports-zoneinfo-0.2.0[${PYTHON_USEDEP}] + ' 3.8) + >=dev-python/typing-extensions-4.1[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + >=dev-db/postgresql-8.1[server] + dev-python/pytest-asyncio[${PYTHON_USEDEP}] + dev-python/dnspython[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +src_test() { + # tests are lurking in top-level directory + cd .. || die + + initdb -D "${T}"/pgsql || die + # TODO: random port + pg_ctl -w -D "${T}"/pgsql start \ + -o "-h '' -k '${T}'" || die + createdb -h "${T}" test || die + + local -x PSYCOPG_TEST_DSN="host=${T} dbname=test" + distutils-r1_src_test + + pg_ctl -w -D "${T}"/pgsql stop || die +} + +python_test() { + local EPYTEST_DESELECT=( + # tests for the psycopg_pool package + tests/pool + # some broken mypy magic + tests/test_module.py::test_version + tests/test_module.py::test_version_c + tests/test_typing.py + tests/crdb/test_typing.py + # TODO, relying on undefined ordering in Python? + tests/test_dns_srv.py::test_srv + ) + + # leak tests seem to be brittle + epytest -p no:django -k "not leak" +} |