File tree Expand file tree Collapse file tree 3 files changed +21
-20
lines changed Expand file tree Collapse file tree 3 files changed +21
-20
lines changed Original file line number Diff line number Diff line change 1- # load information from setup.cfg/setup.py
2- {% set data = load_setup_py_data() %}
3- {% set license = data.get('license') %}
4- {% set description = data.get('description') %}
5- {% set url = data.get('url') %}
1+ # load information from pyproject.toml
2+ {% set pyproject = load_file_data('pyproject.toml') %}
3+ {% set project = pyproject.get('project', {}) %}
4+ {% set license = project.get('license').get('text') %}
5+ {% set description = project.get('description') %}
6+ {% set project_url = pyproject.get('project', {}).get('urls') %}
7+ {% set url = project_url.get('homepage') %}
68# this will get the version set by environment variable
79{% set version = environ.get('VERSION') %}
8- {% set version_number = environ.get('GIT_DESCRIBE_NUMBER', '0') | string %}
9-
10+ {% set git_describe_number = environ.get('GIT_DESCRIBE_NUMBER', '0') | string %}
1011
1112package :
1213 name : shiver
13- version : {{ version_number }}
14+ version : {{ version }}
1415
1516source :
1617 path : ..
1718
1819build :
1920 noarch : python
2021 linux-64 : python
21- number : {{ version_number }}
22+ number : {{ git_describe_number }}
2223 string : py{{py}}
2324 script : {{ PYTHON }} -m pip install . --no-deps --ignore-installed -vvv
2425
Original file line number Diff line number Diff line change 22name = " shiver"
33description = " Spectroscopy Histogram Visualizer for Event Reduction"
44dynamic = [" version" ]
5- requires-python = " >=3.8"
65dependencies = [
76 " mantidworkbench >= 6.6.20230517" ,
8- " pyoncat == 1.6.1 "
7+ " pyoncat ~= 1.6"
98]
9+ license = { text = " GPL3.0" }
1010
1111[project .urls ]
12- "Homepage" = " https://github.com/neutrons/Shiver/"
12+ homepage = " https://github.com/neutrons/Shiver/"
1313
1414[build-system ]
1515requires = [
@@ -24,6 +24,14 @@ build-backend = "setuptools.build_meta"
2424method = " git"
2525default-tag = " 0.0.1"
2626
27+ [tool .versioningit .next-version ]
28+ method = " minor"
29+
30+ [tool .versioningit .format ]
31+ distance = " {next_version}.dev{distance}"
32+ dirty = " {version}+d{build_date:%Y%m%d}"
33+ distance-dirty = " {next_version}.dev{distance}+d{build_date:%Y%m%d%H%M}"
34+
2735[tool .versioningit .write ]
2836file = " src/shiver/_version.py"
2937
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments