Skip to content

Commit

Permalink
DEV - Add conda recipe with verification workflow (#793)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Tania Allard <[email protected]>
  • Loading branch information
3 people authored Apr 2, 2024
1 parent 3728f60 commit 8088f74
Show file tree
Hide file tree
Showing 2 changed files with 160 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/conda.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: "Build conda packages"

on:
push:
branches: [main]
pull_request:
branches:
- main
workflow_dispatch:

env:
FORCE_COLOR: "1" # Make tools pretty.
PYTHONUNBUFFERED: "1" # Keep stdout and stderr nice and tidy

permissions:
contents: read # This is required for actions/checkout

jobs:
# Always build & verify package.
build-package:
name: Build & verify package
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- macos-14
- windows-latest
steps:
- name: "Checkout Repository 🛎"
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: "Check conda builds 📦"
uses: jaimergp/conda-build-action@main
with:
artifact-name: 'conda-packages-${{ matrix.os }}'
121 changes: 121 additions & 0 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
{% set name = "conda-store" %}
{% set version = "2024.1.1" %}

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

source:
# This is only needed here in-repo; in conda-forge, sources from PyPI
- path: ../

build:
number: 0

outputs:
- name: conda-store
version: {{ version }}
build:
noarch: python
script: python -m pip install ./conda-store -vv --no-deps --no-build-isolation --no-index
entry_points:
- conda-store = conda_store.__main__:main
requirements:
host:
- python >=3.8
- pip
- hatchling >=1.14.0
- hatch-vcs
run:
- __linux # [linux]
- __osx # [osx]
- __win # [win]
- aiohttp>=3.8.1
- click
- python >=3.8
- rich
- ruamel.yaml
- yarl
run_constrained:
- {{ pin_subpackage('conda-store-server', min_pin='x.x.x', max_pin='x.x.x') }}

test:
imports:
- conda_store
commands:
- conda-store --help

- name: conda-store-server
version: {{ version }}
build:
noarch: python
script: python -m pip install ./conda-store-server -vv --no-deps --no-build-isolation --no-index
entry_points:
- conda-store-server = conda_store_server.server.__main__:main
- conda-store-worker = conda_store_server.worker.__main__:main
requirements:
host:
- python >=3.8
- pip
- hatchling >=1.14.0
- hatch-vcs
run:
- alembic
- celery
- conda
- conda-docker # [linux]
- __linux # [linux]
- __osx # [osx]
- __win # [win]
- conda-pack
- conda-lock
- fastapi
- filelock
- itsdangerous
- jinja2
- minio
- pydantic <2.0a0
- pyjwt
- python >=3.8
- python-docker
- python-multipart
- pyyaml
- redis-py
- requests
- sqlalchemy <2.0a0
- traitlets
- uvicorn
- yarl
- constructor
- psycopg2
- pymysql
run_constrained:
- {{ pin_subpackage('conda-store', min_pin='x.x.x', max_pin='x.x.x') }}

test:
imports:
- conda_store_server
commands:
- conda-store-server --help
- conda-store-worker --help

about:
home: https://github.com/Quansight/conda-store
license: BSD-3-Clause
license_family: BSD
license_file: LICENSE
summary: Conda Environment Management, Builds, and Serve
description: |
End users think in terms of environments not packages. The core
philosophy of conda-store is to serve identical conda environments
in as many ways as possible. Conda Store controls the environment
lifecycle: management, builds, and serving of environments.
doc_url: https://conda-store.readthedocs.io/
dev_url: https://github.com/Quansight/conda-store

extra:
feedstock-name: conda-store
recipe-maintainers:
- trallard
- costrouc
- jaimergp

0 comments on commit 8088f74

Please sign in to comment.