Skip to content
Merged
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: 2 additions & 2 deletions .binder/environment.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
channels:
- conda-forge
dependencies:
- hatchling =1.27.0
- hatch-vcs =0.5.0
- python >=3.11,<3.14
- setuptools>=68
- wheel
6 changes: 3 additions & 3 deletions .ci_support/environment.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
channels:
- conda-forge
dependencies:
- python >=3.11,<3.14
- setuptools>=68
- wheel
- hatchling =1.27.0
- hatch-vcs =0.5.0
- python >=3.11,<3.14
14 changes: 7 additions & 7 deletions .github/workflows/release-or-preview.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# Dynamically updates the pyproject.toml for release to pypi
# On PRs just lets you preview the new toml
# On actual publication events, publishes to pypi
name: Release (and/or preview)
# This runs jobs which pyiron modules should run on release
# This job runs on pull requests and does not actually publish anything to pypi
# It is useful for debugging new build recipes
# To actually release, change the `on` and `publish-to-pypi` fields
name: Release

on:
pull_request:
release:
types: [ published ]

jobs:
pyproject-flow:
uses: pyiron/actions/.github/workflows/pyproject-release.yml@actions-4.0.8
hatchling-release:
uses: pyiron/actions/.github/workflows/hatch-release.yml@actions-4.0.8
secrets: inherit
with:
semantic-upper-bound: 'minor'
publish-to-pypi: ${{ github.event_name == 'release' && github.event.action == 'published' }}
4 changes: 2 additions & 2 deletions docs/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ dependencies:
- sphinx-gallery
- sphinx-rtd-theme
- versioneer
- hatchling =1.27.0
- hatch-vcs =0.5.0
- python >=3.11,<3.14
- setuptools>=68
- wheel
9 changes: 7 additions & 2 deletions pyiron_snippets/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
from . import _version
import importlib.metadata

__version__ = _version.get_versions()["version"]
try:
# Installed package will find its version
__version__ = importlib.metadata.version(__name__)
except importlib.metadata.PackageNotFoundError:
# Repository clones will register an unknown version
__version__ = "0.0.0+unknown"
Loading
Loading