adjtomo / pysep

Seismogram Extraction and Processing: Seismic data retrieval and record sections
https://pysep.readthedocs.io
MIT License
29 stars 15 forks source link

publish PySEP on PyPi and Conda #55

Open bch0w opened 1 year ago

bch0w commented 1 year ago

I have only ever published a package on PyPi, but not Conda. I attempted to do this with Pyatoa but there were some sticky dependencies (Pyflex and Pyadjoint are not published) that prevented me from publishing on Conda successfully.

I think PySEP is a good target repository to push all the way to Conda after we get through the currently open issues and get things stable. It's a small enough package that it would be a good testbed for pushing out stable version releases and learning how to work with PyPi and Conda on a higher level. The end goal here would be to reduce the entire install procedure to:

conda install pysep

This would then give us experience and allow us start thinking about putting the rest of adjTomo on Conda which would really improve user experience.

bch0w commented 1 year ago

Important! The name PySEP was already taken on PyPi, so to avoid extra work by renaming the entire package and everything inside it, I decided to simply add a suffix to the published PyPi name, which is now: pysep-adjtomo

The latest version of PySEP (v0.3.1) is now published on PyPi. From now on, official versioned releases will be published to PyPi while all rapid development will continue to take place on the devel branch.

https://pypi.org/project/pysep-adjtomo/0.3.1/

That means, to install PySEP via Pip, you will have to run

pip install pysep-adjtomo

Also note that the Cartopy dependency will fail building from wheel when using Pip, and will have to be installed via Conda to skirt around this issue (https://github.com/SciTools/cartopy/issues/1940). The updated install instructions will reflect this.