New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
app-i18n/transifex-client: bump version, support Python 3.7 #15409
Conversation
Pull Request assignmentSubmitter: @robert7k app-i18n/transifex-client: @gentoo/proxy-maint (maintainer needed) Linked bugsIn order to force reassignment and/or bug reference scan, please append Docs: Code of Conduct ● Copyright policy (expl.) ● Devmanual ● GitHub PRs ● Proxy-maint guide |
1301e72
to
2092756
Compare
Pull request CI reportReport generated at: 2020-04-19 16:59 UTC There are existing issues already. Please look into the report to make sure none of them affect the packages in question: |
Pull request CI reportReport generated at: 2020-04-19 19:30 UTC There are existing issues already. Please look into the report to make sure none of them affect the packages in question: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remember to describe the new package in its commit message box in few words.
# Copyright 1999-2020 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=6 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
RDEPEND=">=dev-python/unidecode-0.04.16[${PYTHON_USEDEP}]" | ||
DEPEND="${REDEPEND} | ||
dev-python/setuptools[${PYTHON_USEDEP}] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Handled with distutils-r1.eclass.
test? ( | ||
dev-python/nose[${PYTHON_USEDEP}] | ||
dev-python/pytest[${PYTHON_USEDEP}] | ||
)" | ||
|
||
python_test() { | ||
nosetests --verbose || die | ||
py.test -v -v || die | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems weird. Can you verify this is the case how python tests are run?
Maybe you can use distutils-r1.eclass to run tests too.
IUSE="test" | ||
RESTRICT="!test? ( test )" | ||
|
||
RDEPEND=">=dev-python/unidecode-0.04.16[${PYTHON_USEDEP}]" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Version restriction can be lifted off, since this version doesn't exist in tree anymore.
# Copyright 1999-2020 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=6 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
inherit distutils-r1 | ||
|
||
DESCRIPTION="A command line interface for Transifex" | ||
HOMEPAGE="https://pypi.org/project/transifex-client/ http://www.transifex.net/" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://
IUSE="test" | ||
RESTRICT="!test? ( test )" | ||
|
||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Handled via distutils-r1.eclass.
python_test() { | ||
esetup.py test | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use distutils-r1.eclass to run these.
@juippis thank you for the review and the suggestions. I applied all of them! |
RESTRICT="!test? ( test )" | ||
|
||
RDEPEND="dev-python/unidecode[${PYTHON_USEDEP}]" | ||
DEPEND="${REDEPEND}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
REDEPEND
typo :)
Besides this, if dev-python/unidecode
is needed at build time, then (in case of Python modules) appropriate variable would be BDEPEND
instead of DEPEND
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, fixed!
IUSE="test" | ||
RESTRICT="!test? ( test )" | ||
|
||
DEPEND="test? ( dev-python/mock[${PYTHON_USEDEP}] )" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BDEPEND
instead of DEPEND
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Pull request CI reportReport generated at: 2020-04-24 04:55 UTC There are existing issues already. Please look into the report to make sure none of them affect the packages in question: |
RESTRICT="!test? ( test )" | ||
|
||
BDEPEND="dev-python/unidecode[${PYTHON_USEDEP}]" | ||
DEPEND="${RDEPEND}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does nothing. Is unidecode not needed in runtime? Why would it be needed in build-time?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
BDEPEND="dev-python/unidecode[${PYTHON_USEDEP}]" | ||
DEPEND="${RDEPEND}" | ||
|
||
distutils_enable_tests nose |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't seem to be doing anything. You should test it yourself before committing..
>>> Test phase: dev-python/python-slugify-1.2.6
* python3_6: running distutils-r1_run_phase python_test
----------------------------------------------------------------------
Ran 0 tests in 0.007s
OK
* python3_7: running distutils-r1_run_phase python_test
----------------------------------------------------------------------
Ran 0 tests in 0.009s
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did test this, but I somehow oversaw that this specific version comes without tests.
So I removed the tests from the ebuild, sorry for the confusion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean, the Github release does include tests.
https://github.com/un33k/python-slugify/tree/beca50eaff20ca20652df782354a8f184c1eaf4c
Please us that instead. Looks like ${EPYTHON} test.py || die "tests failed with ${EPYTHON}"
inside python_test()
is enough to get them to work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, but the release tar.gz
doesn't contain the tests anymore.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See the file linked here: https://pypi.org/project/python-slugify/1.2.6/#files
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. Now the tests also work with distutils_enable_tests
:)
Pull request CI reportReport generated at: 2020-04-26 13:30 UTC There are existing issues already. Please look into the report to make sure none of them affect the packages in question: |
A Python Slugify application that handles Unicode. Required for app-i18n/transifex-client. Signed-off-by: Robert Siebeck <gentoo.2019@r123.de>
Signed-off-by: Robert Siebeck <gentoo.2019@r123.de>
Closes: https://bugs.gentoo.org/718222 Closes: https://bugs.gentoo.org/665246 Signed-off-by: Robert Siebeck <gentoo.2019@r123.de>
Signed-off-by: Robert Siebeck <gentoo.2019@r123.de>
Pull request CI reportReport generated at: 2020-04-28 11:07 UTC There are existing issues already. Please look into the report to make sure none of them affect the packages in question: |
Closes: https://bugs.gentoo.org/718222
Closes: https://bugs.gentoo.org/665246