Closed JostMigenda closed 3 years ago
Additionally, one of the dependencies (CosmoloPy) apparently fails to install under Python 3.8 or newer. I’ve opened an issue on the CosmoloPy repo. Please let me know whether there’s a workaround or whether I should continue testing with Python 3.7 for now.
This commit solves the issues listed above, thank you! And in the meantime, the CosmoloPy issue was also fixed and it can now be pip-installed under Python 3.8 as well, so I will continue to use that for testing.
3.9 isn’t supported by CosmoloPy yet, though; it would probably be good to mention that in the README file to save users some trouble trying to debug it. Also, the version you uploaded to PyPI is still missing the jupyter and matplotlib requirements, unfortunately; it looks like you uploaded an incomplete version of the code there?
PS: If you weren’t already aware of it, check out this GitHub Action to automate publishing to PyPI whenever you create a new release; maybe that’s helpful to you?
Hi @JostMigenda,
Sorry about the confusion, that previous version I uploaded to pypi was not ready. In order to address the issues you mentioned, I have released a new version v.1.6.1 (also updated on PyPI), which no longer require cosmolopy. I believe this can avoid any future python version issue. The switch has effectively no impact on the result.
regarding the requirement of jupyter
and matplotlib
, I think they are not really involved in the core functions of FIRESONG, so I don't want to force users to install these packages. However, I have stated explicitly in the README that access to the examples requires jupyter notebook and matplotlib. Please let me know if that make sense to you.
And thank you for the suggestion on publishing automatically to PyPI. I will definitely implement that.
Nice to see that removing the dependency on cosmolopy was possible without too much trouble; this should indeed prevent most issues with future Python versions. Regarding jupyter
and matplotlib
, that seems like a good compromise to me, yes. Thanks!
[As part of the JOSS review.]
I ran into several issues while trying to install FIRESONG.
pip install --editable FIRESONG
), you need to state explicitly that the user should download the repo first. However, note that edible installs are mainly for developers of a package. For users, publishing FIRESONG to PyPI and installing viapip install FIRESONG
(i.e. without downloading the repo) may be preferable; both for simplicity and to ensure they install a tagged release (as opposed to the most recent git commit on the base branch, which is more prone to cause confusion).from firesong.Firesong import firesong_simulation
. You can use setup.py’sinstall_requires
keyword to let pip install these dependencies automatically.