Open gregoryng opened 7 months ago
subradar==1.1.2 may effectively have a circular dependency on rsr.
subradar 1.1.1 installs ok.
The RSR circular dependency is fixed in v1.1.4.
That does not solve the dependency issue you are reporting , though. Oddly enough, I have a similar issue (ModuleNotFoundError: No module named 'numpy'
) when installing v1.1.4 on my laptop, but it does install smoothly on my Ubuntu server.
I started looking at how to make packages, and I see now that rather than the towardsdatascience article you had, there is now an official python tutorial:
https://packaging.python.org/en/latest/tutorials/packaging-projects/
I was looking at your code, and I see that one of the things you do is that you import a module in subradar in order to access the __version__
variable in the python code and use that in setup.
There is a bit of discussion about this maybe not being the best way to do versioning, and rather to place that metadata into the toml metadata file (in the comments under the original post):
https://stackoverflow.com/questions/458550/standard-way-to-embed-version-into-python-package
So removing the version variable and then not importing the code as part of the setup script seems like a better idea to me -- reduces risk of unwanted interactions. I guess the downside is that people can't query the version number within the code.
Edit: suggestions for version number https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#version
I am not sure if this is by design, but when you run pip to install subradar, but you don't have numpy installed, the install process fails. This might happen if you are setting up a fresh virtual environment.
A workaround is to manually install scipy and numpy first, but not sure if you should do that.
This is the contents of requirements.txt