Skip to content

Commit

Permalink
Merge pull request #160 from giffels/release-0.5.0
Browse files Browse the repository at this point in the history
Release 0.5.0
  • Loading branch information
giffels committed Dec 10, 2020
2 parents 6b04a31 + 23b87ec commit 1139be8
Show file tree
Hide file tree
Showing 23 changed files with 85 additions and 13 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This workflows will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries

name: Upload Python Package

on:
release:
types: [created]

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist
twine upload dist/*
2 changes: 1 addition & 1 deletion docs/source/adapters/batchsystem.rst
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ Available configuration options

.. content-tabs:: left-col

+----------------+---------------------------------------------------------------- --+-----------------+
+----------------+-------------------------------------------------------------------+-----------------+
| Option | Short Description | Requirement |
+================+===================================================================+=================+
| adapter | Name of the adapter (Slurm) | **Required** |
Expand Down
2 changes: 2 additions & 0 deletions docs/source/api/tardis.adapters.batchsystems.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ Submodules
----------

.. toctree::
:maxdepth: 4

tardis.adapters.batchsystems.fakebatchsystem
tardis.adapters.batchsystems.htcondor
tardis.adapters.batchsystems.slurm
7 changes: 7 additions & 0 deletions docs/source/api/tardis.adapters.batchsystems.slurm.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
tardis.adapters.batchsystems.slurm module
=========================================

.. automodule:: tardis.adapters.batchsystems.slurm
:members:
:undoc-members:
:show-inheritance:
1 change: 1 addition & 0 deletions docs/source/api/tardis.adapters.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Subpackages
-----------

.. toctree::
:maxdepth: 4

tardis.adapters.batchsystems
tardis.adapters.sites
1 change: 1 addition & 0 deletions docs/source/api/tardis.adapters.sites.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Submodules
----------

.. toctree::
:maxdepth: 4

tardis.adapters.sites.cloudstack
tardis.adapters.sites.fakesite
Expand Down
1 change: 1 addition & 0 deletions docs/source/api/tardis.agents.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Submodules
----------

.. toctree::
:maxdepth: 4

tardis.agents.batchsystemagent
tardis.agents.siteagent
1 change: 1 addition & 0 deletions docs/source/api/tardis.configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Submodules
----------

.. toctree::
:maxdepth: 4

tardis.configuration.configuration
tardis.configuration.utilities
1 change: 1 addition & 0 deletions docs/source/api/tardis.exceptions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Submodules
----------

.. toctree::
:maxdepth: 4

tardis.exceptions.executorexceptions
tardis.exceptions.tardisexceptions
1 change: 1 addition & 0 deletions docs/source/api/tardis.interfaces.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Submodules
----------

.. toctree::
:maxdepth: 4

tardis.interfaces.batchsystemadapter
tardis.interfaces.borg
Expand Down
7 changes: 7 additions & 0 deletions docs/source/api/tardis.plugins.elasticsearchmonitoring.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
tardis.plugins.elasticsearchmonitoring module
=============================================

.. automodule:: tardis.plugins.elasticsearchmonitoring
:members:
:undoc-members:
:show-inheritance:
2 changes: 2 additions & 0 deletions docs/source/api/tardis.plugins.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ Submodules
----------

.. toctree::
:maxdepth: 4

tardis.plugins.elasticsearchmonitoring
tardis.plugins.prometheusmonitoring
tardis.plugins.sqliteregistry
tardis.plugins.telegrafmonitoring
1 change: 1 addition & 0 deletions docs/source/api/tardis.resources.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Submodules
----------

.. toctree::
:maxdepth: 4

tardis.resources.drone
tardis.resources.dronestates
Expand Down
1 change: 1 addition & 0 deletions docs/source/api/tardis.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Subpackages
-----------

.. toctree::
:maxdepth: 4

tardis.adapters
tardis.agents
Expand Down
1 change: 1 addition & 0 deletions docs/source/api/tardis.utilities.executors.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Submodules
----------

.. toctree::
:maxdepth: 4

tardis.utilities.executors.shellexecutor
tardis.utilities.executors.sshexecutor
2 changes: 2 additions & 0 deletions docs/source/api/tardis.utilities.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Subpackages
-----------

.. toctree::
:maxdepth: 4

tardis.utilities.executors
tardis.utilities.simulators
Expand All @@ -18,6 +19,7 @@ Submodules
----------

.. toctree::
:maxdepth: 4

tardis.utilities.asynccachemap
tardis.utilities.attributedict
Expand Down
1 change: 1 addition & 0 deletions docs/source/api/tardis.utilities.simulators.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Submodules
----------

.. toctree::
:maxdepth: 4

tardis.utilities.simulators.periodicvalue
tardis.utilities.simulators.randomgauss
7 changes: 4 additions & 3 deletions docs/source/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
.. Created by changelog.py at 2020-12-08, command
.. Created by changelog.py at 2020-12-09, command
'/Users/giffler/.cache/pre-commit/repor6pnmwlm/py_env-python3.9/bin/changelog docs/source/changes compile --output=docs/source/changelog.rst'
based on the format of 'https://keepachangelog.com/'
#########
CHANGELOG
#########

[Unreleased] - 2020-12-08
=========================
[0.5.0] - 2020-12-09
====================

Added
-----

* Export tardis environment variable via slurm site adapter
* Added support for Slurm overlay batch system

[0.4.0] - 2020-06-03
====================
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
category: added
summary: "Added support for Slurm overlay batch system"
description: |
The Slurm batch system is now also supported as overlay batch system to manage dynamic resources.
pull requests:
- 129
version: 0.5.0
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ description: |
underlying resources in the OBS.
pull requests:
- 157
version: 0.5.0
2 changes: 2 additions & 0 deletions docs/source/changes/versions.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
- semver: 0.5.0
date: '2020-12-09'
- semver: 0.4.0
date: '2020-06-03'
- semver: 0.3.0
Expand Down
2 changes: 1 addition & 1 deletion tardis/__about__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
__summary__ = "Transparent Adaptive Resource Dynamic Integration System"
__url__ = "https://github.com/matterminers/tardis"

__version__ = "0.4.0"
__version__ = "0.5.0"
__author__ = "Manuel Giffels, Matthias Schnepf"
__email__ = "giffels@gmail.com"
__copyright__ = "2018 - 2020 %s and Contributors" % __author__
Expand Down
16 changes: 8 additions & 8 deletions tardis/adapters/batchsystems/slurm.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ async def disintegrate_machine(self, drone_uuid: str) -> None:
in Freiburg).
:param drone_uuid: Uuid of the worker node, for some sites corresponding
to the host name of the drone.
to the host name of the drone.
:type drone_uuid: str
:return: None
"""
Expand All @@ -119,7 +119,7 @@ async def drain_machine(self, drone_uuid: str) -> None:
jobs will be accepted
:param drone_uuid: Uuid of the worker node, for some sites corresponding
to the host name of the drone.
to the host name of the drone.
:type drone_uuid: str
:return: None
"""
Expand All @@ -139,7 +139,7 @@ async def integrate_machine(self, drone_uuid: str) -> None:
take care of it themselves)
:param drone_uuid: Uuid of the worker node, for some sites corresponding
to the host name of the drone.
to the host name of the drone.
:type drone_uuid: str
:return: None
"""
Expand All @@ -152,7 +152,7 @@ async def get_resource_ratios(self, drone_uuid: str) -> Iterable[float]:
ratio is given by allocated memory / total memory.
:param drone_uuid: Uuid of the worker node, for some sites corresponding
to the host name of the drone.
to the host name of the drone.
:type drone_uuid: str
:return: Iterable of float containing the ratios
:rtype: Iterable[float]
Expand All @@ -178,7 +178,7 @@ async def get_allocation(self, drone_uuid: str) -> float:
Disk, etc.).
:param drone_uuid: Uuid of the worker node, for some sites corresponding
to the host name of the drone.
to the host name of the drone.
:type drone_uuid: str
:return: The allocation of a worker node as described above.
:rtype: float
Expand All @@ -191,10 +191,10 @@ async def get_machine_status(self, drone_uuid: str) -> MachineStatus:
Drained, NotAvailable)
:param drone_uuid: Uuid of the worker node, for some sites corresponding
to the host name of the drone.
to the host name of the drone.
:type drone_uuid: str
:return: The machine status in SLURM (Available, Draining, Drained,
NotAvailable)
NotAvailable)
:rtype: MachineStatus
"""

Expand Down Expand Up @@ -241,7 +241,7 @@ async def get_utilisation(self, drone_uuid: str) -> float:
Disk, etc.).
:param drone_uuid: Uuid of the worker node, for some sites corresponding
to the host name of the drone.
to the host name of the drone.
:type drone_uuid: str
:return: The utilization of a worker node as described above.
:rtype: float
Expand Down

0 comments on commit 1139be8

Please sign in to comment.