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

Outlines core #28863

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
83 changes: 83 additions & 0 deletions recipes/outlines-core/recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
context:
name: outlines-core
version: 0.1.27

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

source:
url: https://pypi.org/packages/source/${{ name[0] }}/${{ name }}/outlines_core-${{ version }}.tar.gz
sha256: 594d35c616a90a5da1d172406c8c56ba8a72192964a5f51bb012a3d6710efd22

build:
number: 0
script:
- cargo-bundle-licenses --format yaml --output THIRDPARTY.yml
- ${{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation

requirements:
build:
- if: build_platform != target_platform
then:
- python
- cross-python_${{ target_platform }}
- setuptools >=45
- setuptools-scm >=6.2
- setuptools-rust
- openssl

- ${{ compiler('rust') }}
- ${{ compiler('cxx') }}
- ${{ stdlib("c") }}
- cargo-bundle-licenses
- pkg-config
host:
- python
- setuptools >=45
- setuptools-scm >=6.2
- setuptools-rust
- pip
- openssl
run:
- python
- interegular
- jsonschema

tests:
- python:
imports:
- outlines_core
pip_check: true
- requirements:
run:
- pytest
- pytest-benchmark
- pytest-mock
- scipy
- numpy
- pytorch
- pydantic
- transformers
- datasets
- sentencepiece
files:
source:
- tests/
# NOTE: remove test_serialization.py since it imports the tests folder
# which is a bad practice and raise an error here.
script: pytest -vvv tests/ --ignore=tests/fsm/test_serialization.py

about:
summary: Structured Text Generation in Rust
license: Apache-2.0
license_file:
- THIRDPARTY.yml
- LICENSE
homepage: https://github.com/dottxt-ai/outlines-core
hadim marked this conversation as resolved.
Show resolved Hide resolved
repository: https://github.com/dottxt-ai/outlines-core

extra:
recipe-maintainers:
- hadim
- maresb
Loading