diff options
author | Michał Górny <mgorny@gentoo.org> | 2024-11-22 21:19:16 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2024-11-22 21:19:16 +0100 |
commit | 7261ccf64f6310de3f32fcde854dbd87143534c0 (patch) | |
tree | 3b85d9a897ec16fa8e61c86c0b96f8c8a055e2b1 /dev-python/faker | |
parent | Rename dev-python/{flit_scm → flit-scm} (diff) | |
download | gentoo-7261ccf64f6310de3f32fcde854dbd87143534c0.tar.gz gentoo-7261ccf64f6310de3f32fcde854dbd87143534c0.tar.bz2 gentoo-7261ccf64f6310de3f32fcde854dbd87143534c0.zip |
Rename dev-python/{Faker → faker}
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/faker')
-rw-r--r-- | dev-python/faker/Manifest | 2 | ||||
-rw-r--r-- | dev-python/faker/faker-30.8.2.ebuild | 43 | ||||
-rw-r--r-- | dev-python/faker/faker-33.0.0.ebuild | 43 | ||||
-rw-r--r-- | dev-python/faker/metadata.xml | 17 |
4 files changed, 105 insertions, 0 deletions
diff --git a/dev-python/faker/Manifest b/dev-python/faker/Manifest new file mode 100644 index 000000000000..98d3401501f3 --- /dev/null +++ b/dev-python/faker/Manifest @@ -0,0 +1,2 @@ +DIST faker-30.8.2.tar.gz 1808329 BLAKE2B a9788fdf875bf57e76de33478cf6ebb81a6cc94b9261f5226ea9a797e2d8332a0c9035896b03e86f741b630312872c10678b34dee11d92eea00b9b37d719944f SHA512 4db0352155b724890986c5b1ae59783fed7cd6a0aca289f6df2065c028cd0b9e03560faee60f2b75455e51c212819bc85ddf10c13351e774424fce6f553636be +DIST faker-33.0.0.tar.gz 1850076 BLAKE2B 3a1dc9fff3a45af023cc14c7cc89b8db93faba2de9e4f03a6d04b0bdc37d8271d1e0a7aa4347c5327c80ca95dc490f6fd86e1ab4c0ebee6644505e980d2c7f63 SHA512 8c74093f91121cf8beb63a6b59a99c783be21c58f2788fe83dfb670b16a334f358ca13e65aa734c0ea2c0e6fac863e37116c1ff456eb2b96fe079d4f53059150 diff --git a/dev-python/faker/faker-30.8.2.ebuild b/dev-python/faker/faker-30.8.2.ebuild new file mode 100644 index 000000000000..6fee5ee5f3a6 --- /dev/null +++ b/dev-python/faker/faker-30.8.2.ebuild @@ -0,0 +1,43 @@ +# Copyright 2022-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYPI_PN=${PN^} +PYTHON_COMPAT=( pypy3 python3_{10..13} ) + +inherit distutils-r1 pypi + +DESCRIPTION="A Python package that generates fake data for you" +HOMEPAGE=" + https://github.com/joke2k/faker/ + https://pypi.org/project/Faker/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 arm arm64 ~loong ~mips ppc ppc64 ~riscv ~s390 sparc x86" + +RDEPEND=" + >=dev-python/python-dateutil-2.4.2[${PYTHON_USEDEP}] + dev-python/typing-extensions[${PYTHON_USEDEP}] + !dev-ruby/faker +" +BDEPEND=" + test? ( + dev-python/freezegun[${PYTHON_USEDEP}] + dev-python/pillow[${PYTHON_USEDEP},tiff] + dev-python/validators[${PYTHON_USEDEP}] + ) +" + +# note: tests are flaky with xdist +distutils_enable_tests pytest + +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + local -x PYTEST_PLUGINS=faker.contrib.pytest.plugin + epytest + epytest --exclusive-faker-session tests/pytest/session_overrides +} diff --git a/dev-python/faker/faker-33.0.0.ebuild b/dev-python/faker/faker-33.0.0.ebuild new file mode 100644 index 000000000000..0f3e2ae8b994 --- /dev/null +++ b/dev-python/faker/faker-33.0.0.ebuild @@ -0,0 +1,43 @@ +# Copyright 2022-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYPI_PN=${PN^} +PYTHON_COMPAT=( pypy3 python3_{10..13} ) + +inherit distutils-r1 pypi + +DESCRIPTION="A Python package that generates fake data for you" +HOMEPAGE=" + https://github.com/joke2k/faker/ + https://pypi.org/project/Faker/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND=" + >=dev-python/python-dateutil-2.4.2[${PYTHON_USEDEP}] + dev-python/typing-extensions[${PYTHON_USEDEP}] + !dev-ruby/faker +" +BDEPEND=" + test? ( + dev-python/freezegun[${PYTHON_USEDEP}] + dev-python/pillow[${PYTHON_USEDEP},tiff] + dev-python/validators[${PYTHON_USEDEP}] + ) +" + +# note: tests are flaky with xdist +distutils_enable_tests pytest + +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + local -x PYTEST_PLUGINS=faker.contrib.pytest.plugin + epytest + epytest --exclusive-faker-session tests/pytest/session_overrides +} diff --git a/dev-python/faker/metadata.xml b/dev-python/faker/metadata.xml new file mode 100644 index 000000000000..9f5551d1a7e8 --- /dev/null +++ b/dev-python/faker/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>voyageur@gentoo.org</email> + <name>Bernard Cafarelli</name> + </maintainer> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <stabilize-allarches/> + <upstream> + <remote-id type="pypi">Faker</remote-id> + <remote-id type="github">joke2k/faker</remote-id> + </upstream> +</pkgmetadata> |