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

bpo-46213: Add support for Termux #30106

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

DonaldDuck313
Copy link

@DonaldDuck313 DonaldDuck313 commented Dec 14, 2021

@the-knights-who-say-ni
Copy link

Hello, and thanks for your contribution!

I'm a bot set up to make sure that the project can legally accept this contribution by verifying everyone involved has signed the PSF contributor agreement (CLA).

Recognized GitHub username

We couldn't find a bugs.python.org (b.p.o) account corresponding to the following GitHub usernames:

@DonaldDuck313

This might be simply due to a missing "GitHub Name" entry in one's b.p.o account settings. This is necessary for legal reasons before we can look at this contribution. Please follow the steps outlined in the CPython devguide to rectify this issue.

You can check yourself to see if the CLA has been received.

Thanks again for the contribution, we look forward to reviewing it!

Copy link
Contributor

@asvetlov asvetlov left a comment

Choose a reason for hiding this comment

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

bpo issue, NEWS entry, and tests are required for this change.

@bedevere-bot
Copy link

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

@DonaldDuck313 DonaldDuck313 changed the title Add support for Termux bpo-46213: Add support for Termux Dec 31, 2021
@DonaldDuck313
Copy link
Author

I have made the requested changes; please review again

@bedevere-bot
Copy link

Thanks for making the requested changes!

@asvetlov: please review the changes made to this pull request.

@@ -0,0 +1 @@
Add support for [Termux](https://termux.com/) to the webbrowser library
Copy link
Member

Choose a reason for hiding this comment

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

This is reStructuredText, not markdown 🙂

@DonaldDuck313
Copy link
Author

I have made the requested changes; please review again

@bedevere-bot
Copy link

Thanks for making the requested changes!

@asvetlov: please review the changes made to this pull request.

@AlexWaygood
Copy link
Member

I have made the requested changes; please review again

You have not yet added any tests for your proposed new feature :) there's a guide to running and writing tests for CPython here: https://devguide.python.org/runtests/

@DonaldDuck313
Copy link
Author

@AlexWaygood I tried running python -m test as explained there and I got an error saying C:\ProgramData\Anaconda3\python.exe: No module named test.__main__; 'test' is a package and cannot be directly executed. I also tried from test import autotest but I got an error saying ImportError: cannot import name 'autotest' from 'test' (C:\ProgramData\Anaconda3\lib\test\__init__.py).

@merwok
Copy link
Member

merwok commented Jan 17, 2022

If you look carefully at the instructions on the devguide, the command starts with ./python, which makes your shell use the python you have built in the git repository, not your system python.

@merwok
Copy link
Member

merwok commented Jan 17, 2022

Tests for the module are here: https://github.com/python/cpython/blob/main/Lib/test/test_webbrowser.py

If you’re not sure how they are working, or how to test the lines you have added, you can ask on the core-mentorship mailing list and people will help.

@AlexWaygood
Copy link
Member

@DonaldDuck313 it looks like you're in a conda virtual environment. You need to build CPython from the source in order to run the test suite with your changes applied. There's instructions on this page here on how to do that (a few pages prior to the instructions on running the tests): https://devguide.python.org/setup/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants