dev-python/pyzipper: new package, add 0.3.6

Signed-off-by: Andreas Billmeier <b@edevau.net>
This commit is contained in:
Andreas Billmeier 2023-10-22 23:22:08 +02:00 committed by Andreas Billmeier
parent d3e7811835
commit 283c2c16f7
Signed by: onkelbeh
GPG Key ID: E6DB12C8C550F3C0
4 changed files with 74 additions and 3 deletions

View File

@ -47,6 +47,27 @@ Thank you for your continued support and understanding.
Happy automating!
## 2023.10.4 another workaround for the snmp libraries
pyasn1 0.5.0 has breaking changes which cause pysnmplib to fail until they are resolved, we need to pin pyasn1 to 0.4.8 and pysnmplib to 5.0.21 to avoid the issue.
* https://github.com/pyasn1/pyasn1/pull/30#issuecomment-151756433
* https://github.com/pysnmp/pysnmp/issues/51
To get this fixed, remove `dev-python/pyasn1-1.1.2` from /etc/portage/profile/package.provided, remove blocking packages and upgrade to `dev-python/pysnmplib-5.0.21-r2`, which then allows the installation of `dev-python/pyasn1-0.4.8-r2`. Finally, re-install all dependend packages.
## cython-3 build issues
some packages throw errors during build time, if `cython-3.0.2` is installed. Downgrade cython to `0.29.36`, and these will compile (cython is only in BDEPEND). Currently, there is no other fix. For Home Assistant 2023.10.4 I had to compile
* dev-python/grpcio-1.58.0
* dev-python/grpcio-reflection-1.58.0
* dev-python/grpcio-status-1.58.0
with the old version. Make sure you have gcc-13 active.
## 2023-03 changed main Ebuild SRC_URI to Pypi
As the current translation files have been removed from the core (https://developers.home-assistant.io/blog/2023/02/06/translations-files-removed-from-core/), I have switched SRC_URI to Pypi, the SDIST there contains all artifacts including the translations. Unfortunately tests are not part of the PyPi SDIST, so currently we have none. I'll try to pull in the tests from the Github Tarball in one of the next Releases.
@ -120,7 +141,7 @@ Best you start using the `app-misc/homeassistant-min` Ebuild. If you have it run
* Since I use Gentoo mostly on servers, I do not use systemd, one reason to run Gentoo is that you are NOT forced to run this crap. Beginning homeassistant-2021.2.0, handling for systemd was added by request, thanks to @Tatsh for help.
* I use an own profile based on "amd64/17.1/no-multilib"
* Sunce 2022.07.06, I run detailed tests on Python 3.10 only, and am starting to try builds on Python 3.11.
* python-3.11.5 is set as default target.
* python-3.11.6 is set as default target.
# Bigger Changes
@ -591,11 +612,11 @@ 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 1835 Ebuilds in total, 1824 of them have in total 1840 (40 different) licenses assigned.
There are 1836 Ebuilds in total, 1825 of them have in total 1841 (40 different) licenses assigned.
|License| Ebuilds using it|
|-------|-----|
|MIT|1070|
|MIT|1071|
|Apache-2.0|377|
|GPL-3|116|
|BSD|104|

View File

@ -0,0 +1,3 @@
DIST pyzipper-0.3.6.tar.gz 31377 BLAKE2B 718577597566ef9f7e5a8165faadd04c2e0f1bae224a19cbe538afe091e32ad3db08226e3946b7786b4d3aaa936af14ead222121531eaa885d29967783f54c1c SHA512 5c778e7d7589abc52fa035b708457d72e6deece7f943e6391b6f28a934e618c724d8dd7b0db06de46e85801bffc56b87af0506424c1ecffaebe14e5d6f8f1192
EBUILD pyzipper-0.3.6.ebuild 631 BLAKE2B d220b4985b85b5ad8e55a7940d9683871e01966733ad686c0d6731d3a5d8162ae6cc9823571327843c2c4645477c7c5f35b800daca2e41a232bd5b57bcf4aa8a SHA512 280020f565ad0e1e7e73d742ea106faccdbd5936ca6aaca45e49558896ab9e4578e777ee5018364016c0101d6661bd67a22878752586c37ccc08594c1f26f3f1
MISC metadata.xml 517 BLAKE2B 1d2566651877b42f6a8915f54ae7465dff1d5e0a6a826ad0201be81fec4b2652b184f2eeeb2b97db9b08037018c5fd1cc8dee2c3d7a7157474ab2a83d8c0462a SHA512 fdacc27c93f545993cd4c68e9bd24904f004c5d18405bd586aad08818abcafc89d905597545020e837ff8f93780acd7871b3026f7f04c9b67f1e796ad72d4d3a

View File

@ -0,0 +1,16 @@
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>b@edevau.net</email>
<name>Andreas Billmeier</name>
</maintainer>
<upstream>
<remote-id type="pypi">pyzipper</remote-id>
<remote-id type="github">danifus/pyzipper</remote-id>
<maintainer status="unknown">
<email>daniel.hillier@gmail.com</email>
<name>Daniel Hillier</name>
</maintainer>
</upstream>
</pkgmetadata>

View File

@ -0,0 +1,31 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{10..12} )
DISTUTILS_USE_PEP517=setuptools
inherit distutils-r1 pypi
DESCRIPTION="AES encryption for zipfile."
HOMEPAGE="https://github.com/danifus/pyzipper https://pypi.org/project/pyzipper/"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 arm arm64 x86"
IUSE="test"
RESTRICT="!test? ( test )"
DOCS="README.rst"
RDEPEND="dev-python/pycryptodomex[${PYTHON_USEDEP}]"
BDEPEND="
test? (
dev-python/pytest[${PYTHON_USEDEP}]
)"
python_test() {
py.test -v -v || die
}
distutils_enable_tests pytest