-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DEV - Add conda recipe with verification workflow (#793)
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
1 parent
3728f60
commit 8088f74
Showing
2 changed files
with
160 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |