broadinstitute / cpg

Cell painting gallery
BSD 3-Clause "New" or "Revised" License
2 stars 3 forks source link

Add conda forge release #30

Open leoank opened 10 months ago

jeskowagner commented 1 month ago

If the use of cpgdata and cpgparser is intended for Cytodata/SBI2 2024, this issue deserves some renewed interest. Making recipes is fairly quick using grayskull as explained here.

The result looks as follows. Note that it's missing information on license, because I believe the license is not bundled in the Pypi release. I have also not yet added a maintainer name.

cpgparser ``` {% set name = "cpgparser" %} {% set version = "0.2.0" %} package: name: {{ name|lower }} version: {{ version }} source: url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/cpgparser-{{ version }}.tar.gz sha256: e64deef3bde428a1723f6aa9b3506eabe4a622e53404f51f6b6dfe15a028a261 build: noarch: python script: {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation number: 0 requirements: host: - python >=3.8 - maturin >=1.4,<2.0 - pip run: - python >=3.8 test: imports: - cpgparser commands: - pip check requires: - pip about: license: '' license_file: PLEASE_ADD_LICENSE_FILE extra: recipe-maintainers: - PLEASE_ADD_RECIPE_MAINTAINER ```
cpgdata ``` {% set name = "cpgdata" %} {% set version = "0.4.0" %} package: name: {{ name|lower }} version: {{ version }} source: url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/cpgdata-{{ version }}.tar.gz sha256: 9c20f38e71170f41ece257d2f4d3fd0db1b4972f3863c3432026efa6e303d5c5 build: entry_points: - cpg = cpgdata.cli.main:main noarch: python script: {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation number: 0 requirements: host: - python >=3.10,<4.0 - poetry-core - pip run: - python >=3.10.0,<4.0.0 - click >=8.1.0,<9.0.0 - pydantic >=2.4.0,<3.0.0 - polars >=0.19.0,<0.20.0 - pyarrow >=13.0.0,<14.0.0 - joblib >=1.3.2,<2.0.0 - cpgparser >=0.2.0,<0.3.0 - tqdm >=4.66.0,<5.0.0 - lark >=1.1.9,<2.0.0 test: imports: - cpgdata commands: - pip check - cpg --help requires: - pip about: summary: Cell painting gallery data handling and validation license: '' license_file: PLEASE_ADD_LICENSE_FILE extra: recipe-maintainers: - PLEASE_ADD_RECIPE_MAINTAINER ```
leoank commented 3 weeks ago

Let me know if you are interested in working on this! I'll happily accept a PR.

jeskowagner commented 3 weeks ago

Hi Ankur, conda-forge recipes go through a specific staging process, see here. I can intitate that for you, but would need

  1. consent that you be listed as a recipe maintainer
  2. confirmation that cpgparser and cpgdata are to ship with BSD-3, just as this repo does
  3. you to be aware that once packages are on conda-forge they cannot be deleted from there (see docs). This is unlike on PyPi (and GitHub), so please confirm that's okay for you.
jeskowagner commented 3 weeks ago

Also, please be aware that cpgparser and cpgdata ship without a license file included.

jeskowagner commented 2 weeks ago

I created the required recipes (download here: cpg-recipes.tar.gz) and attached the license used in this repo. They list you as a recipe maintainer. With these files in hand, you may follow these instructions from step 2 on to publish cpgdata and cpgparser on conda-forge. I hope it makes sense that you'd be the maintainer rather than me, as I am not involved in the development of cpg tools.

leoank commented 2 weeks ago

Thanks @jeskowagner for the help! I'll work on the rest. But I am currently busy so this might take a while. I hope this is not a blocker for you.