mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-18 11:33:15 -04:00
Merge updates from master
This commit is contained in:
@@ -1 +1 @@
|
||||
DIST autoflake-2.2.1.tar.gz 27377 BLAKE2B d669fd1954974f7237423d7dc67de044d737ba5a462b565f3307f1b6bdecefa6a6b2a6de437570e6a7772a692e894fb414e1ff05fc0aae7cbb3a0901ec9a0129 SHA512 02021b5f92edcdcb0b3c11132a46cf73dbc4b6e4efc4f5d5981b66bc5beafbef66a81229e65a727816ebda419c93399df14e9b6ba9f38a728f95a3455c1089f9
|
||||
DIST autoflake-2.3.1.tar.gz 27642 BLAKE2B 5002b404c39a5a1e18c5dc6e8a70f958b9d02e412b9320ba4b801b1a20427110cd15363bb3e4acb25de4ceca77ce86d49c1c36cef5ba3e886fecffb996ef7b81 SHA512 bad9a34f253e1182f3128867eb8699c8c02b99f35479c1b65669f0411d7dff29fe477a267d0398e60a5e833530ace3cf28443a4b2a8924bd019447cc7ee8ab08
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..11} )
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
DISTUTILS_USE_PEP517=hatchling
|
||||
|
||||
inherit distutils-r1 pypi
|
||||
@@ -1,2 +1 @@
|
||||
DIST Mastodon.py-1.8.0.tar.gz 8659035 BLAKE2B 46c07fc3e3cf289f8a161975b1f3f36a88882c3299e79b331f3c659c18c5cafbc7144be57bf580212152a345ab4c4e73a08ea4d6052953fae6664eabd6360c3f SHA512 497cdb42adeceeea6f65210daf94eff0c6ce26b286fabc13976c8276649b6b6f51f47b4e99733133c60dc373fcbb0b0760a20ff526d8435391c43e8f06666696
|
||||
DIST Mastodon.py-1.8.1.tar.gz 8694359 BLAKE2B d3b8d2196199eeaeb0377c8503e763099943142c58b5b45bbbb86a38c0629ea6ee6427b53c989267a13d4d2a0c104635387ffef96d05d7dfa7dd8c2756e8704b SHA512 812bfdcb1a59a06376bfb48798b43cac9dc9390781b3949e4b3d751ec0530b25b187e688c7cfc18eff6d5bb23c9bf442bce5f6902727331e8bc550e310dab94c
|
||||
|
||||
@@ -1,55 +0,0 @@
|
||||
# Copyright 2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{10..11} )
|
||||
PYPI_NO_NORMALIZE=1
|
||||
PYPI_PN="Mastodon.py"
|
||||
inherit distutils-r1 optfeature pypi
|
||||
|
||||
MY_PN="Mastodon.py"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
DESCRIPTION="Python wrapper for the Mastodon API"
|
||||
HOMEPAGE="
|
||||
https://pypi.org/project/Mastodon.py/
|
||||
https://github.com/halcy/Mastodon.py
|
||||
"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/blurhash[${PYTHON_USEDEP}]
|
||||
dev-python/decorator[${PYTHON_USEDEP}]
|
||||
dev-python/python-dateutil[${PYTHON_USEDEP}]
|
||||
dev-python/python-magic[${PYTHON_USEDEP}]
|
||||
dev-python/pytz[${PYTHON_USEDEP}]
|
||||
dev-python/requests[${PYTHON_USEDEP}]
|
||||
dev-python/six[${PYTHON_USEDEP}]
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/cryptography[${PYTHON_USEDEP}]
|
||||
dev-python/http-ece[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-mock[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-vcr[${PYTHON_USEDEP}]
|
||||
dev-python/requests-mock[${PYTHON_USEDEP}]
|
||||
dev-python/vcrpy[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
distutils_enable_sphinx docs
|
||||
|
||||
src_prepare() {
|
||||
distutils-r1_src_prepare
|
||||
rm setup.cfg || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature "webpush support" "dev-python/cryptography dev-python/http-ece"
|
||||
}
|
||||
@@ -1,10 +1,10 @@
|
||||
# Copyright 2022-2023 Gentoo Authors
|
||||
# Copyright 2022-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{10..11} ) # fails all tests with py3.12
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
PYPI_NO_NORMALIZE=1
|
||||
PYPI_PN="Mastodon.py"
|
||||
inherit distutils-r1 optfeature pypi
|
||||
|
||||
@@ -1 +1 @@
|
||||
DIST pygsl-2.3.3.gh.tar.gz 1110939 BLAKE2B 9da5e35a6367a8cc03f836cab5e41d8d6e7c0c3d5bca995e01cf83e308f1922e6fce677977830920bc1184c6ac531f79da21d3941a63a72e16eb13b0faeabe0e SHA512 289713c2ac5d1adb1f5dd4379b704fbcfa56227b0bdbd19166a4c218d7eb9b41cb4927c265862996ae668486733510e56b6a6a0e0046d1040c88e8e854ce4a48
|
||||
DIST pygsl-2.3.4.gh.tar.gz 1100233 BLAKE2B 0d59062ae7a6193225ac731a9a12a7c32df9c309a90e358fd77f7c957f8d27269e97634022036aa7b1d99e2c3703a7c45387c97557c4e28762310009626cb465 SHA512 4b510426bafc06c79742f0ef0ad07e31a7aa74c14bab88bd2f0a2acb125569ecf38aeab0eaf01590bd052474a4aa7f8b39a66f853e4bc4a392e126dcf4bfb359
|
||||
|
||||
@@ -1,16 +1,17 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{10..11} )
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Python interface for the GNU scientific library (gsl)"
|
||||
HOMEPAGE="https://github.com/pygsl/pygsl"
|
||||
SRC_URI="https://github.com/pygsl/pygsl/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz"
|
||||
SRC_URI="https://github.com/pygsl/pygsl/archive/v.${PV}.tar.gz -> ${P}.gh.tar.gz"
|
||||
S="${WORKDIR}/${PN}-v.${PV}"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
@@ -27,12 +28,7 @@ DEPEND="
|
||||
"
|
||||
|
||||
distutils_enable_sphinx doc dev-python/sphinx-rtd-theme
|
||||
distutils_enable_tests unittest
|
||||
|
||||
python_configure() {
|
||||
esetup.py config
|
||||
default
|
||||
}
|
||||
distutils_enable_tests pytest
|
||||
|
||||
src_install() {
|
||||
use examples && dodoc -r examples
|
||||
@@ -1 +1 @@
|
||||
DIST pyodbc-4.0.35.tar.gz 273300 BLAKE2B cda55c3f880f5b8e243090a8150095e323bce5a28006d6105d8fcf4724a1f4219314591a4e53fc38844607d7714dffa5a221cd89c08dd5725aec251ca1977a18 SHA512 63b5191f5b57379e4767f94ecc83f80c73a3d40e7479753ccd7ff5ca27961be526bbf5ec169f9ca17c2ef7bd521507898be9b95110e290c4c69e1974c4c053f2
|
||||
DIST pyodbc-5.1.0.tar.gz 115450 BLAKE2B 8080db700abb952ae60045825f76e73a3d4a42f13c05e48eeb06574d5535f34345aa8bf2710730430229cb31b3d73c9fcb250d8d0fddabf94ecfcb24518bf931 SHA512 78817864d30048eed0c670a30e1cc66bc72edd6c21d069a5cc5831ed180b25a5b30d2bf2313628431943defbae66c2df96e90781ef17bb8929622b9f49cfcaab
|
||||
|
||||
@@ -1,53 +0,0 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
# No pypy3 support: https://github.com/mkleehammer/pyodbc/issues/915
|
||||
PYTHON_COMPAT=( python3_{10..11} )
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
inherit databases edo distutils-r1 optfeature pypi
|
||||
|
||||
DESCRIPTION="Python ODBC library"
|
||||
HOMEPAGE="
|
||||
https://pypi.org/project/pyodbc/
|
||||
https://github.com/mkleehammer/pyodbc
|
||||
"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="mssql"
|
||||
|
||||
RDEPEND=">=dev-db/unixODBC-2.3.0"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
test? (
|
||||
${DATABASES_DEPEND[mysql]}
|
||||
dev-db/myodbc:8.0
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_test() {
|
||||
edo ${EPYTHON} tests3/run_tests.py -vv \
|
||||
--mysql "DRIVER=/usr/$(get_libdir)/myodbc-8.0/libmyodbc8a.so;SERVER=localhost;PORT=44444;DATABASE=test"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emysql --start 44444
|
||||
distutils-r1_src_test
|
||||
emysql --stop
|
||||
}
|
||||
|
||||
src_install() {
|
||||
distutils-r1_src_install
|
||||
rm "${D}/usr/pyodbc.pyi" || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature "MS SQL Server support" dev-db/freetds-0.64[odbc]
|
||||
optfeature "MySQL support" dev-db/myodbc
|
||||
optfeature "PostgreSQL support" dev-db/psqlodbc
|
||||
}
|
||||
64
dev-python/pyodbc/pyodbc-5.1.0.ebuild
Normal file
64
dev-python/pyodbc/pyodbc-5.1.0.ebuild
Normal file
@@ -0,0 +1,64 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_EXT=1
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{10..12} ) #py3.13 doesn't compile
|
||||
|
||||
inherit databases distutils-r1 optfeature pypi
|
||||
|
||||
DESCRIPTION="Python ODBC library"
|
||||
HOMEPAGE="
|
||||
https://pypi.org/project/pyodbc/
|
||||
https://github.com/mkleehammer/pyodbc
|
||||
"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="mssql"
|
||||
|
||||
RDEPEND=">=dev-db/unixODBC-2.3.0"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
test? (
|
||||
${DATABASES_DEPEND[mysql]}
|
||||
dev-db/myodbc:8.0
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
EPYTEST_DESELECT=(
|
||||
# Broken test, generates a string longer than 4000 characters
|
||||
tests/mysql_test.py::test_varchar
|
||||
)
|
||||
|
||||
EPYTEST_IGNORE=(
|
||||
# No easy way to run an SqlServer during tests
|
||||
tests/sqlserver_test.py
|
||||
)
|
||||
|
||||
python_test() {
|
||||
export PYODBC_MYSQL="DRIVER=/usr/$(get_libdir)/myodbc-8.0/libmyodbc8a.so;SERVER=localhost;PORT=44444;DATABASE=test"
|
||||
export PYODBC_POSTGRESQL="DRIVER=/usr/$(get_libdir)/psqlodbcw.so;SERVER=localhost;PORT=44445;DATABASE=test;UID=postgres"
|
||||
epytest
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emysql --start 44444
|
||||
epostgres --start 44445
|
||||
psql -U postgres -h 127.0.0.1 -p 44445 <<EOF
|
||||
CREATE DATABASE test OWNER postgres
|
||||
EOF
|
||||
distutils-r1_src_test
|
||||
epostgres --stop
|
||||
emysql --stop
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature "MySQL support" dev-db/myodbc
|
||||
optfeature "PostgreSQL support" dev-db/psqlodbc
|
||||
}
|
||||
Reference in New Issue
Block a user