From 92d6a73b9098201a397856c2f6bda3bde08a8263 Mon Sep 17 00:00:00 2001 From: Peter Erwin Date: Sat, 1 Jun 2024 14:47:51 +0200 Subject: [PATCH] Updated rattler-build recipe.yaml to v0.13.0, using github for source --- conda/rattler_setup/recipe.yaml | 10 +++++++--- howto_new_distribution.txt | 21 ++++++++++++++++++++- 2 files changed, 27 insertions(+), 4 deletions(-) diff --git a/conda/rattler_setup/recipe.yaml b/conda/rattler_setup/recipe.yaml index 4bfc75b..fc740c6 100644 --- a/conda/rattler_setup/recipe.yaml +++ b/conda/rattler_setup/recipe.yaml @@ -1,7 +1,7 @@ # recipe file for use by rattler-config in building conda packages for pyimfit context: - version: 0.12.2 + version: 0.13.0 package: name: pyimfit @@ -10,8 +10,9 @@ package: # https://pypi.io/packages/source/{ package_name_first_letter }/{ package_name }/{ package_name }-{ package_version }.tar.gz source: - url: https://pypi.io/packages/source/p/pyimfit/pyimfit-${{ version }}.tar.gz - sha256: c36b38203786f1c955b6c7f2e95288b761ba789cef006ea42cd68201a052958e +# url: https://pypi.io/packages/source/p/pyimfit/pyimfit-${{ version }}.tar.gz +# sha256: c36b38203786f1c955b6c7f2e95288b761ba789cef006ea42cd68201a052958e + git: https://github.com/perwin/pyimfit.git build: @@ -42,7 +43,10 @@ requirements: # - pyimfit about: + homepage: https://github.com/perwin/pyimfit repository: https://github.com/perwin/pyimfit license: GPL-3.0 license_family: GPL summary: Python wrapper for the astronomical image-fitting program Imfit + description: Python wrapper for Imfit, a program for fast fitting of astronomica images + documentation: https://pyimfit.readthedocs.io diff --git a/howto_new_distribution.txt b/howto_new_distribution.txt index 2e54467..6640e99 100644 --- a/howto_new_distribution.txt +++ b/howto_new_distribution.txt @@ -56,4 +56,23 @@ Working by default in ~/coding/pyimfit on Mac. B. For real: $ ./make_upload.sh x.x.x [where "x.x.x" = version number] -10. Test installation via pip +9. Test installation via pip + +10. Generate conda packages on Mac + +11. Generate conda packages on Linux VM + A. [vm] cd /home/vagrant/build/pyimfit + B. [vm] git pull origin master [if necessary] + C. [vm] cd conda + D. [vm] rattler-build build --recipe ./rattler_setup --variant-config ./rattler_setup/variant_config.yaml + E. [vm] cd output + F. [vm] tar -cf linux-64.tar linux-64 && gzip linux-64.tar + G. [vm] cp linux-64.tar.gz /vagrant/transfer/ + H. [mac] cd /Users/erwin/coding/pyimfit/conda + I. [mac] tar -xf ~/vagrant/iraf/transfer/linux-64.tar.gz -C output + +12. Upload conda packages to anaconda + A. conda activate + B. anaconda login + C. anaconda upload output/osx-64/pyimfit-*.conda output/linux-64/pyimfit-*.conda +