Skip to content

Commit

Permalink
Release v0.14 (#126)
Browse files Browse the repository at this point in the history
* version bump

* require Python >= 3.8, remove 3.6 and 3.7 compat

* classifier cleanup

* always verify on latest Py version

* added change fragment

* typo in change docs

* mark release, regenerated changelog
  • Loading branch information
maxfischer2781 authored Jul 31, 2023
1 parent 660b06d commit 606add9
Show file tree
Hide file tree
Showing 12 changed files with 35 additions and 68 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ on:

jobs:
build:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.6', '3.7', '3.8', '3.9', 'pypy-3.6', 'pypy-3.7']
python-version: ['3.8', '3.9', '3.10', '3.11', 'pypy-3.8', 'pypy-3.9']

steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/verification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
12 changes: 10 additions & 2 deletions docs/source/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
.. Created by log.py at 2022-08-16, command
'/Users/mfischer/PycharmProjects/cobald/venv/lib/python3.9/site-packages/change/__main__.py log docs/source/changes compile -o docs/source/changelog.rst'
.. Created by log.py at 2023-07-26, command
'/Users/mfischer/PycharmProjects/cobald/venv/lib/python3.9/site-packages/change/__main__.py log docs/source/changes compile -o docs/source/changelog.rst --categories Added Changed Fixed Security Deprecated'
based on the format of 'https://keepachangelog.com/'
#########
ChangeLog
#########

0.14 Series
===========

Version [0.14.0] - 2023-07-26
+++++++++++++++++++++++++++++

* **[Deprecated]** Minimal Python version is 3.8

0.13 Series
===========

Expand Down
11 changes: 11 additions & 0 deletions docs/source/changes/126.python_3_8.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
category: deprecated
summary: "Minimal Python version is 3.8"
description: |
Support for Python versions 3.6 and 3.7 has been dropped. This has no further
functional changes for users but reflects the end of life of these versions
and allows COBalD and plugins to drop outdated dependencies and compatibility layers.
issues:
- 124
pull requests:
- 126
version: 0.14.0
2 changes: 1 addition & 1 deletion docs/source/changes/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Changelog Fragments
This folder contains fragments for the ``dev_tools/change-log.py`` tool to
create formatted changelogs. Fragments are YAML files that contain meta-data
and human-readable descriptions of changes. Files are mappings that must contain
the fields ``category``, ``summary``, and ``description` and optionally the fields
the fields ``category``, ``summary``, and ``description`` and optionally the fields
``pull requests`` and ``issues``; the naming convention of files is
``<first pull request>.<topic>.yaml``.
Both ``summary`` and ``description`` fields are interpreted as reStructured Text.
Expand Down
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.14.0
date: '2023-07-26'
- semver: 0.13.0
date: '2022-08-16'
- semver: 0.12.3
Expand Down
7 changes: 3 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@
],
},
# >>> Dependencies
python_requires=">=3.8",
install_requires=[
"pyyaml",
"trio>=0.4.0",
"entrypoints",
"toposort",
"typing_extensions",
],
extras_require={
"docs": ["sphinx", "sphinx_rtd_theme"],
Expand All @@ -76,7 +76,6 @@
license="MIT",
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: Science/Research",
Expand All @@ -85,10 +84,10 @@
"Topic :: Office/Business :: Scheduling",
"Topic :: System :: Distributed Computing",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
],
keywords=package_about["__keywords__"],
# unit tests
Expand Down
4 changes: 2 additions & 2 deletions src/cobald/__about__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
__summary__ = "COBalD - the Opportunistic Balancing Daemon"
__url__ = "https://github.com/MatterMiners/cobald"

__version__ = "0.13.0"
__version__ = "0.14.0"
__author__ = "Eileen Kuehn, Max Fischer"
__email__ = "[email protected]"
__copyright__ = "2018 - 2022 %s" % __author__
__copyright__ = "2018 - 2023 %s" % __author__
__keywords__ = "opportunistic scheduling scheduler demand feedback-loop cobald"
2 changes: 1 addition & 1 deletion src/cobald/composite/weighted.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing_extensions import Literal
from typing import Literal

from ..interfaces import Pool, CompositePool

Expand Down
51 changes: 0 additions & 51 deletions src/cobald/daemon/runners/_compat.py

This file was deleted.

3 changes: 1 addition & 2 deletions src/cobald/daemon/runners/asyncio_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import asyncio

from .base_runner import BaseRunner, OrphanedReturn
from ._compat import asyncio_current_task


class AsyncioRunner(BaseRunner):
Expand Down Expand Up @@ -46,7 +45,7 @@ async def _monitor_payload(self, payload: Callable[[], Awaitable]):
if result is None:
return
failure = OrphanedReturn(payload, result)
self._tasks.discard(asyncio_current_task())
self._tasks.discard(asyncio.current_task())
if not self._payload_failure.done():
self._payload_failure.set_exception(failure)

Expand Down
3 changes: 1 addition & 2 deletions src/cobald/daemon/runners/meta_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from .trio_runner import TrioRunner
from .asyncio_runner import AsyncioRunner
from .thread_runner import ThreadRunner
from ._compat import asyncio_run

from ..debug import NameRepr

Expand Down Expand Up @@ -67,7 +66,7 @@ def run(self):
"""Run all runners, blocking until completion or error"""
self._logger.info("starting all runners")
try:
asyncio_run(self._manage_runners())
asyncio.run(self._manage_runners())
except KeyboardInterrupt:
self._logger.info("runner interrupted")
except Exception as err:
Expand Down

0 comments on commit 606add9

Please sign in to comment.