mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-14 17:43:11 -04:00
dev-python/thriftrw: treeclean
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
This commit is contained in:
@@ -1 +0,0 @@
|
||||
DIST thriftrw-1.8.1.gh.tar.gz 91370 BLAKE2B 8e267b77f80ce1dec0bfd04a0a047cbe8279374f65f7a928ad65019ee11bb44afc991182c8f5525c34e3e6ce736deb1eb6a2e8428cf4e8853ad2d2e18649e8ed SHA512 ea40d4aa35d8f5f097557cb0b1c8800b2a935fc738c33266951163f4ade783b2a5d866a18433afe4e304f435b8de012f52c6d717e812b604e34c7a4ee61fd0fa
|
||||
@@ -1,11 +0,0 @@
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -148,7 +148,7 @@
|
||||
author='Abhinav Gupta',
|
||||
author_email='abg@uber.com',
|
||||
url='https://github.com/thriftrw/thriftrw-python',
|
||||
- packages=find_packages(exclude=('tests', 'tests.*')),
|
||||
+ packages=find_packages(exclude=('tests', 'tests.*', 'examples', 'examples*')),
|
||||
license='MIT',
|
||||
install_requires=['six', 'ply'],
|
||||
tests_require=['pytest', 'mock'],
|
||||
@@ -1,11 +0,0 @@
|
||||
--- a/setup.cfg
|
||||
+++ b/setup.cfg
|
||||
@@ -2,7 +2,7 @@
|
||||
create-wheel = yes
|
||||
python-file-with-version = thriftrw/__init__.py
|
||||
|
||||
-[pytest]
|
||||
+[tool:pytest]
|
||||
addopts = --tb short --benchmark-autosave --benchmark-save-data
|
||||
|
||||
[egg_info]
|
||||
@@ -1,13 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://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/thriftrw/thriftrw-python/issues</bugs-to>
|
||||
<remote-id type="pypi">thriftrw</remote-id>
|
||||
<remote-id type="github">thriftrw/thriftrw-python</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
@@ -1,52 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
inherit distutils-r1
|
||||
|
||||
MY_PN="${PN}-python"
|
||||
DESCRIPTION="A Thrift encoding library for Python"
|
||||
HOMEPAGE="
|
||||
https://github.com/thriftrw/thriftrw-python
|
||||
https://pypi.org/project/thriftrw/
|
||||
"
|
||||
SRC_URI="https://github.com/thriftrw/${MY_PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz"
|
||||
S="${WORKDIR}/${MY_PN}-${PV}"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="MIT"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
# broken tests
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND="dev-python/ply[${PYTHON_USEDEP}]"
|
||||
BDEPEND="
|
||||
>=dev-python/cython-0.17[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
>=dev-python/pytest-benchmark-3.0.1[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-no-install-examples.patch"
|
||||
"${FILESDIR}/${P}-tool-pytest.patch"
|
||||
)
|
||||
|
||||
DOCS=( CHANGELOG.rst CONTRIBUTING.md README.rst TODO.rst )
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
distutils_enable_sphinx docs dev-python/alabaster
|
||||
|
||||
python_prepare_all() {
|
||||
rm tests/protocol/test_binary.py || die
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_compile() {
|
||||
use test && esetup.py build_ext --force --inplace
|
||||
distutils-r1_python_compile
|
||||
}
|
||||
Reference in New Issue
Block a user