Skip to content

Commit

Permalink
Merge pull request #40 from pyiron/vasp_nodes
Browse files Browse the repository at this point in the history
init vasp node commit
  • Loading branch information
ligerzero-ai authored Oct 20, 2024
2 parents 1a903d9 + b40e270 commit bb4a4c8
Show file tree
Hide file tree
Showing 80 changed files with 1,713,565 additions and 87 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
codeql:
uses: pyiron/actions/.github/workflows/[email protected].0
uses: pyiron/actions/.github/workflows/[email protected].3
secrets: inherit
with:
python-version: '3.11' # Instead of default 3.12 due to matgl
python-version: '3.11' # Instead of default 3.12 due to matgl
4 changes: 2 additions & 2 deletions .github/workflows/dependabot-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ on:

jobs:
pyiron:
uses: pyiron/actions/.github/workflows/[email protected].0
secrets: inherit
uses: pyiron/actions/.github/workflows/[email protected].3
secrets: inherit
4 changes: 2 additions & 2 deletions .github/workflows/pr-labeled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ on:

jobs:
pyiron:
uses: pyiron/actions/.github/workflows/[email protected].0
secrets: inherit
uses: pyiron/actions/.github/workflows/[email protected].3
secrets: inherit
4 changes: 2 additions & 2 deletions .github/workflows/pr-target-opened.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ on:

jobs:
pyiron:
uses: pyiron/actions/.github/workflows/[email protected].0
secrets: inherit
uses: pyiron/actions/.github/workflows/[email protected].3
secrets: inherit
4 changes: 2 additions & 2 deletions .github/workflows/preview-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ on:

jobs:
pyiron:
uses: pyiron/actions/.github/workflows/[email protected].0
uses: pyiron/actions/.github/workflows/[email protected].3
secrets: inherit
with:
semantic-upper-bound: 'minor'
publish-to-pypi: false
python-version: '3.11' # Instead of default 3.12 due to matgl
python-version: '3.11' # Instead of default 3.12 due to matgl
2 changes: 1 addition & 1 deletion .github/workflows/push-pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
pyiron:
uses: pyiron/actions/.github/workflows/[email protected].0
uses: pyiron/actions/.github/workflows/[email protected].3
secrets: inherit
with:
python-version: '3.12'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/weekly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ on:

jobs:
codeql:
uses: pyiron/actions/.github/workflows/[email protected].0
secrets: inherit
uses: pyiron/actions/.github/workflows/[email protected].3
secrets: inherit
160 changes: 91 additions & 69 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,40 +35,39 @@
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
'myst_parser',
'nbsphinx',
'sphinx_gallery.load_style',
'sphinx.ext.mathjax',
'sphinx.ext.autodoc',
'sphinx.ext.viewcode',
'sphinx.ext.autosummary',
'sphinx.ext.napoleon'
"myst_parser",
"nbsphinx",
"sphinx_gallery.load_style",
"sphinx.ext.mathjax",
"sphinx.ext.autodoc",
"sphinx.ext.viewcode",
"sphinx.ext.autosummary",
"sphinx.ext.napoleon",
]

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
templates_path = ["_templates"]

nbsphinx_thumbnails = {
'source/notebooks/example': "_static/pyiron-logo-dark.png",
"source/notebooks/example": "_static/pyiron-logo-dark.png",
}

# The suffix of source filenames.
# The suffix of source filenames.
source_suffix = {
'.rst': 'restructuredtext',
'.md': 'markdown'
}
source_suffix = {".rst": "restructuredtext", ".md": "markdown"}

# The encoding of source files.
# source_encoding = 'utf-8-sig'

# The master toctree document.
master_doc = 'index'
master_doc = "index"

# General information about the project.
project = u'pyiron_nodes'
copyright = u'2021, Max-Planck-Institut für Eisenforschung GmbH - Computational Materials Design (CM) Department ' \
u'All rights reserved'
project = "pyiron_nodes"
copyright = (
"2021, Max-Planck-Institut für Eisenforschung GmbH - Computational Materials Design (CM) Department "
"All rights reserved"
)

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
Expand All @@ -77,12 +76,12 @@
# 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, '..'),
cwd=os.path.join(os.path.curdir, ".."),
universal_newlines=True,
shell=True
shell=True,
)
version_full = version_full.split('\n')[0]
version = '.'.join(version_full.split('.')[0:2])
version_full = version_full.split("\n")[0]
version = ".".join(version_full.split(".")[0:2])
# The full version, including alpha/beta/rc tags.
release = version_full

Expand All @@ -99,7 +98,7 @@
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.

exclude_patterns = ['_build', '**.ipynb_checkpoints', '**/tests']
exclude_patterns = ["_build", "**.ipynb_checkpoints", "**/tests"]

# The reST default role (used for this markup: `text`) to use for all
# documents.
Expand All @@ -117,11 +116,18 @@
# show_authors = False

# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'
pygments_style = "sphinx"

# A list of ignored prefixes for module index sorting.
modindex_common_prefix = ['vasp.', 'base.', 'lammps.',
'pyiron.', 'dft.', 'atomistics.', 'testing.']
modindex_common_prefix = [
"vasp.",
"base.",
"lammps.",
"pyiron.",
"dft.",
"atomistics.",
"testing.",
]

# If true, keep warnings as "system message" paragraphs in the built documents.
# keep_warnings = False
Expand All @@ -142,10 +148,11 @@
# html_theme = 'default'

try:
import sphinx_rtd_theme
html_theme = 'sphinx_rtd_theme'
import sphinx_rtd_theme

html_theme = "sphinx_rtd_theme"
except ImportError:
html_theme = 'default'
html_theme = "default"


# Theme options are theme-specific and customize the look and feel of a theme
Expand Down Expand Up @@ -175,7 +182,7 @@
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
html_static_path = ["_static"]

# Add any extra paths that contain custom files (such as robots.txt or
# .htaccess) here, relative to this directory. These files are copied
Expand Down Expand Up @@ -224,64 +231,72 @@
# html_file_suffix = None

# Output file base name for HTML help builder.
htmlhelp_basename = 'pyironDoc'
htmlhelp_basename = "pyironDoc"


# -- Options for LaTeX output ---------------------------------------------

latex_elements = {
# The paper size ('letterpaper' or 'a4paper').
# 'papersize': 'letterpaper',

# The font size ('10pt', '11pt' or '12pt').
#'pointsize': '10pt',

# Additional stuff for the LaTeX preamble.
#'preamble': '',
# The paper size ('letterpaper' or 'a4paper').
# 'papersize': 'letterpaper',
# The font size ('10pt', '11pt' or '12pt').
#'pointsize': '10pt',
# Additional stuff for the LaTeX preamble.
#'preamble': '',
}

# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title,
# author, documentclass [howto, manual, or own class]).
latex_documents = [
('index', 'pyiron_nodes.tex', u'pyiron_nodes Documentation',
u'Max-Planck-Institut für Eisenforschung GmbH - Computational Materials Design (CM) Department', 'manual'),
(
"index",
"pyiron_nodes.tex",
"pyiron_nodes Documentation",
"Max-Planck-Institut für Eisenforschung GmbH - Computational Materials Design (CM) Department",
"manual",
),
]

# The name of an image file (relative to this directory) to place at the top of
# the title page.
#latex_logo = None
# latex_logo = None

# For "manual" documents, if this is true, then toplevel headings are parts,
# not chapters.
#latex_use_parts = False
# latex_use_parts = False

# If true, show page references after internal links.
#latex_show_pagerefs = False
# latex_show_pagerefs = False

# If true, show URL addresses after external links.
#latex_show_urls = False
# latex_show_urls = False

# Documents to append as an appendix to all manuals.
#latex_appendices = []
# latex_appendices = []

# If false, no module index is generated.
#latex_domain_indices = True
# latex_domain_indices = True


# -- Options for manual page output ---------------------------------------

# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
man_pages = [
('index',
'pyiron_nodes',
u'pyiron_nodes Documentation',
[u'Max-Planck-Institut für Eisenforschung GmbH - Computational Materials Design (CM) Department'], 1)
(
"index",
"pyiron_nodes",
"pyiron_nodes Documentation",
[
"Max-Planck-Institut für Eisenforschung GmbH - Computational Materials Design (CM) Department"
],
1,
)
]

# If true, show URL addresses after external links.
#man_show_urls = False
# man_show_urls = False


# -- Options for Texinfo output -------------------------------------------
Expand All @@ -290,13 +305,15 @@
# (source start file, target name, title, author,
# dir menu entry, description, category)
texinfo_documents = [
('index',
'pyiron_nodes',
u'pyiron_nodes Documentation',
u'Max-Planck-Institut für Eisenforschung GmbH - Computational Materials Design (CM) Department',
'pyiron_nodes',
'One line description of project.',
'Miscellaneous'),
(
"index",
"pyiron_nodes",
"pyiron_nodes Documentation",
"Max-Planck-Institut für Eisenforschung GmbH - Computational Materials Design (CM) Department",
"pyiron_nodes",
"One line description of project.",
"Miscellaneous",
),
]

# Documents to append as an appendix to all manuals.
Expand All @@ -311,17 +328,22 @@
# If true, do not generate a @detailmenu in the "Top" node's menu.
# texinfo_no_detailmenu = False

main(['-e', '-o', 'apidoc', '../pyiron_nodes', '--force'])
main(["-e", "-o", "apidoc", "../pyiron_nodes", "--force"])

curdir = os.path.dirname(os.path.abspath(__file__))
if os.path.exists(os.path.join(curdir, 'source/notebooks')):
shutil.rmtree(os.path.join(curdir, 'source/notebooks'))
if os.path.exists(os.path.join(curdir, "source/notebooks")):
shutil.rmtree(os.path.join(curdir, "source/notebooks"))

shutil.copytree(os.path.join(curdir, '..', 'notebooks'),
os.path.join(curdir, 'source/notebooks'))
shutil.copytree(
os.path.join(curdir, "..", "notebooks"), os.path.join(curdir, "source/notebooks")
)

if 'readthedocs.org' in curdir: # write config for readthedocs.org
with open(os.path.join(os.path.expanduser('~/.pyiron')), 'w') as f:
f.writelines(['[DEFAULT]',
'TOP_LEVEL_DIRS = ' + os.path.join(curdir, '..'),
'RESOURCE_PATHS = ' + os.path.join(curdir, '..') + '/tests/static'])
if "readthedocs.org" in curdir: # write config for readthedocs.org
with open(os.path.join(os.path.expanduser("~/.pyiron")), "w") as f:
f.writelines(
[
"[DEFAULT]",
"TOP_LEVEL_DIRS = " + os.path.join(curdir, ".."),
"RESOURCE_PATHS = " + os.path.join(curdir, "..") + "/tests/static",
]
)
Loading

0 comments on commit bb4a4c8

Please sign in to comment.