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

Add build dependency of pytest #9

Merged
merged 2 commits into from Jan 25, 2021
Merged

Add build dependency of pytest #9

merged 2 commits into from Jan 25, 2021

Conversation

archisman-panigrahi
Copy link
Contributor

It was failing to build on Launchpad, and showed ModuleNotFoundError: No module named 'pytest'. After adding this build dependency the PPA package works again.

The package won't build in Launchpad otherwise, and showed  `ModuleNotFoundError: No module named 'pytest'`
@alexhuntley
Copy link
Owner

That's weird, is Launchpad trying to run the tests?

@archisman-panigrahi
Copy link
Contributor Author

archisman-panigrahi commented Jan 25, 2021

Launchpad (and any proper Debian packaging system) runs some kind of tests before packaging python apps. I have noticed (in other software) that it even points out syntax error when a slightly old code may not work with a new release of python.

Here is one of those build logs (the error ModuleNotFoundError: No module named 'pytest' is at the very end).

More interestingly, the pytest did not go into the dependency of the final debian package.

@alexhuntley alexhuntley merged commit 85bfb7b into alexhuntley:main Jan 25, 2021
@alexhuntley
Copy link
Owner

alexhuntley commented Jan 25, 2021

Launchpad (and any proper Debian packaging system) runs some kind of tests before packaging python apps. I have noticed (in other software) that it even points out syntax error when a slightly old code may not work with a new release of python.

Interesting, I wasn't aware of this.

More interestingly, the pytest did not go into the dependency of the final debian package.

It might be because pytest isn't listed as a requirement in setup.py?

P.S. Are you uploading these builds manually? Or is Launchpad able to make them automatically from this repo?

@archisman-panigrahi
Copy link
Contributor Author

archisman-panigrahi commented Jan 25, 2021 via email

@alexhuntley
Copy link
Owner

Yes pytest is only needed to run the tests, the app itself doesn't require it.

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.

None yet

2 participants