Skip to content
Snippets Groups Projects

Migrate to using pixi for CI and development

Merged
André Anjosrequested to merge
use-pixi into main
1 open thread
5 files
+ 2040
378
Compare changes
  • Side-by-side
  • Inline

Files

# SPDX-FileCopyrightText: Copyright © 2022 Idiap Research Institute <contact@idiap.ch>
#
# SPDX-License-Identifier: BSD-3-Clause
{% set data = load_file_data(RECIPE_DIR + '/../pyproject.toml') %}
package:
name: {{ data['project']['name'] }}
version: {{ environ.get('PACKAGE_VERSION', environ.get('GIT_DESCRIBE_TAG')) }}
source:
path: ..
build:
noarch: python
number: {{ environ.get('NEXT_BUILD_NUMBER', 0) }}
run_exports:
- {{ pin_subpackage(data['project']['name']) }}
script:
- "{{ PYTHON }} -m pip install {{ SRC_DIR }} -vv"
requirements:
host:
- python >=3.10
- pip
- hatchling
- versioningit
- click >=8
- click {{ click }}
- tomli {{ tomli }}
- tomli-w {{ tomli_w }}
- xdg {{ xdg }}
run:
- python >=3.10
- {{ pin_compatible('click') }}
- {{ pin_compatible('tomli') }}
- {{ pin_compatible('tomli-w') }}
- {{ pin_compatible('xdg') }}
test:
source_files:
- tests
imports:
- {{ data['project']['name'] }}
commands:
- pytest -sv tests
requires:
- pytest {{ pytest }}
about:
home: {{ data['project']['urls']['homepage'] }}
summary: {{ data['project']['description'] }}
license: {{ data['project']['license'] }}
license_family: BSD
Loading