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

Implement heuristic to get non-ASCII ZIP entries #8684

Merged
merged 3 commits into from
Aug 4, 2020

Conversation

uranusjr
Copy link
Member

@uranusjr uranusjr commented Aug 2, 2020

Fix #8648. Not quite sure how to write a test for this yet. Is it even worthwhile given that Python 2 is going away in six months?

@chrahunt
Copy link
Member

chrahunt commented Aug 2, 2020

IMO this isn't worth an automated test as long as we can manually validate it. I can't see any of this code needing to be changed before we drop Python 2, and the addition here is nice and self-contained (and easy to remove later).

@uranusjr uranusjr force-pushed the zipfile-unicode-path-python2 branch from 9603130 to 3da7151 Compare August 3, 2020 01:28
@uranusjr uranusjr force-pushed the zipfile-unicode-path-python2 branch from 3da7151 to d4995cb Compare August 3, 2020 01:29
@uranusjr uranusjr force-pushed the zipfile-unicode-path-python2 branch from 3824286 to a12e2f1 Compare August 3, 2020 07:01
@uranusjr
Copy link
Member Author

uranusjr commented Aug 3, 2020

According to #8648 (comment), paths inside a wheel should always use UTF-8. This is a lot simpler than I initially thought.

@uranusjr uranusjr marked this pull request as ready for review August 3, 2020 07:03
@sbidoul sbidoul added this to the 20.2.1 milestone Aug 3, 2020
@pradyunsg pradyunsg merged commit 70768de into pypa:master Aug 4, 2020
@uranusjr uranusjr deleted the zipfile-unicode-path-python2 branch August 4, 2020 01:58
pradyunsg added a commit to pradyunsg/pip that referenced this pull request Aug 4, 2020
bors bot referenced this pull request in duckinator/emanate Aug 5, 2020
158: Update pip to 20.2.1 r=duckinator a=pyup-bot


This PR updates [pip](https://pypi.org/project/pip) from **20.2** to **20.2.1**.



<details>
  <summary>Changelog</summary>
  
  
   ### 20.2.1
   ```
   ===================

Features
--------

- Ignore require-virtualenv in ``pip list`` (`8603 &lt;https://github.com/pypa/pip/issues/8603&gt;`_)

Bug Fixes
---------

- Correctly find already-installed distributions with dot (``.``) in the name
  and uninstall them when needed. (`8645 &lt;https://github.com/pypa/pip/issues/8645&gt;`_)
- Trace a better error message on installation failure due to invalid ``.data``
  files in wheels. (`8654 &lt;https://github.com/pypa/pip/issues/8654&gt;`_)
- Fix SVN version detection for alternative SVN distributions. (`8665 &lt;https://github.com/pypa/pip/issues/8665&gt;`_)
- New resolver: Correctly include the base package when specified with extras
  in ``--no-deps`` mode. (`8677 &lt;https://github.com/pypa/pip/issues/8677&gt;`_)
- Use UTF-8 to handle ZIP archive entries on Python 2 according to PEP 427, so
  non-ASCII paths can be resolved as expected. (`8684 &lt;https://github.com/pypa/pip/issues/8684&gt;`_)

Improved Documentation
----------------------

- Add details on old resolver deprecation and removal to migration documentation. (`8371 &lt;https://github.com/pypa/pip/issues/8371&gt;`_)
- Fix feature flag name in docs. (`8660 &lt;https://github.com/pypa/pip/issues/8660&gt;`_)
   ```
   
  
</details>


 

<details>
  <summary>Links</summary>
  
  - PyPI: https://pypi.org/project/pip
  - Changelog: https://pyup.io/changelogs/pip/
  - Homepage: https://pip.pypa.io/
</details>



Co-authored-by: pyup-bot <[email protected]>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

File encoding issue in _install_wheel (pip 20.2, python 2)
4 participants