Skip to content

Commit

Permalink
poetry added to read variables from pyproject.toml, python version up…
Browse files Browse the repository at this point in the history
…dated for mantid compatibility
  • Loading branch information
mpatrou committed Aug 30, 2023
1 parent bc82045 commit 746b0f9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
9 changes: 5 additions & 4 deletions conda.recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -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 %}
Expand Down
1 change: 1 addition & 0 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ dependencies:
- pytest-cov=4.0.0
- setuptools
- sphinx
- poetry
- python-build
- pip
- pip:
Expand Down
7 changes: 5 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit 746b0f9

Please sign in to comment.