Skip to content

Conversation

@Cynerd
Copy link
Contributor

@Cynerd Cynerd commented Feb 10, 2019

There is a subpackage in test. This subpackage was before this commit
installed although test package was ignored. Extending exclude to ignore
anything that starts with 'test' is enough to exclude any subpackage of
test.

This is causing an error when trying to package pyls in Gentoo. Gentoo
build system disutils eclass checks if there is some test package to be
installed and fails installation step if so. This fixes that.

setup.py Outdated
# You can just specify the packages manually here if your project is
# simple. Or you can use find_packages().
packages=find_packages(exclude=['contrib', 'docs', 'test']),
packages=find_packages(exclude=['contrib', 'docs', 'test*']),
Copy link
Contributor

Choose a reason for hiding this comment

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

As mentioned in #495 can we instead use:

Suggested change
packages=find_packages(exclude=['contrib', 'docs', 'test*']),
packages=find_packages(exclude=['contrib', 'docs', 'test', 'test.*']),

Whichever change is made first wins :)

There is a subpackage in test. This subpackage was before this commit
installed although test package was ignored. Extending exclude to ignore
anything that starts with 'test' is enough to exclude any subpackage of
test.

This is causing an error when trying to package pyls in Gentoo. Gentoo
build system disutils eclass checks if there is some test package to be
installed and fails installation step if so. This fixes that.
@gatesn gatesn merged commit e524c3b into palantir:develop Mar 27, 2019
@Cynerd Cynerd deleted the setup-exclude-tests branch March 28, 2019 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants