Skip to content
Merged
Show file tree
Hide file tree
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
66 changes: 66 additions & 0 deletions recipes/meson-python/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{% set name = "meson-python" %}
{% set version = "0.5.0" %}

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

source:
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/meson_python-{{ version }}.tar.gz
sha256: 84d2610829b1773c098055b83a04258cd92079f3cf8e96d3bcc2b31513e5cf83
patches:
- ninja-overdep.patch

build:
noarch: python
script: {{ PYTHON }} -m pip install . -vv
number: 0

requirements:
host:
- colorama
- meson >=0.60.0
- ninja
Comment thread
awvwgk marked this conversation as resolved.
- pep621 >=0.3.0
- pip
- python >=3.7
- tomli >=1.0.0
- typing-extensions >=3.7.4
Comment thread
awvwgk marked this conversation as resolved.
run:
- colorama
- meson >=0.60.0
- ninja
- pep621 >=0.3.0
- python >=3.7
- tomli >=1.0.0
- typing-extensions >=3.7.4
- wheel >=0.36.0

test:
imports:
- mesonpy
commands:
- pip check
- pytest tests -vv -k "not test_contents_unstaged"
source_files:
- tests/
requires:
- {{ compiler('c') }}
- git
- gitpython
- patchelf # [linux]
- pip
- pytest
- pytest-mock

about:
home: https://github.com/FFY00/meson-python
doc_url: https://meson-python.readthedocs.io/en/latest/
summary: Meson Python build backend (PEP 517)
license: EUPL-1.2
license_file: LICENSE

extra:
recipe-maintainers:
- awvwgk
Comment thread
awvwgk marked this conversation as resolved.
- rgommers
32 changes: 32 additions & 0 deletions recipes/meson-python/ninja-overdep.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
diff --git a/PKG-INFO b/PKG-INFO
index 40355c0..e0f6a39 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -14,7 +14,6 @@ Project-URL: Changelog, https://mesonpy.readthedocs.io/en/latest/changelog.html
Requires-Python: >=3.7
Requires-Dist: colorama; os_name == "nt"
Requires-Dist: meson>=0.60.0
-Requires-Dist: ninja
Comment thread
awvwgk marked this conversation as resolved.
Requires-Dist: pep621>=0.3.0
Requires-Dist: tomli>=1.0.0
Requires-Dist: typing-extensions>=3.7.4; python_version < "3.8"
diff --git a/pyproject.toml b/pyproject.toml
index d61a210..b66565a 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -3,7 +3,6 @@ build-backend = 'mesonpy'
backend-path = ['.']
requires = [
'meson>=0.62.0',
- 'ninja',
'pep621>=0.3.0',
'tomli>=1.0.0',
'typing-extensions>=3.7.4; python_version<"3.8"',
@@ -28,7 +27,6 @@ classifiers = [
dependencies = [
'colorama; os_name == "nt"',
'meson>=0.60.0',
- 'ninja',
'pep621>=0.3.0', # not a hard dependency, only needed for projects that use PEP 621 metadata
'tomli>=1.0.0',
'typing-extensions>=3.7.4; python_version<"3.8"',