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

[MRG] Remove Python 2.7 support (& end Python 2 compatibility) #1145

Merged
merged 14 commits into from
Aug 6, 2020
Merged

Conversation

ctb
Copy link
Contributor

@ctb ctb commented Aug 4, 2020

Remove all of the compatibility code and version checking necessary to support Python 2.7. 🎉

Fixes #1033
Fixes #318
Fixes #1043

  • Is it mergeable?
  • make test Did it pass the tests?
  • make coverage Is the new code covered?
  • Did it change the command-line interface? Only additions are allowed
    without a major version increment. Changing file formats also requires a
    major version number increment.
  • Was a spellchecker run on the source code and documentation after
    changes were made?

@codecov
Copy link

codecov bot commented Aug 4, 2020

Codecov Report

❗ No coverage uploaded for pull request base (latest@c7ed8be). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             latest    #1145   +/-   ##
=========================================
  Coverage          ?   92.55%           
=========================================
  Files             ?       73           
  Lines             ?     5764           
  Branches          ?        0           
=========================================
  Hits              ?     5335           
  Misses            ?      429           
  Partials          ?        0           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c7ed8be...50a395d. Read the comment docs.

@luizirber
Copy link
Member

We can also check any place where sourmash._compat is imported and used and remove

@luizirber
Copy link
Member

(and remove 2.7 from CI)

@ctb
Copy link
Contributor Author

ctb commented Aug 4, 2020

We can also check any place where sourmash._compat is imported and used and remove

(this turns out to require some actual work :)

@ctb ctb changed the title [WIP] Remove Python 2 compatibility. [MRG] Remove Python 2 compatibility. Aug 5, 2020
@ctb ctb requested a review from luizirber August 5, 2020 13:17
@ctb ctb changed the title [MRG] Remove Python 2 compatibility. [MRG] Remove Python 2.7 support (& end Python 2). Aug 5, 2020
@ctb ctb changed the title [MRG] Remove Python 2.7 support (& end Python 2). [MRG] Remove Python 2.7 support (& end Python 2 compatibility) Aug 5, 2020
@luizirber luizirber mentioned this pull request Aug 5, 2020
19 tasks
README.md Outdated
@@ -54,7 +54,7 @@ A quickstart tutorial [is available](https://sourmash.readthedocs.io/en/latest/t

### Requirements

sourmash runs under both Python 2.7.x and Python 3.5+. The base
sourmash runs under Python 3.7 and later. The base
Copy link
Member

Choose a reason for hiding this comment

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

oooh, 3.7? Sounds good! =]

@ctb ctb merged commit 77bf563 into latest Aug 6, 2020
@ctb ctb deleted the remove_py2 branch August 6, 2020 13:56
@ctb ctb mentioned this pull request Feb 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants