mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-12 08:33:15 -04:00
dev-python/rstr: initial import
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
1
dev-python/rstr/Manifest
Normal file
1
dev-python/rstr/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST rstr-2.2.6.tar.gz 11197 BLAKE2B 115b674b6d474716623846838b77d08455b60c452150f149f1577ec18a730751af1bc9b4cf3cd445b676ebac1c9bf2262da18f15583d06b75f0746adc363be1b SHA512 ddd4eb4ca25f2bd991d14af6ae800a911a7077dfb14ad1968bf9e62363505e54b4f98b36eb53b7077435f9703116cc2338490a3e0d6d4d1d6fe9857a4d560976
|
||||
17
dev-python/rstr/metadata.xml
Normal file
17
dev-python/rstr/metadata.xml
Normal file
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<description>co-maintainers welcome</description>
|
||||
<email>lssndrbarbieri@gmail.com</email>
|
||||
<name>Alessandro Barbieri</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">
|
||||
rstr is a helper module for easily generating random strings
|
||||
of various types. It could be useful for fuzz testing,
|
||||
generating dummy data, or other applications.
|
||||
</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="pypi">rstr</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
27
dev-python/rstr/rstr-2.2.6.ebuild
Normal file
27
dev-python/rstr/rstr-2.2.6.ebuild
Normal file
@@ -0,0 +1,27 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} pypy3 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Easily generate random strings of various types"
|
||||
HOMEPAGE="https://pypi.org/project/rstr"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${PN}-${PV}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT=0
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
distutils_enable_tests unittest
|
||||
|
||||
python_test() {
|
||||
"${PYTHON}" -m unittest discover -v rstr/tests || die "tests failed with ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
find "${ED}" -type d -name "tests" -exec rm -rv {} + || die "tests removing failed"
|
||||
}
|
||||
Reference in New Issue
Block a user