-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from olcf/feature/rework
Feature/rework
- Loading branch information
Showing
67 changed files
with
4,839 additions
and
5,290 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,39 @@ | ||
# This workflow will upload a Python Package using Twine when a release is created | ||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries | ||
|
||
# This workflow uses actions that are not certified by GitHub. | ||
# They are provided by a third-party and are governed by | ||
# separate terms of service, privacy policy, and support | ||
# documentation. | ||
|
||
name: Upload Python Package | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
deploy: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: '3.x' | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install build | ||
- name: Build package | ||
run: python -m build | ||
- name: Publish package | ||
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_API_TOKEN }} |
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 |
---|---|---|
|
@@ -9,3 +9,5 @@ | |
############################################################ | ||
tmp | ||
*__pycache__ | ||
dist | ||
*\.egg-info |
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
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
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,64 @@ | ||
************* | ||
Configuration | ||
************* | ||
|
||
Configuration for Velocity comes from three places. Command line options, environment variables and the configuration file. | ||
|
||
Commandline Options | ||
################### | ||
These take the highest level of precedence and can be viewed by using the ``--help`` option in the command line. | ||
|
||
Variables | ||
######### | ||
Variables are the second highest level of configuration. | ||
|
||
`VELOCITY_IMAGE_PATH` | ||
--------------------- | ||
|
||
This variable points to the directories containing the the image definitions. | ||
|
||
`VELOCITY_SYSTEM` | ||
----------------- | ||
This variable specifies what computer system you are building for (e.g. frontier). | ||
|
||
`VELOCITY_BACKEND` | ||
------------------ | ||
This variable specifies the container backend that should be used (e.g podman). | ||
|
||
`VELOCITY_DISTRO` | ||
----------------- | ||
This variable specifies the distro of the container images that will be built. This name is flexable and completely | ||
up to the user. It is used purely for organizational purposes. | ||
|
||
`VELOCITY_BUILD_DIR` | ||
-------------------- | ||
This variable specifies a scratch space for Velocity to preform builds in. | ||
|
||
`VELOCITY_CONFIG_DIR` | ||
--------------------- | ||
This variable specifies where to look for the configuration file. | ||
|
||
Configuration File | ||
################## | ||
The configuration file is the lowest level of configuration. By default Velocity looks for ``config.yaml`` in | ||
``~/.velocity`` unless ``VELOCITY_CONFIG_DIR`` is set. A number of configuration option for velocity can be set. | ||
|
||
.. code-block:: yaml | ||
velocity: | ||
system: frontier | ||
backend: apptainer | ||
distro: ubuntu | ||
debug: INFO # set the debug level | ||
image_path: # a list of : seperated paths | ||
build_dir: # path to a scratch space | ||
Additionally you can set :ref:`arguments` and :ref:`specVariables` at a global level in the constraints section. As an example here | ||
we are adding ``--disable-cache`` as an argument for every image build we do with apptainer. | ||
|
||
.. code-block:: yaml | ||
constraints: | ||
arguments: | ||
- value: --disable-cache | ||
when: backend=apptainer |
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 |
---|---|---|
|
@@ -8,6 +8,7 @@ Technical Docs | |
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
config | ||
vtmp | ||
specifications | ||
specs | ||
build |
160 changes: 0 additions & 160 deletions
160
docs/build/html/_sources/reference/specifications.rst.txt
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.