diff --git a/recipes/meson-python/meta.yaml b/recipes/meson-python/meta.yaml new file mode 100644 index 0000000000000..7d7238ca3d6de --- /dev/null +++ b/recipes/meson-python/meta.yaml @@ -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 + - pep621 >=0.3.0 + - pip + - python >=3.7 + - tomli >=1.0.0 + - typing-extensions >=3.7.4 + 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 + - rgommers diff --git a/recipes/meson-python/ninja-overdep.patch b/recipes/meson-python/ninja-overdep.patch new file mode 100644 index 0000000000000..c409e3d8761f5 --- /dev/null +++ b/recipes/meson-python/ninja-overdep.patch @@ -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 + 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"',