Merge updates from master

This commit is contained in:
Repository mirror & CI
2020-04-28 08:07:45 +00:00
17 changed files with 238 additions and 17 deletions

View File

@@ -19,7 +19,8 @@ KEYWORDS="~amd64 ~x86"
DEPEND="${POSTGRES_DEP}"
RDEPEND="${DEPEND}"
USE_PGXS=1
# Needs a running PostgreSQL server
RESTRICT="test"
src_compile() {
postgres-multi_foreach emake USE_PGXS=1

View File

@@ -0,0 +1,44 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
PYTHON_COMPAT=( python3_{6,7,8} )
inherit distutils-r1
DESCRIPTION="A fixtures replacement tool"
HOMEPAGE="https://github.com/FactoryBoy/factory_boy"
SRC_URI="https://github.com/FactoryBoy/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND="dev-python/faker[${PYTHON_USEDEP}]"
DEPEND="
${RDEPEND}
test? (
$(python_gen_impl_dep sqlite)
dev-python/django[${PYTHON_USEDEP}]
dev-python/mongoengine[${PYTHON_USEDEP}]
dev-python/pillow[jpeg,${PYTHON_USEDEP}]
dev-python/sqlalchemy[${PYTHON_USEDEP}]
)
"
#not really needed
# dev-python/isort[${PYTHON_USEDEP}]
# Disable tests which require running mongod
PATCHES=( "${FILESDIR}/${PN}-2.11.1-test.patch" )
python_prepare_all() {
# Fix symbolic link QA
rm ChangeLog || die "remove failed"
cp docs/changelog.rst ChangeLog || die "copy failed"
distutils-r1_python_prepare_all
}
distutils_enable_tests unittest
distutils_enable_sphinx docs dev-python/sphinx_rtd_theme

View File

@@ -11,7 +11,15 @@
ORMs (Django, Mongo, SQLAlchemy).
</longdescription>
<upstream>
<bugs-to>https://github.com/FactoryBoy/factory_boy/issues</bugs-to>
<changelog>https://raw.githubusercontent.com/FactoryBoy/factory_boy/master/docs/changelog.rst</changelog>
<doc lang="en">https://factoryboy.readthedocs.io</doc>
<maintainer status="active">
<email>raphael.barrois+fboy@polytechnique.org</email>
<name>Raphaël Barrois</name>
</maintainer>
<remote-id type="github">FactoryBoy/factory_boy</remote-id>
<remote-id type="pypi">factory_boy</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -1,7 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>lssndrbarbieri@gmail.com</email>
<name>Alessandro Barbieri</name>
</maintainer>
<upstream>
<bugs-to>https://github.com/lgpage/pytest-cython/issues</bugs-to>
<changelog>https://raw.githubusercontent.com/lgpage/pytest-cython/master/CHANGELOG.rst</changelog>
<doc lang="en">https://readthedocs.org/projects/pytest-cython/</doc>
<maintainer>
<email>page.lg@gmail.com</email>
<name>Logan Page</name>
</maintainer>
<remote-id type="pypi">pytest-cython</remote-id>
<remote-id type="github">lgpage/pytest-cython</remote-id>
</upstream>

View File

@@ -4,9 +4,9 @@
EAPI="7"
PYTHON_COMPAT=( python3_{6,7} )
DISTUTILS_USE_SETUPTOOLS=rdepend
inherit distutils-r1
DISTUTILS_USE_SETUPTOOLS=rdepend
DESCRIPTION="Plugin for testing Cython extension modules"
HOMEPAGE="https://github.com/lgpage/pytest-cython"
@@ -15,18 +15,21 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
SLOT="0"
LICENSE="MIT"
KEYWORDS="~amd64"
#IUSE="test"
RDEPEND="dev-python/pytest[${PYTHON_USEDEP}]"
#DEPEND="
# ${RDEPEND}
RDEPEND="
dev-python/cython[${PYTHON_USEDEP}]
dev-python/pytest[${PYTHON_USEDEP}]
"
DEPEND="
${RDEPEND}
"
#those deps aren't really required I think
# test? (
# dev-python/check-manifest[${PYTHON_USEDEP}]
# dev-python/docutils[${PYTHON_USEDEP}]
# dev-python/pygments[${PYTHON_USEDEP}]
# dev-python/readme_renderer[${PYTHON_USEDEP}]
# )
#"
#distutils_enable_tests pytest
distutils_enable_tests pytest
distutils_enable_sphinx docs dev-python/sphinx-py3doc-enhanced-theme

View File

@@ -29,6 +29,13 @@ By resetting the random seed to a repeatable number for each test, tests can cre
This plugin is a Pytest port of my plugin for nose, nose-randomly. Ive written a blog post on its history.
</longdescription>
<upstream>
<bugs-to>https://github.com/pytest-dev/pytest-randomly/issues</bugs-to>
<changelog>https://github.com/pytest-dev/pytest-randomly/blob/master/HISTORY.rst</changelog>
<maintainer status="active">
<email>me@adamj.eu</email>
<name>Adam Johnson</name>
</maintainer>
<remote-id type="pypi">pytest-randomly</remote-id>
<remote-id type="github">pytest-dev/pytest-randomly</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -0,0 +1,46 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
DISTUTILS_USE_SETUPTOOLS=rdepend
PYTHON_COMPAT=( python3_{6,7,8} )
inherit distutils-r1
DESCRIPTION="Pytest plugin to randomly order tests and control random.seed"
HOMEPAGE="
https://pypi.python.org/pypi/pytest-randomly
https://github.com/pytest-dev/pytest-randomly
"
SRC_URI="https://github.com/pytest-dev/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND="
dev-python/docutils[${PYTHON_USEDEP}]
dev-python/factory_boy[${PYTHON_USEDEP}]
dev-python/faker[${PYTHON_USEDEP}]
dev-python/numpy[${PYTHON_USEDEP}]
dev-python/pygments[${PYTHON_USEDEP}]
$(python_gen_cond_dep 'dev-python/importlib_metadata[${PYTHON_USEDEP}]' python3_6 python3_7)
"
#not really needed
# dev-python/isort[${PYTHON_USEDEP}]
# $(python_gen_cond_dep 'dev-python/black[${PYTHON_USEDEP}]' python3_8)
# dev-python/secretstorage[${PYTHON_USEDEP}]
# dev-python/twine[${PYTHON_USEDEP}]
DEPEND="
test? (
dev-python/pytest-xdist[${PYTHON_USEDEP}]
)
"
#not really needed
# $(python_gen_cond_dep 'dev-python/check-manifest[${PYTHON_USEDEP}]' python3_8)
# dev-python/multilint[${PYTHON_USEDEP}]
distutils_enable_tests pytest

View File

@@ -1 +1 @@
DIST tekore-1.6.0.tar.gz 191825 BLAKE2B 6122ee7fa9b7f0380e18457168aeea2405036cd11a6be4369ce6e343e8ddc97b9b7ddf4cdd3879eaeee503a833e2fa08e459dd6f794143ca7e59109848fad2f9 SHA512 01190393c7762056095f30c17245620c732241b835787b3ffddbfe2dfe3025be813b35fe64cf0289bcd2a9cb6ac5d3d537b55eb16449991bc055331dd3fe8b7b
DIST tekore-1.7.0.tar.gz 191852 BLAKE2B ca0be9e5b8f4e291de87d495098f295529c75457aca466627ab2d8973365a64b40f7a618883c0178ed6482ac4d62ef95d78341992404a4bbbec803fe939afcfb SHA512 a62b456621633e05edb39944e0cf36a0df092468c9e238f6028f8ea684613e37c32f5257d6fb681c758e01f451e2f3d0993f5fa9344463e9f12b5945add161b0

View File

@@ -1 +1,2 @@
DIST validators-0.14.0.tar.gz 25442 BLAKE2B e4c159afd24b33bd91ea59ca00254712cf69f9a4d180dd794f9b142a372bfd1695cebe7b49585a6b7eb8ea8290499e0138151a3e7a5693db187d8ad2bb520c9e SHA512 ec9153cb817f25e40221502484cdbdb9cf1566fe8445f7b822d4a80325154aca5a665be452f6251351682d36167c5a6bb02c3259d6067f4f51fa1d01aaa44a4e
DIST validators-0.14.3.tar.gz 25893 BLAKE2B 2114d74912457032506eb850e5da856044439f5e02ac707cddcca23b6a59b7725d4253cbb7ce815f6944076a54f686edcbf52d387d2f27b53ca6bccbbdaa4140 SHA512 ea2fc81a63f24d64d2933220ed7674ae9733673c208906d3090bc10bf2119965834759015deedfea218306b1b29e8ff6937698e3b5de73494236516656a16096

View File

@@ -5,4 +5,20 @@
<email>lssndrbarbieri@gmail.com</email>
<name>Alessandro Barbieri</name>
</maintainer>
<longdescription lang="en">
Python data validation for Humans.
Python has all kinds of data validation tools, but every one of them seems to require defining a schema or form. I wanted to create a simple validation library where validating a simple value does not require defining a form or a schema.
</longdescription>
<upstream>
<bugs-to>https://github.com/kvesteri/validators/issues</bugs-to>
<changelog>https://raw.githubusercontent.com/kvesteri/validators/master/CHANGES.rst</changelog>
<doc lang="en">https://validators.readthedocs.io/en/latest</doc>
<maintainer status="active">
<email>konsta@fastmonkeys.com</email>
<name>Konsta Vesterinen</name>
</maintainer>
<remote-id type="github">kvesteri/validators</remote-id>
<remote-id type="pypi">validators</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -21,10 +21,11 @@ RDEPEND="
"
DEPEND="
${RDEPEND}
test? (
>=dev-python/isort-4.2.2[${PYTHON_USEDEP}]
)
"
#not really required
# test? (
# >=dev-python/isort-4.2.2[${PYTHON_USEDEP}]
# )
distutils_enable_tests pytest

View File

@@ -0,0 +1,36 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
PYTHON_COMPAT=( python3_{6,7,8} )
inherit distutils-r1
DESCRIPTION="Python Data Validation for Humans"
HOMEPAGE="
https://github.com/kvesteri/validators
https://pypi.org/project/validators
"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
LICENSE="MIT"
SLOT="0"
RDEPEND="
>=dev-python/decorator-3.4.0[${PYTHON_USEDEP}]
>=dev-python/six-1.4.0[${PYTHON_USEDEP}]
"
DEPEND="
${RDEPEND}
"
#not really required
# test? (
# >=dev-python/isort-4.2.2[${PYTHON_USEDEP}]
# )
distutils_enable_tests pytest
#issues with sphinx.ext.pngmath https://github.com/kvesteri/validators/issues/156
distutils_enable_sphinx docs "<dev-python/sphinx-1.8"

View File

@@ -23,10 +23,7 @@
# <DOCBUILDER>-build function for your doc builder.
# For python based doc builders you can use the
# python_append_deps function to append [${PYTHON_USEDEP}]
# automatically to additional dependencies
#
# For more information, please see the Python Guide:
# https://dev.gentoo.org/~mgorny/python-guide/
# automatically to additional dependencies.
case "${EAPI:-0}" in
0|1|2|3|4)
@@ -48,7 +45,7 @@ esac
# @ECLASS-VARIABLE: DOCDIR
# @DESCRIPTION:
# Sets the location of the doc builder config file.
# Path containing the doc builder config file(s).
#
# For sphinx this is the location of "conf.py"
# For mkdocs this is the location of "mkdocs.yml"

View File

@@ -1 +1,2 @@
DIST twint-2.1.18.tar.gz 33213 BLAKE2B 74d8634ad178b40af726347ee144766bc5ae2480842ad617739a12ed469bf7692247bdc4dc5d979a081b88a223ce2649924cf89a6c0ff77acd10142f2290865c SHA512 0060d5f496bd19e74e72243ce83202204eacd28b57db7440ae83d112c96ea962512adf12e590e0843cf5231b1922cfcc943725aaeb2ab31127522be26e7fc9a7
DIST twint-2.1.19.tar.gz 33142 BLAKE2B aca837c3473543414f57e728b67c46394959a51ecf4fc9b4b1be6f0914a6de79f3afcd725449eb25babfbbdc9786cc3ae74744414489efc4d01b5110c39bc306 SHA512 0318ba4432401f7deace23ca45060f3d380bf28fbdbeee554684606b92c163260cfe352d1c76f1e639aaf451e883b15b09d05b867af55394987503fbcb66d95b

View File

@@ -28,6 +28,12 @@ Limits imposed by Twitter
Twitter limits scrolls while browsing the user timeline. This means that with .Profile or with .Favorites you will be able to get ~3200 tweets.
</longdescription>
<upstream>
<doc lang="en">https://github.com/twintproject/twint/wiki</doc>
<bugs-to>https://github.com/twintproject/twint/issues</bugs-to>
<maintainer status="active">
<email>codyzacharias@pm.me</email>
<name>Cody Zacharias</name>
</maintainer>
<remote-id type="github">twintproject/twint</remote-id>
<remote-id type="pypi">twint</remote-id>
</upstream>

View File

@@ -0,0 +1,43 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
PYTHON_COMPAT=( python3_6 )
DISTUTILS_USE_SETUPTOOLS=rdepend
inherit distutils-r1
DESCRIPTION="Twitter scraping & OSINT tool written in Python that doesn't use Twitter's API"
HOMEPAGE="
https://github.com/twintproject/twint
https://pypi.org/project/twint
"
SRC_URI="https://github.com/twintproject/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test"
#tests require network
RESTRICT="test"
RDEPEND="
dev-python/aiohttp[${PYTHON_USEDEP}]
dev-python/aiohttp-socks[${PYTHON_USEDEP}]
dev-python/aiodns[${PYTHON_USEDEP}]
dev-python/beautifulsoup:4[${PYTHON_USEDEP}]
dev-python/cchardet[${PYTHON_USEDEP}]
dev-python/elasticsearch-py[${PYTHON_USEDEP}]
dev-python/fake-useragent[${PYTHON_USEDEP}]
dev-python/geopy[${PYTHON_USEDEP}]
dev-python/googletransx[${PYTHON_USEDEP}]
>=dev-python/pandas-0.23.0[${PYTHON_USEDEP}]
dev-python/PySocks[${PYTHON_USEDEP}]
dev-python/schedule[${PYTHON_USEDEP}]
"
DEPEND="${RDEPEND}"
python_test() {
"${EPYTHON}" test.py -v || die
}