Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish package to conda-forge #27

Closed
mlshapiro opened this issue Mar 23, 2023 · 4 comments
Closed

Publish package to conda-forge #27

mlshapiro opened this issue Mar 23, 2023 · 4 comments
Assignees
Labels
chore Setup or maintenance

Comments

@mlshapiro
Copy link
Contributor

Description

Support install with conda install pycontrails on the conda-forge channel.

Should be fairly easy once published to pypi. See https://conda-forge.org/docs/maintainer/adding_pkgs.html

Alternatives

  • Ignore conda for now
@mlshapiro mlshapiro added the chore Setup or maintenance label Mar 23, 2023
@mlshapiro
Copy link
Contributor Author

According to https://stackoverflow.com/a/66539742 - Once we do this setup once, conda-forge will pull new releases from pypi

@mlshapiro
Copy link
Contributor Author

mlshapiro commented Jan 16, 2024

Going to ignore this for now

@mlshapiro mlshapiro reopened this Jan 26, 2024
@aeroevan
Copy link

aeroevan commented Mar 2, 2024

For reference, a meta.yaml like this one works for building a conda package (generated using grayskull):

{% set name = "pycontrails" %}
{% set version = "0.49.5" %}

package:
  name: {{ name|lower }}
  version: {{ version }}

source:
  url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/pycontrails-{{ version }}.tar.gz
  sha256: ddab48301d18200eb732a68d813c8241d039108a2872013deced2b4dcab2e5d1

build:
  skip: true  # [py<39]
  script: {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation
  number: 0

requirements:
  build:
    - {{ compiler('c') }}
  host:
    - python >=3.9
    - setuptools
    - setuptools-scm
    - wheel
    - cython
    - numpy
    - pip
  run:
    - python >=3.9
    - dask-core >=2022.3
    - overrides >=6.1
    - pandas >=1.4
    - scipy >=1.10
    - xarray >=2022.3
    - {{ pin_compatible('numpy') }}

test:
  imports:
    - pycontrails
  commands:
    - pip check
  requires:
    - pip

about:
  summary: Python library for modeling aviation climate impacts
  license: Apache-2.0
  license_file:
    - LICENSE
    - NOTICE

@zebengberg
Copy link
Contributor

pycontrails is now available on conda-forge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Setup or maintenance
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants