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

32-bit Linux running on 64-bit ARM arch should have platform "linux_armv7l" #234

Merged
merged 15 commits into from
Feb 6, 2020

Conversation

xuhdev
Copy link
Contributor

@xuhdev xuhdev commented Nov 14, 2019

Currently on a 32-bit OS that runs on a 64-bit ARM CPU (ARM-v8,
aarch64), _linux_platforms returns the incorrect string. This commit
fixes this issue by following the solution similar to that of the
x86_64/x86 pair.

Ported from pypa/pip#7352

cc @chrahunt @bdwyer2

@xuhdev
Copy link
Contributor Author

xuhdev commented Nov 20, 2019

I have no idea why the coverage dropped...

…rmv7l".

Currently on a 32-bit OS that runs on a 64-bit ARM CPU (ARM-v8,
aarch64), _linux_platforms returns the incorrect string. This commit
fixes this issue by following the solution similar to that of the
x86_64/x86 pair.
@brettcannon brettcannon self-requested a review January 24, 2020 18:40
Copy link
Member

@brettcannon brettcannon left a comment

Choose a reason for hiding this comment

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

Tests are unfortunately failing.

tests/test_tags.py Outdated Show resolved Hide resolved
tests/test_tags.py Outdated Show resolved Hide resolved
xuhdev and others added 2 commits January 24, 2020 11:00
Co-Authored-By: Brett Cannon <[email protected]>
Co-Authored-By: Brett Cannon <[email protected]>
@xuhdev
Copy link
Contributor Author

xuhdev commented Jan 24, 2020

No idea what the lint error means..

@brettcannon
Copy link
Member

@xuhdev you need to run black over your code to fix your formatting.

xuhdev added a commit to xuhdev/pypa-packaging that referenced this pull request Jan 28, 2020
Directly calling "pytest" sometimes breaks tests on "pypy", such as pypa#234. As explained from pypy website <https://docs.pytest.org/en/latest/usage.html>:

> ["python -m pytest"] is almost equivalent to invoking the command line
> script pytest [...] directly, except that calling via python will also
> add the current directory to sys.path.

Note that the pytest script is not directly invoked in tests for other
Python interpreters.
xuhdev added a commit to xuhdev/pypa-packaging that referenced this pull request Jan 28, 2020
Directly calling "pytest" sometimes breaks tests on "pypy", such as pypa#234. As explained from pypy website <https://docs.pytest.org/en/latest/usage.html>:

> ["python -m pytest"] is almost equivalent to invoking the command line
> script pytest [...] directly, except that calling via python will also
> add the current directory to sys.path.

Note that, unlike tests for pypy, the pytest script is not directly invoked in tests for other
Python interpreters.
xuhdev added a commit to xuhdev/pypa-packaging that referenced this pull request Jan 28, 2020
Directly calling "pytest" sometimes breaks tests on "pypy", such as pypa#234, because the actual current code is untested.

As explained from pypy website <https://docs.pytest.org/en/latest/usage.html>:

> ["python -m pytest"] is almost equivalent to invoking the command line
> script pytest [...] directly, except that calling via python will also
> add the current directory to sys.path.

Note that, unlike tests for pypy, the pytest script is not directly invoked in tests for other
Python interpreters.
@xuhdev
Copy link
Contributor Author

xuhdev commented Jan 29, 2020

@brettcannon All tests have passed now. Could you review again? Thanks!

Copy link
Member

@brettcannon brettcannon left a comment

Choose a reason for hiding this comment

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

Just a clean-up of the test code to cut down on repetitiveness.

CHANGELOG.rst Outdated Show resolved Hide resolved
CHANGELOG.rst Outdated Show resolved Hide resolved
tests/test_tags.py Outdated Show resolved Hide resolved
@xuhdev
Copy link
Contributor Author

xuhdev commented Feb 3, 2020

Ping @brettcannon

@pradyunsg
Copy link
Member

OK to have this merged w/o my review.

@pradyunsg pradyunsg removed their request for review February 6, 2020 08:51
@brettcannon brettcannon merged commit 46bedf3 into pypa:master Feb 6, 2020
xuhdev added a commit to IBM/MAX-Object-Detector that referenced this pull request Feb 10, 2020
@xuhdev xuhdev deleted the arm branch February 13, 2020 18:25
xuhdev added a commit to IBM/MAX-Object-Detector that referenced this pull request Apr 30, 2020
The bug in pypa/packaging#234 is now in the current stable pip.
xuhdev added a commit to IBM/MAX-Object-Detector that referenced this pull request Apr 30, 2020
@pypa pypa locked as resolved and limited conversation to collaborators Oct 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants