Skip to content

Modernise codebase for Python 3.5+#557

Closed
hugovk wants to merge 10 commits intopytest-dev:emancipationfrom
hugovk:emancipation-rm-2
Closed

Modernise codebase for Python 3.5+#557
hugovk wants to merge 10 commits intopytest-dev:emancipationfrom
hugovk:emancipation-rm-2

Conversation

@hugovk
Copy link
Copy Markdown
Member

@hugovk hugovk commented Jul 11, 2020

PR #541 drops support for EOL Python 2.7.

This PR updates #541 (not master) to modernise the codebase:

  • Set py35 as the target (ie. minimum) version for Black
  • Upgrade Python syntax with pyupgrade --py3-plus
  • Remove some code for sys.version_info[0] < 3:
  • Remove the six library

Here's a quick checklist that should be present in PRs:

  • Make sure to include reasonable tests for your change if necessary

  • [n/a?] We use towncrier for changelog management, so please add a news file into the changelog folder following these guidelines:

    • Name it $issue_id.$type for example 588.bugfix;

    • If you don't have an issue_id change it to the PR id after creating it

    • Ensure type is one of removal, feature, bugfix, vendor, doc or trivial

    • Make sure to use full sentences with correct case and punctuation, for example:

      Fix issue with non-ascii contents in doctest text files.
      

Copy link
Copy Markdown
Member

@Zac-HD Zac-HD left a comment

Choose a reason for hiding this comment

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

Looks good to me - thanks @hugovk!

@Zac-HD
Copy link
Copy Markdown
Member

Zac-HD commented Jul 26, 2020

Implementation note: I propose to wait for the release of Pytest 6, have a final review of #541 without these additional changes, then merge this PR into 541 and finally merge 541 into master.

@Zac-HD
Copy link
Copy Markdown
Member

Zac-HD commented Aug 3, 2020

I've rebased this onto #541 locally, and consider it 'merged' even though GitHub doesn't 🙄

Thanks again @hugovk!

@Zac-HD Zac-HD closed this Aug 3, 2020
@hugovk hugovk deleted the emancipation-rm-2 branch August 3, 2020 13:19
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.

3 participants