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

Error with pytest-executable when packaged by tox #25

Open
rrthomas opened this issue Mar 26, 2023 · 5 comments
Open

Error with pytest-executable when packaged by tox #25

rrthomas opened this issue Mar 26, 2023 · 5 comments

Comments

@rrthomas
Copy link

When running a tox build that uses pytest-executable, I get the following error from tox on GitHub Actions (but not on my own Ubuntu 22.04 machine, oddly):

_ ERROR collecting .eggs/pytest_executable-0.5.5-py3.10.egg/pytest_executable/test_executable.py _
/home/runner/work/psutils/psutils/.eggs/pytest_executable-0.5.5-py3.10.egg/pytest_executable
shall have a __init__.py because test_executable.py exists in other directories

Full build log: https://github.com/rrthomas/psutils/actions/runs/4513931300/jobs/7968278447

I'm sorry, this is not a very good issue report! I don't understand really what is wrong here; maybe the maintainer will, but no worries if not.

@rrthomas
Copy link
Author

The error went away when I upgraded from tox 3.21.4 (as supplied with Ubuntu 22.04) to tox 4.4.7 (current version). If you don't care about older versions of tox, then you probably don't care about this issue!

@AntoineD
Copy link
Collaborator

I am curious to know the root cause of the error, could you please point me to where tox and pytest are called? (I cannot find them in psutils)

@rrthomas
Copy link
Author

Sure, I call tox via the dist target in the Makefile, and in GitHub CI tox is called in .github/workflows/ci.yml, in a different way.

@AntoineD
Copy link
Collaborator

Ah, this seems to be in the python branch, right?

@rrthomas
Copy link
Author

I'm sorry, I should have said that; indeed it is! Currently a work-in-progress.

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

No branches or pull requests

2 participants