Closed Toluk closed 1 year ago
could you please test this:
diff --git a/setup.py b/setup.py
index abfe805..886e414 100644
--- a/setup.py
+++ b/setup.py
@@ -46,7 +46,7 @@ setup(name=name,
download_url='https://github.com/kontron/python-ipmi/tarball/' + version,
author='Michael Walle, Heiko Thiery',
author_email='michael.walle@kontron.com, heiko.thiery@kontron.com',
- packages=find_packages(exclude="test"),
+ packages=find_packages(exclude=['tests*']),
license='LGPLv2+',
platforms=["any"],
classifiers=[
Hello again.
I've added your changes as a PATCH and removed the sed part.
On an empty nspawn container:
ebuild python-ipmi-0.5.3.ebuild clean install merge
finished with no errors
and
# python3
>>> import pyipmi
>>>
seems to work just fine I think your change is valid and can be pushed in. A new pin(tag) would be nice.
setup-test.patch:
--- a/setup.py
+++ b/setup.py
@@ -46,7 +46,7 @@ setup(name=name,
download_url='https://github.com/kontron/python-ipmi/tarball/' + version,
author='Michael Walle, Heiko Thiery',
author_email='michael.walle@kontron.com, heiko.thiery@kontron.com',
- packages=find_packages(exclude="test"),
+ packages=find_packages(exclude=['tests*']),
license='LGPLv2+',
platforms=["any"],
classifiers=[
temporary python-ipmi-0.5.3.ebuild:
EAPI=8
PYTHON_COMPAT=( python3_{7..11} )
inherit distutils-r1
DESCRIPTION="Pure Python IPMI Library"
HOMEPAGE="https://github.com/kontron/python-ipmi"
SRC_URI="https://github.com/kontron/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GNU LGPL 2.1"
SLOT="0"
KEYWORDS="~amd64"
DEPEND="dev-python/future[${PYTHON_USEDEP}]
dev-python/pytest[${PYTHON_USEDEP}]"
RDEPEND="${DEPEND}"
BDEPEND=""
PATCHES=("long address here/setup-test.patch")
fixed and tagged new version 0.5.4
Hello.
I am using your library in a project and decided to make a Gentoo ebuild for it.
The problem is that i could not make it work without the last part with python_prepare() {...} May be you should change "packages=find_packages(exclude="test")" to the above. I am not that good at this, so may be the ebuild should be different.