Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.12
3.10
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ You will need to have an account on Seqera Platform (see [Plans and pricing](htt

1. [Seqera Platform CLI (`>=0.11.0`)](https://github.com/seqeralabs/tower-cli#1-installation)

2. [Python (`>=3.8`)](https://www.python.org/downloads/)
2. [Python (`>=3.10`)](https://www.python.org/downloads/)

3. [PyYAML](https://pypi.org/project/PyYAML/)

Expand Down
10 changes: 8 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "seqerakit"
version = "0.5.6"
description = "Automate creation of Seqera Platform resources"
readme = "README.md"
requires-python = ">=3.8,<4"
requires-python = ">=3.10,<4"
keywords = [
"nextflow",
"bioinformatics",
Expand All @@ -20,7 +20,13 @@ authors = [
# TODO
maintainers = [{ name = "Esha Joshi", email = "esha.joshi@seqera.io" }]
# TODO https://pypi.org/classifiers/
classifiers = ["License :: OSI Approved :: Apache Software License"]
classifiers = [
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = ["pyyaml>=6.0.0", "typer[all]>=0.15.1"]
[project.urls]
Homepage = "https://seqera.io/"
Expand Down
26 changes: 13 additions & 13 deletions seqerakit/cli.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2023, Seqera
# Copyright 2025, Seqera
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -19,15 +19,15 @@
"""

import logging
import sys
import os
import sys
from enum import Enum
from typing import Optional, List
from pathlib import Path

import typer
import yaml # noqa: F401

from seqerakit import seqeraplatform, helper, overwrite
from seqerakit import helper, overwrite, seqeraplatform
from seqerakit.seqeraplatform import (
ResourceExistsError,
ResourceNotFoundError,
Expand Down Expand Up @@ -206,7 +206,7 @@ def find_yaml_files(path_list=None):

@app.command()
def main(
yaml: Optional[List[str]] = typer.Argument(
yaml_files: list[str] | None = typer.Argument(
None,
help="One or more YAML files with Seqera Platform resource definitions.",
),
Expand Down Expand Up @@ -235,7 +235,7 @@ def main(
"-d",
help="Print the commands that would be executed.",
),
version: Optional[bool] = typer.Option(
version: bool | None = typer.Option(
None,
"--version",
"-v",
Expand All @@ -248,30 +248,30 @@ def main(
"--delete",
help="Recursively delete resources defined in the YAML files.",
),
cli_args: Optional[List[str]] = typer.Option(
cli_args: list[str] | None = typer.Option(
None,
"--cli",
help="Additional Seqera Platform CLI specific options to be passed, "
"enclosed in double quotes (e.g. '--cli=\"--insecure\"'). Can be specified multiple times.",
),
targets: Optional[str] = typer.Option(
targets: str | None = typer.Option(
None,
"--targets",
help="Specify the resources to be targeted for creation in a YAML file through "
"a comma-separated list (e.g. '--targets=teams,participants').",
),
target: Optional[List[str]] = typer.Option(
target: list[str] | None = typer.Option(
None,
"--target",
help="Specify a resource and optionally a name to target "
"(e.g. '--target pipelines=my-pipeline'). Can be specified multiple times.",
),
env_file: Optional[str] = typer.Option(
env_file: str | None = typer.Option(
None,
"--env-file",
help="Path to a YAML file containing environment variables for configuration.",
),
on_exists: Optional[str] = typer.Option(
on_exists: str | None = typer.Option(
None,
"--on-exists",
help="Globally specifies the action to take if a resource already exists.",
Expand Down Expand Up @@ -340,7 +340,7 @@ def main(
logging.error(e)
raise typer.Exit(code=1)

yaml_files = find_yaml_files(yaml)
yaml_files_list = find_yaml_files(yaml_files)

block_manager = BlockParser(
sp,
Expand All @@ -361,7 +361,7 @@ def main(
# and get a dictionary of command line arguments
try:
cmd_args_dict = helper.parse_all_yaml(
yaml_files, destroy=delete, targets=targets, target=target, sp=sp
yaml_files_list, destroy=delete, targets=targets, target=target, sp=sp
)
for block, args_list in cmd_args_dict.items():
for args in args_list:
Expand Down
2 changes: 1 addition & 1 deletion seqerakit/computeenvs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2023, Seqera
# Copyright 2025, Seqera
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion seqerakit/helper.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2023, Seqera
# Copyright 2025, Seqera
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion seqerakit/overwrite.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2023, Seqera
# Copyright 2025, Seqera
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion seqerakit/pipelines.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2023, Seqera
# Copyright 2025, Seqera
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion seqerakit/seqeraplatform.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2023, Seqera
# Copyright 2025, Seqera
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion seqerakit/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2023, Seqera
# Copyright 2025, Seqera
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2023, Seqera
# Copyright 2025, Seqera
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
Loading
Loading