Skip to content

Modernise codebase#74

Merged
pradyunsg merged 23 commits into
mainfrom
aug-2021-burst
Oct 13, 2021
Merged

Modernise codebase#74
pradyunsg merged 23 commits into
mainfrom
aug-2021-burst

Conversation

@pradyunsg
Copy link
Copy Markdown
Member

@pradyunsg pradyunsg commented Sep 25, 2021

Because it can't hurt to flesh this out publicly.

Closes #42
Closes #43

@pradyunsg pradyunsg marked this pull request as draft September 25, 2021 09:32
Comment thread .github/workflows/ci.yml Outdated
@pradyunsg pradyunsg force-pushed the aug-2021-burst branch 2 times, most recently from 04cbf0f to b39d2b1 Compare September 27, 2021 21:22
@pradyunsg pradyunsg changed the title WIP Modernise codebase Sep 27, 2021
@pradyunsg pradyunsg force-pushed the aug-2021-burst branch 4 times, most recently from 7119e70 to 2c2e1c8 Compare September 27, 2021 21:49
@pradyunsg pradyunsg mentioned this pull request Sep 27, 2021
@pradyunsg pradyunsg marked this pull request as ready for review September 27, 2021 21:56
@FFY00
Copy link
Copy Markdown
Member

FFY00 commented Sep 27, 2021

@pradyunsg would it be possible to have a release with #75 or whatever fixes the interfaces to allow us to add a bytecode generation step before this gets merged? Otherwise, I'd have to maintain a fork.

@pradyunsg
Copy link
Copy Markdown
Member Author

Yup yup, I intend to cut a 0.3.0 release before merging this.

These are no longer necessary, as all compatible versions of Python have
a capable version of `typing`.
The output has been reformatted with black, with 3 instances fixed by
wrapping the types in a string.

```
src/installer/sources.py:119:45: F821 undefined name 'WheelFile'
src/installer/records.py:69:31: F821 undefined name 'Hash'
src/installer/records.py:146:68: F821 undefined name 'RecordEntry'
```
This is no longer necessary.
This is no longer necessary, since we're on a modern-enough versions of
Python.
This makes the paths printed in the test outputs match the source tree,
which makes it easier to navigate to the offending lines with a
compatible terminal.
Otherwise, this causes an exception at runtime.
Already dropped support for Python <= 3.6.
Copy link
Copy Markdown
Member Author

@pradyunsg pradyunsg left a comment

Choose a reason for hiding this comment

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

Self-reviewed, and it looks good. 😅

@pradyunsg pradyunsg merged commit 0f9317b into main Oct 13, 2021
@pradyunsg pradyunsg deleted the aug-2021-burst branch October 13, 2021 18:47
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.

Dropping support for Python 3.6 Dropping support for EoL Python versions

2 participants