8000 Fix accessing of pyproject.toml version in conda recipe · plotly/plotly.py@370efcd · GitHub
[go: up one dir, main page]

Skip to content

Commit 370efcd

Browse files
committed
Fix accessing of pyproject.toml version in conda recipe
1 parent dafa57f commit 370efcd

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

packages/python/plotly/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build-system]
2-
requires = ["jupyterlab~=3.0;python_version>='3.6'", "setuptools>=40.8.0", "wheel"]
2+
requires = ["setuptools"]
33
build-backend = "setuptools.build_meta"
44

55
[project.urls]

packages/python/plotly/recipe/meta.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
{% set data = load_file_data('pyproject.toml') %}
2-
{% set version = data.get('version') %}
2+
{% set version = data.get('project', {}).get('version') %}
33

44
package:
55
name: plotly
66
version: {{ version }}
77

88
source:
9-
path: ../../../../
9+
path: ../
1010

1111
build:
1212
number: 0
1313
script: |
14-
cd packages/python/plotly
1514
{{ PYTHON }} -m build --sdist --wheel
1615
{{ PYTHON }} -m pip install dist/plotly-{{ version }}.tar.gz --no-deps --ignore-installed --no-cache-dir -q
1716
noarch: python
@@ -20,9 +19,10 @@ requirements:
2019
build:
2120
- python
2221
- pip
23-
- jupyterlab =3
24-
- nodejs =16
22+
- jupyterlab
23+
- build
2524
- setuptools
25+
- nodejs =16
2626
run:
2727
- python
2828
- narwhals >=1.15.1

0 commit comments

Comments
 (0)
0