Closed hou098 closed 2 years ago
BPA internal Trello reference - https://trello.com/c/qHRhonTv/1412-update-biom-format-to-upstream
I've had a look at the fork. There's only one commit different to upstream, and the cython files are not in upstream. Does bpaotu build cleanly if you point to the upstream?
There's nothing obvious in the commit notes to suggest what the need for those files to be committed was.
I can merge the upstream and push it to BioplatformsAustralia/biom-format and tag if required.
@mtearle
I've had a look at the fork. There's only one commit different to upstream, and the cython files are not in upstream.
https://github.com/BioplatformsAustralia/biom-format says
This branch is 1 commit ahead, 69 commits behind biocore:master.
The C files were removed in https://github.com/biocore/biom-format/commit/a8c179e42010e24d5a0af0b41d432ef42d6d6888
Does bpaotu build cleanly if you point to the upstream?
I'm pretty sure it won't because if we take the .c files out it'll need Cython to build them from .pyx, and there's no Cython in the build environment as far as I can see. Looking at https://github.com/BioplatformsAustralia/biom-format/blob/79b89acde807c4750d072d9608974a8d0ef1ee35/setup.py it seems that Cython is an optional requirement, and defaults to False.
I think what's going on is that back in 2019 those C files needed to be manually regenerated when the Python C API chnaged. The developers probably got jack of that and decided to handle this at install time instead in setup.py
So the options seem to be
@hou098
Did a quick check across the other BPA repositories, only bpaotu uses biom-format. I think we should go with the second option.
Once we've released the next version of bpaotu to prod built with the other biom-format, I'll archive the BPA repo.
@mtearle
OK, I will have a go at using https://github.com/biocore/biom-format with Python 3.8.
Once we've released the next version of bpaotu to prod built with the other biom-format, I'll archive the BPA repo.
If it works, I think the best idea might be to merge the current master from https://github.com/biocore/biom-format into https://github.com/BioplatformsAustralia/biom-format in case the original repo disappears for any reason.
@mtearle
Actually, I see that there is https://pypi.org/project/biom-format/ so I'm just testing
diff --git a/requirements/biom-requirements.txt b/requirements/biom-requirements.txt
index 7e0979b..c8937e7 100644
--- a/requirements/biom-requirements.txt
+++ b/requirements/biom-requirements.txt
@@ -1 +1 @@
-https://github.com/BioplatformsAustralia/biom-format/archive/1.1.2bioplatforms1.tar.gz
+biom-format==2.1.12
Seems to build OK, so if it works OK we can probably just use PyPI and drop the github repo.
Fixed in e564bc4e99756517d05e80cd6839f3c2d7db8b6f
I have archived https://github.com/BioplatformsAustralia/biom-format so it is explicit to others that it is not in use any more
Tried with Python 3.8:
Docker build fails due to https://github.com/BioplatformsAustralia/biom-format/archive/1.1.2bioplatforms1.tar.gz incompatibility with Python 3.8
On Wed, 2022-09-28 at 02:22 +0000, Mark Tearle wrote:
No change. IIRC using a newer python requires updating bpaotu to use https://github.com/BioplatformsAustralia/biom-format It's currently hardwired to https://github.com/BioplatformsAustralia/biom-format/archive/1.1.2bioplatforms1.tar.gz and I don't know if the latest version is compatible