Skip to content

remove python2 import form Bio/ - #2443

Merged
peterjc merged 2 commits into
biopython:masterfrom
lorforlinux:Bio-rm-python2
Dec 27, 2019
Merged

peterjc merged 2 commits into
biopython:masterfrom
lorforlinux:Bio-rm-python2

Conversation

@lorforlinux

@lorforlinux lorforlinux commented Dec 27, 2019 •

Copy link
Copy Markdown
Contributor

This pull request addresses issue #...

  • I hereby agree to dual-license this and any previous contributions under both
    the Biopython License Agreement AND the BSD 3-Clause License.

  • I have read the CONTRIBUTING.rst file, have run flake8 locally, and
    understand that AppVeyor and TravisCI will be used to confirm the Biopython unit
    tests and style checks pass with these changes.

  • I have added my name to the alphabetical contributors listings in the files
    NEWS.rst and CONTRIB.rst as part of this pull request, am listed
    already, or do not wish to be listed. (This acknowledgement is optional.)

@lorforlinux lorforlinux changed the title remove python2 import for raise_from() remove python2 import form Bio/ Dec 27, 2019
@lorforlinux lorforlinux changed the title remove python2 import form Bio/ remove python2 import form Bio/ Dec 27, 2019
@peterjc

peterjc commented Dec 27, 2019

Copy link
Copy Markdown
Member

This looks good, can you switch it from draft to ready? Hopefully that will trigger the automated tests to actually run.

@lorforlinux
lorforlinux marked this pull request as ready for review December 27, 2019 10:22
@peterjc

peterjc commented Dec 27, 2019

Copy link
Copy Markdown
Member

You (or perhaps your editor) has removed some trailing white space in Tests/test_AlignIO_ClustalIO.py which I think will break the tests. That was part of the later commit doing StringIO changes.

I would have preferred you had just done the raise from changes on this pull request, as that alone was a manageable number of files to review.

@lorforlinux

Copy link
Copy Markdown
Contributor Author

My bad, what can i do now to fix that?

@peterjc

peterjc commented Dec 27, 2019

Copy link
Copy Markdown
Member

Are you OK with me editing the branch? GitHub will let me if you ticked the box to allow edits from maintainers when you made the pull request.

@lorforlinux

lorforlinux commented Dec 27, 2019 •

Copy link
Copy Markdown
Contributor Author

yes, I am fine with that please let me know where I can help.

@peterjc

peterjc commented Dec 27, 2019

Copy link
Copy Markdown
Member

Rebased with Tests/test_AlignIO_ClustalIO.py tweaked to just edit the import line.

@peterjc

peterjc commented Dec 27, 2019 •

Copy link
Copy Markdown
Member

Ah, important whitespace edits in Doc/Tutorial/chapter_align.tex and Tests/test_AlignIO_EmbossIO.py and Tests/test_Nexus.py and Tests/test_align.py too.

@peterjc

peterjc commented Dec 27, 2019

Copy link
Copy Markdown
Member

If you are interested, what I was doing to undo the white space edits was:

$ git checkout master Doc/Tutorial/chapter_align.tex # revert to original version
$ emacs Doc/Tutorial/chapter_align.tex # edit just the import line
$ git commit --amend Doc/Tutorial/chapter_align.tex # revise the commit

And then doing a forced push to update the pull request (about the only time you ever need to use --force with git push).

@lorforlinux

Copy link
Copy Markdown
Contributor Author

@peterjc thanks for describing the process, I will keep the steps in mind.

@peterjc

peterjc commented Dec 27, 2019

Copy link
Copy Markdown
Member

White space changes in doctests are tricky since perfect matches are required. It took me a couple of goes to find all the files.

@codecov

codecov Bot commented Dec 27, 2019 •

Copy link
Copy Markdown

Codecov Report

Merging #2443 into master will decrease coverage by <.01%.
The diff coverage is 66.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2443      +/-   ##
==========================================
- Coverage   84.64%   84.63%   -0.01%     
==========================================
  Files         323      323              
  Lines       52644    52642       -2     
==========================================
- Hits        44558    44556       -2     
  Misses       8086     8086
Impacted Files Coverage Δ
Bio/AlignIO/__init__.py 83.33% <ø> (ø) ⬆️
Bio/Align/Applications/_Mafft.py 100% <ø> (ø) ⬆️
Bio/Graphics/GenomeDiagram/_Diagram.py 96.72% <ø> (ø) ⬆️
Bio/Align/Applications/_Probcons.py 100% <ø> (ø) ⬆️
Bio/Phylo/BaseTree.py 88.52% <0%> (ø) ⬆️
Bio/MarkovModel.py 83.57% <0%> (ø) ⬆️
Bio/SeqIO/_index.py 93.64% <100%> (ø) ⬆️
Bio/SeqIO/UniprotIO.py 93.07% <100%> (ø) ⬆️
Bio/KEGG/KGML/KGML_parser.py 80.21% <100%> (ø) ⬆️
Bio/Phylo/NewickIO.py 82.75% <100%> (ø) ⬆️
... and 10 more

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 5f4c799...50e11b6. Read the comment docs.

@peterjc
peterjc merged commit 827429d into biopython:master Dec 27, 2019
@peterjc

peterjc commented Dec 27, 2019

Copy link
Copy Markdown
Member

Merged, thank you!

@lorforlinux
lorforlinux deleted the Bio-rm-python2 branch December 27, 2019 19:58
@lorforlinux
lorforlinux restored the Bio-rm-python2 branch December 27, 2019 19:59
@lorforlinux
lorforlinux deleted the Bio-rm-python2 branch December 27, 2019 20:04
@lorforlinux

Copy link
Copy Markdown
Contributor Author

@peterjc tests are failing for master branch on my computer

Ran 525 tests in 289.586 seconds

FAILED (failures = 253)

I am running the $ git pull upstream master command from yesterday but tests are still failing. can I just do my work and send a pull request?

From https://github.com/biopython/biopython
 * branch                master     -> FETCH_HEAD
Already up to date.

@peterjc

peterjc commented Dec 29, 2019

Copy link
Copy Markdown
Member

It sounds like you have accidentally made changes to your master branch (which should stay the same as the official upstream/master). Maybe this will help:

git fetch upstream # no changes, just updates cache of upstream
git checkout -b local_changes  # put your changes on a named branch
git branch -D master # delete master
git checkout -t upstream/master # take a clean copy of master

@lorforlinux

Copy link
Copy Markdown
Contributor Author

@peterjc thank you so much for the suggestion I learned something new today, the problem was not in the files it is that I was not running python setup.py build before the testing command python setup.py test now it seems fine.

peterjc added a commit to peterjc/biopython that referenced this pull request Jul 30, 2020
Original author Michiel de Hoon and contributors
since as tracked by version control have agreed:

 - Adhemar Zerlotini (@azneto)
   biopython#1412 (comment)
 - Andrey Raspopov (@Andrey-Raspopov)
   biopython#2444
 - Brad Chapman (@chapmanb)
   http://mailman.open-bio.org/pipermail/biopython-dev/2013-July/019903.html
 - Carlos Pena (@carlosp420)
   biopython#898 (comment)
 - Chad Parmet (@cparmet)
   biopython#1633 (comment)
 - Chris Mitchell (@chrismit aka @Chris7)
   biopython#898 (comment)
 - Chris Rands (@chris-rands)
   biopython#1301
 - Christian Brueffer (@cbrueffer)
   biopython#898 (comment)
 - Connor McCoy (@cmccoy)
   biopython#898 (comment)
 - David Nicholson (@danich1)
   biopython#898 (comment)
 - Deepak Khatri (@lorforlinux)
   biopython#2443
 - Francesco Gastaldello (@Gasta88)
   biopython#1063
 - Michiel de Hoon (@mdehoon)
   biopython#898 (comment)
 - @morrme
   biopython#1172 (comment)
 - Nick Negretti (@nimne)
   biopython#1768 (comment)
 - Peter Cock (@peterjc)
   biopython#898 (comment)
 - Sergio Valqui (@svalqui)
   biopython#1749
 - Tiago Antao (@tiagoantao)
   biopython#898 (comment)
 - Wibowo Arindrarto (@bow)
   biopython#898 (comment)

The exception is Lucas Sinclair (@xapple) whose one line change
has been removed (see previous commit).
peterjc added a commit to peterjc/biopython that referenced this pull request Jul 30, 2020
Original author Michiel de Hoon and contributors
since as tracked by version control have agreed:

 - Adhemar Zerlotini (@azneto)
   biopython#1412 (comment)
 - Andrey Raspopov (@Andrey-Raspopov)
   biopython#2444
 - Brad Chapman (@chapmanb)
   http://mailman.open-bio.org/pipermail/biopython-dev/2013-July/019903.html
 - Carlos Pena (@carlosp420)
   biopython#898 (comment)
 - Chad Parmet (@cparmet)
   biopython#1633 (comment)
 - Chris Mitchell (@chrismit aka @Chris7)
   biopython#898 (comment)
 - Chris Rands (@chris-rands)
   biopython#1301
 - Christian Brueffer (@cbrueffer)
   biopython#898 (comment)
 - Connor McCoy (@cmccoy)
   biopython#898 (comment)
 - David Nicholson (@danich1)
   biopython#898 (comment)
 - Deepak Khatri (@lorforlinux)
   biopython#2443
 - Francesco Gastaldello (@Gasta88)
   biopython#1063
 - Michiel de Hoon (@mdehoon)
   biopython#898 (comment)
 - @morrme
   biopython#1172 (comment)
 - Nick Negretti (@nimne)
   biopython#1768 (comment)
 - Peter Cock (@peterjc)
   biopython#898 (comment)
 - Sergio Valqui (@svalqui)
   biopython#1749
 - Tiago Antao (@tiagoantao)
   biopython#898 (comment)
 - Wibowo Arindrarto (@bow)
   biopython#898 (comment)

The exception is Lucas Sinclair (@xapple) whose one line change
has been removed (see previous commit).
peterjc added a commit that referenced this pull request Aug 23, 2020
Original author Michiel de Hoon and contributors
since as tracked by version control have agreed:

 - Adhemar Zerlotini (@azneto)
   #1412 (comment)
 - Andrey Raspopov (@Andrey-Raspopov)
   #2444
 - Brad Chapman (@chapmanb)
   http://mailman.open-bio.org/pipermail/biopython-dev/2013-July/019903.html
 - Carlos Pena (@carlosp420)
   #898 (comment)
 - Chad Parmet (@cparmet)
   #1633 (comment)
 - Chris Mitchell (@chrismit aka @Chris7)
   #898 (comment)
 - Chris Rands (@chris-rands)
   #1301
 - Christian Brueffer (@cbrueffer)
   #898 (comment)
 - Connor McCoy (@cmccoy)
   #898 (comment)
 - David Nicholson (@danich1)
   #898 (comment)
 - Deepak Khatri (@lorforlinux)
   #2443
 - Francesco Gastaldello (@Gasta88)
   #1063
 - Michiel de Hoon (@mdehoon)
   #898 (comment)
 - @morrme
   #1172 (comment)
 - Nick Negretti (@nimne)
   #1768 (comment)
 - Peter Cock (@peterjc)
   #898 (comment)
 - Sergio Valqui (@svalqui)
   #1749
 - Tiago Antao (@tiagoantao)
   #898 (comment)
 - Wibowo Arindrarto (@bow)
   #898 (comment)

The exception is Lucas Sinclair (@xapple) whose one line change
has been removed (see previous commit).
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