From f40fa18c504d113e57e187bd06488b473ab1cc13 Mon Sep 17 00:00:00 2001 From: mschwoerer <82171591+mschwoer@users.noreply.github.com> Date: Thu, 20 Feb 2025 09:58:07 +0100 Subject: [PATCH 1/2] improve warning --- alphamap/sequenceplot.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/alphamap/sequenceplot.py b/alphamap/sequenceplot.py index 4876440..64a2465 100644 --- a/alphamap/sequenceplot.py +++ b/alphamap/sequenceplot.py @@ -9,6 +9,7 @@ # Cell import os import tempfile +import warnings # Cell import pandas as pd @@ -403,8 +404,8 @@ def plot_single_peptide_traces(df_plot,protein,fasta): HAS_STRUCTUREMAP = True except ModuleNotFoundError: HAS_STRUCTUREMAP = False - print("WARNING: dependency 'structuremap' is not installed.") - + warnings.filterwarnings("module", category=ImportWarning) + warnings.warn("structuremap not installed. If you want to use its functionality, install alphamap with the 'structuremap' extra.", ImportWarning) # Cell def get_quality_category(s): From f56a690f67a6e474a543cd03a473f46ffc94e05f Mon Sep 17 00:00:00 2001 From: mschwoerer <82171591+mschwoer@users.noreply.github.com> Date: Thu, 20 Feb 2025 09:58:32 +0100 Subject: [PATCH 2/2] bump version --- .bumpversion.toml | 2 +- alphamap/__init__.py | 2 +- release/macos/Info.plist | 4 ++-- release/macos/distribution.xml | 2 +- release/windows/alphamap_innoinstaller.iss | 2 +- settings.ini | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.bumpversion.toml b/.bumpversion.toml index d32825e..a1f62c4 100644 --- a/.bumpversion.toml +++ b/.bumpversion.toml @@ -1,5 +1,5 @@ [tool.bumpversion] -current_version = "0.1.13" +current_version = "0.2.0" parse = """(?x) (?P0|[1-9]\\d*)\\. (?P0|[1-9]\\d*)\\. diff --git a/alphamap/__init__.py b/alphamap/__init__.py index 3cb7d95..d3ec452 100644 --- a/alphamap/__init__.py +++ b/alphamap/__init__.py @@ -1 +1 @@ -__version__ = "0.1.13" +__version__ = "0.2.0" diff --git a/release/macos/Info.plist b/release/macos/Info.plist index cad580e..9793597 100644 --- a/release/macos/Info.plist +++ b/release/macos/Info.plist @@ -9,9 +9,9 @@ CFBundleIconFile alpha_logo.icns CFBundleIdentifier - alphamap.0.1.13 + alphamap.0.2.0 CFBundleShortVersionString - 0.1.13 + 0.2.0 CFBundleInfoDictionaryVersion 6.0 CFBundleName diff --git a/release/macos/distribution.xml b/release/macos/distribution.xml index b89911b..39dbe5d 100755 --- a/release/macos/distribution.xml +++ b/release/macos/distribution.xml @@ -1,6 +1,6 @@ - AlphaMap 0.1.13 + AlphaMap 0.2.0 diff --git a/release/windows/alphamap_innoinstaller.iss b/release/windows/alphamap_innoinstaller.iss index a8ab965..a0528ca 100644 --- a/release/windows/alphamap_innoinstaller.iss +++ b/release/windows/alphamap_innoinstaller.iss @@ -5,7 +5,7 @@ ; so all paths are given relative to the location of this .iss file. #define MyAppName "AlphaMap" -#define MyAppVersion "0.1.13" +#define MyAppVersion "0.2.0" #define MyAppPublisher "Max Planck Institute of Biochemistry, Mann department" #define MyAppURL "https://github.com/MannLabs/alphamap" #define MyAppExeName "alphamap_gui.exe" diff --git a/settings.ini b/settings.ini index 2d17ca9..1162d74 100644 --- a/settings.ini +++ b/settings.ini @@ -13,7 +13,7 @@ user = ibludau # author_email = email@example.com copyright = Mann Labs branch = master -version = 0.1.13 +version = 0.2.0 min_python = 3.8 audience = Developers language = English