From 1bb4383a1453277ab8e8de652301e04ff32b3a8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20M=C3=A1tl?= Date: Thu, 27 Jun 2024 16:30:31 +0200 Subject: [PATCH] 0.1.16 --- developers_chamber/bin/pydev.py | 7 ++++--- developers_chamber/scripts/gitlab.py | 2 +- setup.py | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/developers_chamber/bin/pydev.py b/developers_chamber/bin/pydev.py index 1c15221..4b19a89 100644 --- a/developers_chamber/bin/pydev.py +++ b/developers_chamber/bin/pydev.py @@ -3,6 +3,7 @@ import os import sys from pathlib import Path +import imp import click_completion import coloredlogs @@ -50,18 +51,18 @@ from developers_chamber.scripts.version import * from developers_chamber.scripts.project import * -from developers_chamber.scripts.init_aliasses import * click_completion.init() - # Import external scripts for base_path in (Path.home(), Path.cwd()): if (base_path / ".pydev" / "scripts").exists(): sys.path.append(base_path / ".pydev") - import scripts + imp.load_source('*', str(base_path / ".pydev" / "scripts" / "__init__.py")) +from developers_chamber.scripts.init_aliasses import * + coloredlogs.install(milliseconds=True) diff --git a/developers_chamber/scripts/gitlab.py b/developers_chamber/scripts/gitlab.py index 3769288..d1d57a8 100644 --- a/developers_chamber/scripts/gitlab.py +++ b/developers_chamber/scripts/gitlab.py @@ -175,7 +175,7 @@ def run_job(api_url, token, project, branch, variables): """ Run a job in a GitLab project. """ - variables = dict([var.split('=') for var in variables.split(',')]) if variables else [] + variables = dict([var.split('=') for var in variables.split(',')]) if variables else {} ci_job_url = run_job_func(api_url, token, project, f'refs/heads/{branch}', variables) click.echo(f"CI job was started: {ci_job_url}") \ No newline at end of file diff --git a/setup.py b/setup.py index 0e622d1..91b5975 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setup( name="developers-chamber", - version="0.1.15", + version="0.1.16", description="A small plugin which help with development, deployment, git", keywords="django, skripts, easy live, git, bitbucket, Jira", author="Druids team",