Skip to content

Commit dceaa06

Browse files
committed
Fix conda installation with pyproject.toml
1 parent 4b81a06 commit dceaa06

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

conda.recipe/meta.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
{% set data = load_setup_py_data() %}
1+
{% set version = GIT_DESCRIBE_TAG %}
22

33
package:
44
name: trnpy
5-
version: {{ data['version'] }}
5+
version: {{ version }}
66

77
source:
88
path: ..

pyproject.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# pyproject.toml
2+
3+
[build-system]
4+
requires = ["setuptools>=42", "setuptools_scm[toml]>=6.0"]
5+
build-backend = "setuptools.build_meta"
6+
7+
[tool.setuptools_scm]
8+
version_scheme = "post-release"
9+
local_scheme = "no-local-version"
10+
tag_regex = '^(?P<version>[0-9]+(?:\.[0-9]+)*)$'

0 commit comments

Comments
 (0)