diff --git a/conda.recipe/meta.yaml b/conda.recipe/meta.yaml index 34452b27..aed070b5 100644 --- a/conda.recipe/meta.yaml +++ b/conda.recipe/meta.yaml @@ -1,7 +1,8 @@ -# load information from setup.cfg/setup.py -{% set data = load_setup_py_data() %} -{% set description = data.get('description') %} -{% set url = data.get('url') %} +-# load information from pyproject.toml through poetry +{% set pyproject = load_file_data('pyproject.toml') %} +{% set poetry = pyproject.get('tool', {}).get('poetry') %} +{% set description = poetry.get('description') %} +{% set url = poetry.get('repository') %} # this will get the version set by environment variable {% set version = environ.get('VERSION') %} {% set git_describe_number = environ.get('GIT_DESCRIBE_NUMBER', '0') | string %} diff --git a/environment.yml b/environment.yml index 19d489dc..a9cb1d52 100644 --- a/environment.yml +++ b/environment.yml @@ -16,6 +16,7 @@ dependencies: - pytest-cov=4.0.0 - setuptools - sphinx + - poetry - python-build - pip - pip: diff --git a/pyproject.toml b/pyproject.toml index 6fd70502..01d56c02 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,14 +2,17 @@ name = "shiver" description = "Spectroscopy Histogram Visualizer for Event Reduction" dynamic = ["version"] -requires-python = ">=3.8" +requires-python = ">=3.10" dependencies = [ "mantidworkbench >= 6.6.20230517", "pyoncat == 1.6.1" ] +[tool.poetry] +description = "Spectroscopy Histogram Visualizer for Event Reduction" + [project.urls] -"Homepage" = "https://github.com/neutrons/Shiver/" +homepage = "https://github.com/neutrons/Shiver/" [build-system] requires = [