-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Local docs builds with tox * GitHub Pages publishing with the Sphinx recommended actions * Initial developer guide * Initial (very rough) Python API docs * Glossary of key terms * Placeholder page for the project overview
- Loading branch information
Showing
57 changed files
with
1,957 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: "Sphinx: Render docs" | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- "**" | ||
paths: | ||
# Run for changes to *this* workflow file, but not for other workflows | ||
- ".github/workflows/docs.yml" | ||
# Trigger off docs and Python source code changes | ||
- "docs/**" | ||
- "src/**.py" | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
# Allow updating the gh-pages branch | ||
contents: write | ||
|
||
# Check https://github.com/actions/action-versions/tree/main/config/actions | ||
# for latest versions if the standard actions start emitting warnings | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Build HTML | ||
uses: ammaraskar/sphinx-action@master | ||
with: | ||
docs-folder: "docs/" | ||
# Skip link check until after the venvstacks repo is public | ||
# pre-build-command: "sphinx-build -b linkcheck . _build" | ||
build-command: "sphinx-build -b dirhtml . _build" | ||
|
||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: html-docs | ||
path: docs/_build/dirhtml/ | ||
|
||
- name: Deploy | ||
uses: peaceiris/actions-gh-pages@v3 | ||
if: github.ref == 'refs/heads/main' | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: docs/_build/dirhtml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
_build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Minimal makefile for Sphinx documentation | ||
# | ||
|
||
# You can set these variables from the command line, and also | ||
# from the environment for the first two. | ||
SPHINXOPTS ?= | ||
SPHINXBUILD ?= sphinx-build | ||
SOURCEDIR = . | ||
BUILDDIR = _build | ||
|
||
# Put it first so that "make" without argument is like "make help". | ||
help: | ||
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | ||
|
||
.PHONY: help Makefile | ||
|
||
# Catch-all target: route all unknown targets to Sphinx using the new | ||
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). | ||
%: Makefile | ||
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Python API | ||
========== | ||
|
||
.. warning:: | ||
|
||
The Python API is *NOT YET STABLE*. | ||
Function, class, and method names may change between releases | ||
without any deprecation period. | ||
|
||
.. automodule:: venvstacks | ||
|
||
.. rubric:: Modules | ||
|
||
.. autosummary:: | ||
:toctree: | ||
|
||
cli | ||
pack_venv | ||
stacks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
venvstacks.cli.main | ||
=================== | ||
|
||
.. currentmodule:: venvstacks.cli | ||
|
||
.. autofunction:: main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
venvstacks.cli | ||
============== | ||
|
||
.. automodule:: venvstacks.cli | ||
|
||
|
||
.. rubric:: Functions | ||
|
||
.. autosummary:: | ||
:toctree: | ||
|
||
main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
venvstacks.pack\_venv.convert\_symlinks | ||
======================================= | ||
|
||
.. currentmodule:: venvstacks.pack_venv | ||
|
||
.. autofunction:: convert_symlinks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
venvstacks.pack\_venv.create\_archive | ||
===================================== | ||
|
||
.. currentmodule:: venvstacks.pack_venv | ||
|
||
.. autofunction:: create_archive |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
venvstacks.pack\_venv.export\_venv | ||
================================== | ||
|
||
.. currentmodule:: venvstacks.pack_venv | ||
|
||
.. autofunction:: export_venv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
venvstacks.pack\_venv.get\_archive\_path | ||
======================================== | ||
|
||
.. currentmodule:: venvstacks.pack_venv | ||
|
||
.. autofunction:: get_archive_path |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
venvstacks.pack\_venv | ||
===================== | ||
|
||
.. automodule:: venvstacks.pack_venv | ||
|
||
|
||
.. rubric:: Functions | ||
|
||
.. autosummary:: | ||
:toctree: | ||
|
||
convert_symlinks | ||
create_archive | ||
export_venv | ||
get_archive_path |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
venvstacks.stacks.ApplicationEnv | ||
================================ | ||
|
||
.. currentmodule:: venvstacks.stacks | ||
|
||
.. autoclass:: ApplicationEnv | ||
|
||
|
||
.. automethod:: __init__ | ||
|
||
.. rubric:: Methods | ||
|
||
.. autosummary:: | ||
|
||
~ApplicationEnv.create_archive | ||
~ApplicationEnv.create_environment | ||
~ApplicationEnv.define_archive_build | ||
~ApplicationEnv.ensure_runtime_dependencies | ||
~ApplicationEnv.export_environment | ||
~ApplicationEnv.get_constraint_paths | ||
~ApplicationEnv.install_build_requirements | ||
~ApplicationEnv.install_requirements | ||
~ApplicationEnv.link_base_runtime_paths | ||
~ApplicationEnv.link_layered_environments | ||
~ApplicationEnv.lock_requirements | ||
~ApplicationEnv.remove_build_only_packages | ||
~ApplicationEnv.report_python_site_details | ||
~ApplicationEnv.request_export | ||
~ApplicationEnv.select_operations | ||
|
||
.. rubric:: Attributes | ||
|
||
.. autosummary:: | ||
|
||
~ApplicationEnv.category | ||
~ApplicationEnv.env_name | ||
~ApplicationEnv.env_spec | ||
~ApplicationEnv.install_target | ||
~ApplicationEnv.kind | ||
~ApplicationEnv.launch_module_name | ||
~ApplicationEnv.linked_constraints_paths | ||
~ApplicationEnv.linked_dynlib_paths | ||
~ApplicationEnv.linked_frameworks | ||
~ApplicationEnv.linked_pylib_paths | ||
~ApplicationEnv.want_build | ||
~ApplicationEnv.want_lock | ||
~ApplicationEnv.want_publish | ||
~ApplicationEnv.was_built | ||
~ApplicationEnv.was_created | ||
~ApplicationEnv.build_path | ||
~ApplicationEnv.requirements_path | ||
~ApplicationEnv.index_config | ||
~ApplicationEnv.env_path | ||
~ApplicationEnv.pylib_path | ||
~ApplicationEnv.dynlib_path | ||
~ApplicationEnv.executables_path | ||
~ApplicationEnv.python_path | ||
~ApplicationEnv.env_lock | ||
~ApplicationEnv.base_python_path | ||
~ApplicationEnv.tools_python_path | ||
~ApplicationEnv.py_version | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
venvstacks.stacks.ApplicationSpec | ||
================================= | ||
|
||
.. currentmodule:: venvstacks.stacks | ||
|
||
.. autoclass:: ApplicationSpec | ||
|
||
|
||
.. automethod:: __init__ | ||
|
||
|
||
.. rubric:: Methods | ||
|
||
.. autosummary:: | ||
|
||
~ApplicationSpec.get_requirements_fname | ||
~ApplicationSpec.get_requirements_path | ||
|
||
.. rubric:: Attributes | ||
|
||
.. autosummary:: | ||
|
||
~ApplicationSpec.ENV_PREFIX | ||
~ApplicationSpec.category | ||
~ApplicationSpec.env_name | ||
~ApplicationSpec.kind | ||
~ApplicationSpec.launch_module_path | ||
~ApplicationSpec.frameworks | ||
~ApplicationSpec.runtime | ||
~ApplicationSpec.name | ||
~ApplicationSpec.versioned | ||
~ApplicationSpec.requirements | ||
~ApplicationSpec.build_requirements | ||
~ApplicationSpec.platforms | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
venvstacks.stacks.ArchiveBuildMetadata | ||
====================================== | ||
|
||
.. currentmodule:: venvstacks.stacks | ||
|
||
.. autoclass:: ArchiveBuildMetadata | ||
|
||
|
||
.. automethod:: __init__ | ||
|
||
.. rubric:: Attributes | ||
|
||
.. autosummary:: | ||
|
||
~ArchiveBuildMetadata.layer_name | ||
~ArchiveBuildMetadata.install_target | ||
~ArchiveBuildMetadata.requirements_hash | ||
~ArchiveBuildMetadata.lock_version | ||
~ArchiveBuildMetadata.locked_at | ||
~ArchiveBuildMetadata.runtime_name | ||
~ArchiveBuildMetadata.required_layers | ||
~ArchiveBuildMetadata.app_launch_module | ||
~ArchiveBuildMetadata.app_launch_module_hash | ||
~ArchiveBuildMetadata.archive_build | ||
~ArchiveBuildMetadata.archive_name | ||
~ArchiveBuildMetadata.target_platform | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
venvstacks.stacks.ArchiveBuildRequest | ||
===================================== | ||
|
||
.. currentmodule:: venvstacks.stacks | ||
|
||
.. autoclass:: ArchiveBuildRequest | ||
|
||
|
||
.. automethod:: __init__ | ||
|
||
|
||
.. rubric:: Methods | ||
|
||
.. autosummary:: | ||
|
||
~ArchiveBuildRequest.create_archive | ||
~ArchiveBuildRequest.define_build | ||
~ArchiveBuildRequest.needs_archive_build | ||
|
||
.. rubric:: Attributes | ||
|
||
.. autosummary:: | ||
|
||
~ArchiveBuildRequest.env_name | ||
~ArchiveBuildRequest.env_lock | ||
~ArchiveBuildRequest.archive_base_path | ||
~ArchiveBuildRequest.build_metadata | ||
~ArchiveBuildRequest.needs_build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
venvstacks.stacks.ArchiveHashes | ||
=============================== | ||
|
||
.. currentmodule:: venvstacks.stacks | ||
|
||
.. autoclass:: ArchiveHashes | ||
|
||
.. automethod:: __init__ | ||
|
||
.. rubric:: Attributes | ||
|
||
.. autosummary:: | ||
|
||
~ArchiveHashes.sha256 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
venvstacks.stacks.ArchiveMetadata | ||
================================= | ||
|
||
.. currentmodule:: venvstacks.stacks | ||
|
||
.. autoclass:: ArchiveMetadata | ||
|
||
.. automethod:: __init__ | ||
|
||
.. rubric:: Attributes | ||
|
||
.. autosummary:: | ||
|
||
~ArchiveMetadata.layer_name | ||
~ArchiveMetadata.install_target | ||
~ArchiveMetadata.requirements_hash | ||
~ArchiveMetadata.lock_version | ||
~ArchiveMetadata.locked_at | ||
~ArchiveMetadata.runtime_name | ||
~ArchiveMetadata.required_layers | ||
~ArchiveMetadata.app_launch_module | ||
~ArchiveMetadata.app_launch_module_hash | ||
~ArchiveMetadata.archive_build | ||
~ArchiveMetadata.archive_name | ||
~ArchiveMetadata.target_platform | ||
~ArchiveMetadata.archive_size | ||
~ArchiveMetadata.archive_hashes | ||
|
Oops, something went wrong.