Skip to content

Commit 788d204

Browse files
committed
Use hatchling as build system
Signed-off-by: liamhuber <liamhuber@greyhavensolutions.com>
1 parent 73ff3e3 commit 788d204

File tree

6 files changed

+34
-745
lines changed

6 files changed

+34
-745
lines changed

.ci_support/environment.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ dependencies:
66
- cloudpickle =3.1.1
77
- executorlib =1.7.1
88
- graphviz =9.0.0
9+
- hatchling =1.27.0
10+
- hatch-vcs =0.5.0
911
- pandas =2.3.2
1012
- pint =0.25
1113
- pyiron_snippets =0.2.0
1214
- python >=3.11,<3.14
1315
- python-graphviz =0.21
1416
- rdflib =7.1.4
1517
- semantikon =0.0.22
16-
- setuptools>=68
1718
- toposort =1.10
1819
- typeguard =4.4.4
19-
- wheel

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: Release
33

44
on:
5-
# pull_request:
5+
pull_request:
66
release:
77
types: [ published ]
88

@@ -13,4 +13,4 @@ jobs:
1313
with:
1414
semantic-upper-bound: 'minor'
1515
lower-bound-yaml: '.ci_support/lower_bound.yml'
16-
# publish-to-pypi: false
16+
publish-to-pypi: ${{ github.event_name == 'release' && github.event.action == 'published' }}

pyiron_workflow/__init__.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,14 @@
2222
guided workflow design
2323
"""
2424

25-
from ._version import get_versions
25+
import importlib.metadata
2626

27-
__version__ = get_versions()["version"]
27+
try:
28+
# Installed package will find its version
29+
__version__ = importlib.metadata.version(__name__)
30+
except importlib.metadata.PackageNotFoundError:
31+
# Repository clones will register an unknown version
32+
__version__ = "0.0.0+unknown"
2833

2934
# User API
3035

0 commit comments

Comments
 (0)