From 06c813898380c2a087e1c762b481077dcdeeab59 Mon Sep 17 00:00:00 2001 From: liamhuber Date: Fri, 3 Oct 2025 06:48:25 -0700 Subject: [PATCH 1/2] [nit] Remove dead config Signed-off-by: liamhuber --- pyproject.toml | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index f7f6562..fa82471 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,19 +37,6 @@ Homepage = "https://github.com/pyiron/pyiron_snippets" Documentation = "https://pyiron-snippets.readthedocs.io" Repository = "https://github.com/pyiron/pyiron_snippets" -[tool.versioneer] -VCS = "git" -style = "pep440-pre" -versionfile_source = "pyiron_snippets/_version.py" -parentdir_prefix = "pyiron_snippets" -tag_prefix = "pyiron_snippets-" - -[tool.setuptools.packages.find] -include = [ "pyiron_snippets*",] - -[tool.setuptools.dynamic.version] -attr = "pyiron_snippets.__version__" - [project.optional-dependencies] tests = [ "cloudpickle==3.1.1", From b5bcd19e73684418e38ced0462a8a6ef4d055720 Mon Sep 17 00:00:00 2001 From: liamhuber Date: Fri, 3 Oct 2025 06:54:27 -0700 Subject: [PATCH 2/2] Update version access for docs Signed-off-by: liamhuber --- docs/conf.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 9614ce5..9cd8ac8 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -18,6 +18,8 @@ import subprocess from sphinx.ext.apidoc import main +import pyiron_snippets + # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. @@ -75,14 +77,8 @@ # built documents. # # The short X.Y version. -version_full = subprocess.check_output( - "python -c 'import versioneer; print(versioneer.get_version())'", - cwd=os.path.join(os.path.curdir, '..'), - universal_newlines=True, - shell=True -) -version_full = version_full.split('\n')[0] -version = '.'.join(version_full.split('.')[0:2]) +version_full = pyiron_snippets.__version__ +version = '.'.join(version_full.split('.')[:2]) # The full version, including alpha/beta/rc tags. release = version_full