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 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",