mspass-team / mspass

Massive Parallel Analysis System for Seismologists
https://mspass.org
BSD 3-Clause "New" or "Revised" License
28 stars 11 forks source link

Build conda package and upload to anaconda #515

Closed Aristoeu closed 1 month ago

Aristoeu commented 4 months ago

Added a workflow to build initiate conda environment, build conda package, and upload conda package to anaconda.

meta.yaml and build.sh are configuration files to build conda package. MANIFEST.in is a necessary file to build python package.

For now the conda package is uploaded to my account, and the token is written explicitly, it should be a secret defined in github repo.

I directly build the conda package from source code, rathen than building the wheel and uploading the wheel to pypi. I tried to build wheels for manylinux, but there are still problems:

codecov[bot] commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

:exclamation: No coverage uploaded for pull request base (master@cdf07be). Click here to learn what that means.

:exclamation: Current head 1c226e4 differs from pull request most recent head 84e2314. Consider uploading reports for the commit 84e2314 to get more accurate results

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #515 +/- ## ========================================= Coverage ? 54.56% ========================================= Files ? 146 Lines ? 22357 Branches ? 1336 ========================================= Hits ? 12200 Misses ? 9817 Partials ? 340 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

Aristoeu commented 4 months ago

Different python versions, test using docker, then arm test in colied locally or in container

Aristoeu commented 4 months ago

https://anaconda.org/cxwang/mspasspy

Aristoeu commented 1 month ago

Tried to change an older cmake version to debug the slash missing bug for arm64, but the cmake version is always set to 3.18.4-2+deb11u1

slash missing bug for arm64: https://github.com/mspass-team/mspass/actions/runs/9033197024/job/24822993108 line 2244

11 2988.6 OSError: Failed to copy /mspass/cxx/includealgorithms/deconvolution/MTPowerSpectrumEngine.h to /opt/conda/conda-bld/mspasspy_1715349086006/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_plac/info/recipe/cxx/includealgorithms/deconvolution/MTPowerSpectrumEngine.h. Error was: Command 'cp -a /mspass/cxx/includealgorithms/deconvolution/MTPowerSpectrumEngine.h /opt/conda/conda-bld/mspasspy_1715349086006/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_plac/info/recipe/cxx/includealgorithms/deconvolution/MTPowerSpectrumEngine.h' returned non-zero exit status 1.