Skip to content

Commit 3dce0f6

Browse files
committed
set minimum python to 3.9, set back the conda section of pyproject to tool.conda.environment
1 parent d1471fd commit 3dce0f6

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

conda/meta.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ build:
1515

1616
requirements:
1717
build:
18-
- python
18+
- python {{ pyproject["project"]["requires-python"] }}
1919
{% for dep in pyproject["build-system"]["requires"] %}
2020
- {{ dep.lower() }}
2121
{% endfor %}
@@ -25,7 +25,7 @@ requirements:
2525
{% for dep in pyproject["project"]["dependencies"] %}
2626
- {{ dep.lower() }}
2727
{% endfor %}
28-
{% for dep in pyproject["conda"]["environment"]["dependencies"] %}
28+
{% for dep in pyproject["tool"]["conda"]["environment"]["dependencies"] %}
2929
- {{ dep.lower() }}
3030
{% endfor %}
3131

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ where = ["src"]
1212

1313
# enable dynamic versioning based on git tags
1414
[tool.setuptools_scm]
15+
# can be empty if no extra settings are needed, presence enables setuptools-scm
1516

1617
[project]
1718
name = "openalea.hydroroot"
@@ -27,12 +28,11 @@ description = "OpenAlea.HydroRoot is a hydraulic root architecture modelling and
2728
readme = "README.rst"
2829
license = "CECILL-C"
2930
license-files = ["LICEN[CS]E*"]
30-
requires-python = ">=3.6"
31+
requires-python = ">=3.9"
3132
classifiers = [
3233
"Intended Audience :: Science/Research",
3334
"Intended Audience :: Developers",
3435
"Programming Language :: Python :: 3 :: Only",
35-
"Programming Language :: Python :: 3.8",
3636
"Programming Language :: Python :: 3.9",
3737
"Programming Language :: Python :: 3.10",
3838
"Programming Language :: Python :: 3.11",
@@ -51,7 +51,7 @@ dependencies = [
5151

5252

5353
# section specific to conda-only distributed package (not used by pip yet)
54-
[conda.environment]
54+
[tool.conda.environment]
5555
channels = [
5656
"openalea3",
5757
"conda-forge"

0 commit comments

Comments
 (0)