Skip to content
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

Closed
wants to merge 4 commits into from

Conversation

robert7k
Copy link
Contributor

@gentoo-bot
Copy link

Pull Request assignment

Submitter: @robert7k
Areas affected: ebuilds, profiles
Packages affected: app-i18n/transifex-client, dev-python/python-slugify

app-i18n/transifex-client: @gentoo/proxy-maint (maintainer needed)
dev-python/python-slugify: @gentoo/proxy-maint (new package)

Linked bugs

Bugs linked: 665246, 718222


In order to force reassignment and/or bug reference scan, please append [please reassign] to the pull request title.

Docs: Code of ConductCopyright policy (expl.) ● DevmanualGitHub PRsProxy-maint guide

@gentoo-bot gentoo-bot added maintainer-needed There is at least one affected package with no maintainer. Review it if you can. new package The PR is adding a new package. assigned PR successfully assigned to the package maintainer(s). bug linked Bug/Closes found in footer, and cross-linked with the PR. labels Apr 19, 2020
@robert7k robert7k force-pushed the transifex branch 5 times, most recently from 1301e72 to 2092756 Compare April 19, 2020 16:41
@robert7k robert7k changed the title app-i18n/transifex-client: bump version to prevent removal from tree app-i18n/transifex-client: bump version, support Python 3.7 Apr 19, 2020
@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2020-04-19 16:59 UTC
Newest commit scanned: 0ab209c
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/822cd63/output.html

@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2020-04-19 19:30 UTC
Newest commit scanned: 2092756
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/ffea5a6/output.html

Copy link
Member

@juippis juippis left a 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
Copy link
Member

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}]
Copy link
Member

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.

Comment on lines 23 to 31
test? (
dev-python/nose[${PYTHON_USEDEP}]
dev-python/pytest[${PYTHON_USEDEP}]
)"

python_test() {
nosetests --verbose || die
py.test -v -v || die
}
Copy link
Member

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}]"
Copy link
Member

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
Copy link
Member

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/"
Copy link
Member

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}]
Copy link
Member

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.

Comment on lines 27 to 29
python_test() {
esetup.py test
}
Copy link
Member

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.

@robert7k
Copy link
Contributor Author

@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}"
Copy link
Contributor

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.

Copy link
Contributor Author

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}] )"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BDEPEND instead of DEPEND.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2020-04-24 04:55 UTC
Newest commit scanned: 510859c
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/c604ee3/output.html

RESTRICT="!test? ( test )"

BDEPEND="dev-python/unidecode[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}"
Copy link
Member

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?

Copy link
Contributor Author

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
Copy link
Member

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

Copy link
Contributor Author

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.

Copy link
Member

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.

Copy link
Contributor Author

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

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 :)

@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2020-04-26 13:30 UTC
Newest commit scanned: 496017f
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/69c491d/output.html

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>
@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2020-04-28 11:07 UTC
Newest commit scanned: 6a14ee3
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/7150296/output.html

@juippis
Copy link
Member

juippis commented Apr 29, 2020

b6a3769

@juippis juippis closed this Apr 29, 2020
@robert7k robert7k deleted the transifex branch April 30, 2020 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assigned PR successfully assigned to the package maintainer(s). bug linked Bug/Closes found in footer, and cross-linked with the PR. maintainer-needed There is at least one affected package with no maintainer. Review it if you can. new package The PR is adding a new package.
Projects
None yet
5 participants