diff --git a/Makefile b/Makefile index 14a9de5..ae8e3e2 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,7 @@ .PHONY: all lint test test-cov install dev clean distclean +PYTHON ?= python + all: ; lint: @@ -13,7 +15,7 @@ test-cov: all py.test --cov=q2_vizard install: all - pip install . + $(PYTHON) -m build --wheel dev: all pip install -e . diff --git a/ci/recipe/meta.yaml b/ci/recipe/meta.yaml index ec8e24b..63b2adb 100644 --- a/ci/recipe/meta.yaml +++ b/ci/recipe/meta.yaml @@ -1,5 +1,5 @@ -{% set data = load_setup_py_data() %} -{% set version = data.get('version') or 'placehold' %} +{%- set pyproject_toml = load_file('..', 'pyproject.toml') | parse_toml %} +{%- set version = pyproject_toml.get('project', {}).get('version', 'placehold') %} package: name: q2-vizard @@ -20,7 +20,9 @@ requirements: host: - python {{ python }} + - pip - setuptools + - wheel run: - python {{ python }} diff --git a/pyproject.toml b/pyproject.toml index 7a9be3d..81ffe44 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,7 +2,8 @@ requires = [ 'setuptools>=64', 'setuptools_scm>=8', - 'versioneer[toml]' + 'versioneer[toml]', + 'wheel' ] build-backend = 'setuptools.build_meta'