Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ jobs:
environment-file: binder/environment.yml
- name: Build
shell: bash -l {0}
run: hatchling build -t sdist -t wheel
run: |
git update-index --assume-unchanged src/python_workflow_definition/_version.py
hatchling build -t sdist -t wheel
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
1 change: 1 addition & 0 deletions binder/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ dependencies:
- click =8.1.8
- pydantic =2.12.4
- hatchling =1.27.0
- hatch-vcs =0.5.0
- httpcore =1.0.7
- jobflow =0.2.1
- pyiron_base =0.15.10
Expand Down
24 changes: 23 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ build-backend = "hatchling.build"

[project]
name = "python_workflow_definition"
version = "0.1.2"
description = "Python Workflow Definition - workflow interoperability for aiida, jobflow and pyiron"
authors = [
{ name = "Jan Janssen", email = "janssen@mpie.de" },
Expand All @@ -19,6 +18,7 @@ dependencies = [
"numpy>=1.21",
"pydantic>=2.7.0,<=2.12.4",
]
dynamic = ["version"]

[project.optional-dependencies]
aiida = [
Expand All @@ -35,3 +35,25 @@ plot = [
"networkx>=2.8.8,<=3.5",
"ipython>=7.33.0,<=9.8.0",
]

[tool.hatch.build]
include = [
"src/python_workflow_definition"
]

[tool.hatch.build.hooks.vcs]
version-file = "src/python_workflow_definition/_version.py"

[tool.hatch.build.targets.sdist]
include = [
"src/python_workflow_definition"
]

[tool.hatch.build.targets.wheel]
packages = [
"src/python_workflow_definition"
]

[tool.hatch.version]
source = "vcs"
path = "src/python_workflow_definition/_version.py"
4 changes: 4 additions & 0 deletions src/python_workflow_definition/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import python_workflow_definition._version


__version__ = python_workflow_definition._version.__version__
21 changes: 21 additions & 0 deletions src/python_workflow_definition/_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# file generated by setuptools-scm
# don't change, don't track in version control

__all__ = ["__version__", "__version_tuple__", "version", "version_tuple"]

TYPE_CHECKING = False
if TYPE_CHECKING:
from typing import Tuple
from typing import Union

VERSION_TUPLE = Tuple[Union[int, str], ...]
else:
VERSION_TUPLE = object

version: str
__version__: str
__version_tuple__: VERSION_TUPLE
version_tuple: VERSION_TUPLE

__version__ = version = "0.0.1"
__version_tuple__ = version_tuple = (0, 0, 1)
Loading