Skip to content

Commit

Permalink
Merge branch 'master' into speedup-retrieval-of-analyses
Browse files Browse the repository at this point in the history
  • Loading branch information
seallard committed Nov 15, 2023
2 parents 2e0b309 + 32b7926 commit 5012563
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 19.0.8
current_version = 19.0.9
commit = True
tag = True
tag_name = {new_version}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/black.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: 3.11
- uses: psf/black@stable
with:
options: ". --check --line-length 100"
2 changes: 1 addition & 1 deletion .github/workflows/production_install.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.8
python-version: 3.11

- name: Test install
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish_to_pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: 3.11

- name: Install build tools
run: >-
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_and_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: 3.11

- name: Install Trailblazer
run: |
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.8-slim-bullseye
FROM python:3.11-slim-bullseye

ENV GUNICORN_WORKERS=1
ENV GUNICORN_TREADS=1
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Trailblazer is a tool that aims to provide:

## Installation

Trailblazer is written in Python 3.8 and is available on the [Python Package Index][pypi] (PyPI).
Trailblazer is written in Python 3.11 and is available on the [Python Package Index][pypi] (PyPI).

```bash
pip install trailblazer
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def parse_reqs(req_path="./requirements.txt"):

setup(
name=NAME,
version="19.0.8",
version="19.0.9",
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
Expand All @@ -77,7 +77,7 @@ def parse_reqs(req_path="./requirements.txt"):
classifiers=[
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.11",
"Environment :: Console",
],
)
18 changes: 9 additions & 9 deletions trailblazer/constants.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from enum import Enum
from enum import Enum, StrEnum
from typing import Dict, List, Tuple

ONE_MONTH_IN_DAYS: int = 31
Expand All @@ -12,13 +12,13 @@
TYPES: Tuple = ("other", "rna", "tgs", "wes", "wgs", "wts")


class FileFormat(str, Enum):
class FileFormat(StrEnum):
CSV: str = "csv"
JSON: str = "json"
YAML: str = "yaml"


class FileExtension(str, Enum):
class FileExtension(StrEnum):
CSV: str = ".csv"
JSON: str = ".json"
YAML: str = ".yaml"
Expand All @@ -35,7 +35,7 @@ def list(cls) -> List:
return [task.value for task in cls]


class Pipeline(str, Enum):
class Pipeline(StrEnum):
"""Analysis pipeline names."""

BALSAMIC: str = "BALSAMIC"
Expand All @@ -44,7 +44,7 @@ class Pipeline(str, Enum):
SARS_COV_2: str = "SARS-COV-2"


class SlurmSqueueHeader(str, Enum):
class SlurmSqueueHeader(StrEnum):
"""SLURM squeue output headers."""

JOBID: str = "JOBID"
Expand All @@ -55,7 +55,7 @@ class SlurmSqueueHeader(str, Enum):
TIME_LIMIT: str = "TIME_LIMIT"


class SlurmJobStatus(str, Enum):
class SlurmJobStatus(StrEnum):
"""SLURM allowed status."""

CANCELLED: str = "cancelled"
Expand All @@ -75,13 +75,13 @@ def ongoing_statuses(cls) -> Tuple:
return cls.PENDING.value, cls.RUNNING.value, cls.COMPLETING.value


class CharacterFormat(str, Enum):
class CharacterFormat(StrEnum):
"""Define character encoding/decoding to use."""

UNICODE_TRANSFORMATION_FORMAT_8: str = "utf-8"


class TrailblazerStatus(str, Enum):
class TrailblazerStatus(StrEnum):
"""Trailblazer allowed status."""

CANCELLED: str = "cancelled"
Expand All @@ -102,7 +102,7 @@ def ongoing_statuses(cls) -> Tuple[str, str, str, str]:
return cls.PENDING.value, cls.RUNNING.value, cls.COMPLETING.value, cls.ERROR.value


class TrailblazerStatusColor(str, Enum):
class TrailblazerStatusColor(StrEnum):
"""Trailblazer status colors."""

COMPLETED: str = "green"
Expand Down

0 comments on commit 5012563

Please sign in to comment.