diff options
author | Michał Górny <mgorny@gentoo.org> | 2023-11-16 18:09:25 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2023-11-16 18:10:56 +0100 |
commit | 8b3b683ab97bf79205184333afcce742cf389b46 (patch) | |
tree | 4e239ae0745e65935bf44d5e6fdb11b83425d0a7 /dev-python/pure-eval | |
parent | dev-python/pure_eval: Enable pypy3 (diff) | |
download | gentoo-8b3b683ab97bf79205184333afcce742cf389b46.tar.gz gentoo-8b3b683ab97bf79205184333afcce742cf389b46.tar.bz2 gentoo-8b3b683ab97bf79205184333afcce742cf389b46.zip |
Rename dev-python/{pure_eval → pure-eval}
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/pure-eval')
-rw-r--r-- | dev-python/pure-eval/Manifest | 1 | ||||
-rw-r--r-- | dev-python/pure-eval/metadata.xml | 12 | ||||
-rw-r--r-- | dev-python/pure-eval/pure-eval-0.2.2.ebuild | 37 |
3 files changed, 50 insertions, 0 deletions
diff --git a/dev-python/pure-eval/Manifest b/dev-python/pure-eval/Manifest new file mode 100644 index 000000000000..2e04617fdd08 --- /dev/null +++ b/dev-python/pure-eval/Manifest @@ -0,0 +1 @@ +DIST pure_eval-0.2.2.tar.gz 19395 BLAKE2B 19f86a1436e5f1a026a24f62c435e8970d84960f4cde1de80c58949b1aede6aa7562e8430e10e3f7171212c31d5699a3321fad5fb2ea1eed961a30d43a632a79 SHA512 35d20cbbfd513b7ac341759e619401a5f57b7b9df8abd09ce6414d4ee6bfa45dcadbad7529d067e81ad7ea2107c14fd03783a3a77f8074dad30d2e5161656804 diff --git a/dev-python/pure-eval/metadata.xml b/dev-python/pure-eval/metadata.xml new file mode 100644 index 000000000000..5358127a149d --- /dev/null +++ b/dev-python/pure-eval/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <upstream> + <remote-id type="pypi">pure-eval</remote-id> + <remote-id type="github">alexmojaki/pure_eval</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/pure-eval/pure-eval-0.2.2.ebuild b/dev-python/pure-eval/pure-eval-0.2.2.ebuild new file mode 100644 index 000000000000..2e9546fd7db9 --- /dev/null +++ b/dev-python/pure-eval/pure-eval-0.2.2.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( pypy3 python3_{10..12} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Safely evaluate AST nodes without side effects" +HOMEPAGE=" + https://github.com/alexmojaki/pure_eval/ + https://pypi.org/project/pure-eval/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ppc ppc64 ~riscv ~s390 sparc x86 ~arm64-macos ~x64-macos" + +distutils_enable_tests pytest + +python_test() { + local EPYTEST_DESELECT=() + + case ${EPYTHON} in + pypy3) + EPYTEST_DESELECT+=( + # https://github.com/alexmojaki/pure_eval/issues/15 + tests/test_getattr_static.py::TestGetattrStatic::test_custom_object_dict + tests/test_utils.py::test_safe_name_samples + ) + ;; + esac + + epytest +} |