diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2024-10-09 10:26:50 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2024-10-09 10:26:50 +0000 |
| commit | 5e93bae9f3ed2bdf3e750c776080f6f3c6e22312 (patch) | |
| tree | bc670f2ba976c64b26150d651f174e9e0f307b8e /dev-python/propcache | |
| parent | 2bc55c92c078bd0b6eb0a81a138a0cd9eb28dab3 (diff) | |
| download | baldeagleos-repo-5e93bae9f3ed2bdf3e750c776080f6f3c6e22312.tar.gz baldeagleos-repo-5e93bae9f3ed2bdf3e750c776080f6f3c6e22312.tar.xz baldeagleos-repo-5e93bae9f3ed2bdf3e750c776080f6f3c6e22312.zip | |
Adding metadata
Diffstat (limited to 'dev-python/propcache')
| -rw-r--r-- | dev-python/propcache/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/propcache/metadata.xml | 10 | ||||
| -rw-r--r-- | dev-python/propcache/propcache-0.2.0.ebuild | 50 |
3 files changed, 61 insertions, 0 deletions
diff --git a/dev-python/propcache/Manifest b/dev-python/propcache/Manifest new file mode 100644 index 000000000000..1a36abc38824 --- /dev/null +++ b/dev-python/propcache/Manifest @@ -0,0 +1 @@ +DIST propcache-0.2.0.tar.gz 40951 BLAKE2B f3e6aed19e6dfd21c02e769a3fa3c5bb0042f0b46d3dbe71ac06d52a49cfc86c62770ed8589fed58872016b5f50905610de50e707051871b9c30930e262d9d0c SHA512 f99838627652ab13919d7f516530a91565a737fc411d728cad1492ce0ed44f25b0cefbdb6fa49b2ef516e7fee120e7c49686b6853691c5cd02f5f7db9a15d998 diff --git a/dev-python/propcache/metadata.xml b/dev-python/propcache/metadata.xml new file mode 100644 index 000000000000..853174b8f2ab --- /dev/null +++ b/dev-python/propcache/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + + <origin>gentoo-staging</origin> +</pkgmetadata>
\ No newline at end of file diff --git a/dev-python/propcache/propcache-0.2.0.ebuild b/dev-python/propcache/propcache-0.2.0.ebuild new file mode 100644 index 000000000000..51d93d852ed3 --- /dev/null +++ b/dev-python/propcache/propcache-0.2.0.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=standalone +PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="Yet another URL library" +HOMEPAGE=" + https://github.com/aio-libs/propcache/ + https://pypi.org/project/propcache/ +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="+native-extensions" + +BDEPEND=" + native-extensions? ( + dev-python/cython[${PYTHON_USEDEP}] + ) + dev-python/expandvars[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest + +python_compile() { + local -x PROPCACHE_NO_EXTENSIONS=0 + if ! use native-extensions || [[ ${EPYTHON} != python* ]]; then + PROPCACHE_NO_EXTENSIONS=1 + fi + distutils-r1_python_compile +} + +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + local opts=() + if ! use native-extensions || [[ ${EPYTHON} != python* ]]; then + opts+=( --no-c-extensions ) + fi + + rm -rf propcache || die + epytest -o addopts= "${opts[@]}" +} |
