dev-python/freezegun: treeclean

Signed-off-by: Andreas Billmeier <b@edevau.net>
This commit is contained in:
Andreas Billmeier 2024-04-12 21:29:55 +02:00
parent d18a49f2e8
commit 9eb25f3a5d
Signed by: onkelbeh
GPG Key ID: E6DB12C8C550F3C0
5 changed files with 2 additions and 87 deletions

View File

@ -617,12 +617,12 @@ 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 1785 Ebuilds in total, 1774 of them have in total 1794 (42 different) licenses assigned.
There are 1784 Ebuilds in total, 1773 of them have in total 1793 (42 different) licenses assigned.
|License| Ebuilds using it|
|-------|-----|
|MIT|1013|
|Apache-2.0|402|
|Apache-2.0|401|
|GPL-3|106|
|BSD|104|
|LGPL-3|25|

View File

@ -1,4 +0,0 @@
AUX freezegun-1.1.0-py310.patch 1056 BLAKE2B f1ffc2ed1d03d014c5d2e7c5ac41f75c62763e325fcb6004ac835336a461df7edbedb55278b2583a4153057a018ab16f4618f85be7e394886e1faf6de97cc7c4 SHA512 cd23ff28e9b05674ae58b7d8086d16be14277ec932628731ef7ae6c6149a0ac2ce32f75f18d6ec6f6dca4770fa9c0d225e02f2b680a6f71f131f9bcbdec6ac8a
DIST freezegun-1.3.1.tar.gz 31535 BLAKE2B 5601f7359668dac186b8d76d203b7b5844af3f3171133fe25eba3182793dd68eeb14a1485d42ab50da316bf710e42d9fb4b6ebfc7afe9f86e6f4e5f3354997e8 SHA512 7524c85ad4d49fdf86d132085845ec9c67d06600cfa25e0d650cc0a565d1830f9f83315930fd6516ae924c2395721473a04c1ecfeb1735ee31e894370267ef95
EBUILD freezegun-1.3.1.ebuild 636 BLAKE2B e98551a1ec37deb68d455b3272a78627539ff650bebe5f40477be763899e321d46f38d39c5e10e2471ed4815ff9d95a3e83293810105aef74e1cb7bb711ee2ce SHA512 f8de2ee3587eda65a9c397dce8ce3de30979299357a646406e68682a9cb42603660d7875209f37d4f6d4c8947e8f9478007e75d776705792996d286a6371606a
MISC metadata.xml 507 BLAKE2B e30cf172447077c12f3e7ea9cc7f3ebd24a0ebaf9c7c1a3eed8959e2ec38c01df641a14dbdc6cfc6c6189a88982274e03c6fb68829b61ce95e6b1663cc850bd1 SHA512 1da2e65ed01c4ff3540b31433d8c1e94c34f7e0597e9d1bfe373e720b1bd15256af25ea9d51bfaad3aab9cbe01177161cdf263c92fde8db880189ff3f89e89db

View File

@ -1,30 +0,0 @@
From 57d024e4ce2516c55c715448296b9099db68343c Mon Sep 17 00:00:00 2001
From: Karthikeyan Singaravelan <tir.karthi@gmail.com>
Date: Fri, 7 May 2021 15:51:33 +0000
Subject: [PATCH] Fix decorate_class for Python 3.10 where staticmethod is
callable.
(edited by mgorny for more readable indent)
---
freezegun/api.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/freezegun/api.py b/freezegun/api.py
index cab9ebe..eb3a931 100644
--- a/freezegun/api.py
+++ b/freezegun/api.py
@@ -598,7 +598,10 @@ class _freeze_time(object):
continue
seen.add(attr)
- if not callable(attr_value) or inspect.isclass(attr_value):
+ # staticmethods are callable from Python 3.10 . Hence skip them from decoration
+ if (not callable(attr_value)
+ or inspect.isclass(attr_value)
+ or isinstance(attr_value, staticmethod)):
continue
try:
--
2.31.1

View File

@ -1,35 +0,0 @@
# 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_{11..12} )
inherit distutils-r1 pypi
DESCRIPTION="Let your Python tests travel through time"
HOMEPAGE="
https://github.com/spulec/freezegun/
https://pypi.org/project/freezegun/
"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="amd64 arm arm64 x86"
RDEPEND="
>dev-python/python-dateutil-2.7[${PYTHON_USEDEP}]
"
BDEPEND="
test? (
$(python_gen_impl_dep sqlite)
)
"
distutils_enable_tests pytest
python_test() {
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
epytest
}

View File

@ -1,16 +0,0 @@
<?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">freezegun</remote-id>
<remote-id type="github">spulec/freezegun</remote-id>
<maintainer status="unknown">
<email>spulec@gmail.com</email>
<name>Steve Pulec</name>
</maintainer>
</upstream>
</pkgmetadata>