remove olds, cleanup, enable pytest

This commit is contained in:
Andreas Billmeier 2022-10-16 11:55:15 +02:00 committed by Andreas Billmeier
parent a0cd884920
commit 3f9dfb5332
Signed by: onkelbeh
GPG Key ID: E6DB12C8C550F3C0
4 changed files with 8 additions and 62 deletions

View File

@ -547,7 +547,7 @@ A daily compile test is run at Github with Python 3.9 to catch general faults. E
## Licenses
This repository itself is released under GPL-3 (like most Gentoo repositories), all work on the depending components under the licenses they came from. Perhaps you came here because I filed an issue at your component about a bad or missing license. It is easy to [assign a license](https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/adding-a-license-to-a-repository). During cleanups and license investigations I have been asked often which license to choose. I am not a lawyer, but I can offer the following table, counted over this repository, perhaps this helps your decision. If a package has more than one license listed, all of them are counted.
There are 1593 Ebuilds in total, 1586 of them have in total 1598 (34 different) licenses assigned.
There are 1592 Ebuilds in total, 1585 of them have in total 1597 (34 different) licenses assigned.
|License| Ebuilds using it|
|-------|-----|
@ -556,7 +556,7 @@ There are 1593 Ebuilds in total, 1586 of them have in total 1598 (34 different)
|GPL-3|95|
|BSD|90|
|LGPL-3|26|
|GPL-2|20|
|GPL-2|19|
|all-rights-reserved|14|
|GPL-3+|13|
|BSD-2|12|

View File

@ -1,4 +1,3 @@
DIST mysql-connector-python-8.0.28.tar.gz 15209508 BLAKE2B dbafbe19dc9e65e37598d40d98347902ecf281f4b086d0462df370bf143547881edeead0ad3d50d0fdcb1b861ad01b5123e4dc6884042e7b7e71e5e2e856e943 SHA512 7f03df4dae7766c9c207b408eb0e451c87fd97d84200573cdba3526b812b15c2078fcf3a697d9801b552164c4a0b7e8efe5450036d3c232e8c4402cb61849a6d
EBUILD mysql-connector-python-8.0.28-r1.ebuild 1583 BLAKE2B 9f76b8b3e3c2ca32d229940927466c6e48fbe0032f95c722eae9a7917abfda131a96253036f18ca645f0038d327fb8dc0a7f3234fce9f13488850caa4ac93afe SHA512 9e46714f4601433a8bc92b89a43336df2ec385248083f058ac8b04913f0a1f262c87db3dcb958df747a235a9d995dfb8279bb3f0ecaf32cfaefbc72e48629477
EBUILD mysql-connector-python-8.0.28.ebuild 1586 BLAKE2B c2f26d253ac1eeaf97261857dc41bd1a82878b43e16127bef937fce0d1be9e04f453e3a506ee5e5699a5bd9897b64e48aa8feb2ee9e02e1a1b229adbcd641b4b SHA512 bee532307e292cb7e7750a2a523f316c0ef6028799171ba854612665d717af9c4b5ce8eda70c2d77d5b9d37d9bc2df84a1f7c21aa98214039ef5045e1b7fe835
DIST mysql-connector-python-8.0.28.gh.tar.gz 15209508 BLAKE2B dbafbe19dc9e65e37598d40d98347902ecf281f4b086d0462df370bf143547881edeead0ad3d50d0fdcb1b861ad01b5123e4dc6884042e7b7e71e5e2e856e943 SHA512 7f03df4dae7766c9c207b408eb0e451c87fd97d84200573cdba3526b812b15c2078fcf3a697d9801b552164c4a0b7e8efe5450036d3c232e8c4402cb61849a6d
EBUILD mysql-connector-python-8.0.28-r1.ebuild 1562 BLAKE2B b7a9bb5d53f91fbd3e47f4c9f1103eb965e29e4a37e7faac10495be26e0296ebf544fe6a5ebb613cc89106aa96c906bfc77496ba80b008d4e2e18907b4f5b404 SHA512 c8c441aa9928a5a493652cde61e9805533c9124922bee68917ccca2726f457a0e9de709e9cf5f2b0ba1fc706401d79b38c9b81188abab203b2bc7b9e49d502ca
MISC metadata.xml 430 BLAKE2B 8dde94f4d1d72aa93dae9c26edea1a204b1cf2ca5e443dbcd6d16be221b763d8fb227b726d38fd03c20d05a29df900f65c3934b632a5226707ed98a4737e275f SHA512 8983ce4e3f8f1c36a02d67ef0133563c578b8583614c21be5507ddfc3ed949152973439f6bb596dc5c5117dc37f4acefd16f7eea73e710ab13c5277b4b8f02db

View File

@ -1,16 +1,16 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
EAPI=8
PYTHON_COMPAT=( python3_{8..10} )
PYTHON_COMPAT=( python3_{8..11} )
inherit distutils-r1
DESCRIPTION="Python client library for MariaDB/MySQL"
HOMEPAGE="https://dev.mysql.com/downloads/connector/python/"
SRC_URI="https://github.com/mysql/mysql-connector-python/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI="https://github.com/mysql/mysql-connector-python/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz"
KEYWORDS="amd64 arm arm64 x86 ~amd64-linux ~x86-linux"
KEYWORDS="amd64 arm arm64 x86"
LICENSE="GPL-2"
SLOT="0"
IUSE="examples test"

View File

@ -1,53 +0,0 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{8..10} )
inherit distutils-r1
DESCRIPTION="Python client library for MariaDB/MySQL"
HOMEPAGE="https://dev.mysql.com/downloads/connector/python/"
SRC_URI="https://github.com/mysql/mysql-connector-python/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
LICENSE="GPL-2"
SLOT="0"
IUSE="examples test"
BDEPEND=">=dev-libs/protobuf-3.6.1"
RDEPEND="
>=dev-db/mysql-connector-c-8.0
>=dev-python/protobuf-python-3.6.1[${PYTHON_USEDEP}]
dev-python/dnspython[${PYTHON_USEDEP}]
"
# tests/mysqld.py does not like MariaDB version strings.
# See the regex MySQLServerBase._get_version.
DEPEND="${RDEPEND} test? ( dev-db/mysql[server(+)] )"
# Tests currently fail.
# mysql.connector.errors.DatabaseError: 1300 (HY000): Invalid utf8 character string: ''
RESTRICT="test"
DOCS=( README.txt CHANGES.txt README.rst )
python_test() {
"${EPYTHON}" unittests.py --with-mysql="${EPREFIX}/usr" --unix-socket="${T}" --mysql-topdir="${T}"
}
# Yeah, this is really broken, but the extension will only build this way during "install"
python_install() {
distutils-r1_python_install \
--with-mysql-capi="${EPREFIX}/usr" \
--with-protobuf-include-dir="${EPREFIX}/usr/include/google/protobuf/" \
--with-protobuf-lib-dir="${EPREFIX}/usr/$(get_libdir)" \
--with-protoc="${EPREFIX}/usr/bin/protoc"
}
python_install_all() {
distutils-r1_python_install_all
if use examples ; then
dodoc -r examples
fi
}