From 52b2c335cf30bf30ebf28e6a80d101885ab12a3e Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 23 Jan 2026 09:22:05 +0000 Subject: [PATCH 1/3] Remove upper bound on plotly dependency to allow version 6.x The caret constraint (^5.18.0) was limiting plotly to <6.0.0, causing dependency conflicts for users who want to use plotly 6.x. The codebase only uses stable, basic plotly APIs (go.Bar and plotly.offline.plot) that are compatible with both plotly 5.x and 6.x. https://claude.ai/code/session_01VuwA6zF7mR9zPdgY2Fn8Nn --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 752924d..09b192c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -48,7 +48,7 @@ python = "^3.9" requests = "^2.31.0" ratelimit = "^2.2.1" click = "^8.1.7" -plotly = "^5.18.0" +plotly = ">=5.18.0" tqdm = "^4.66.1" boto3 = "^1.34.0" botocore = "^1.34.0" From ad11ca6e7ddb74f28889570aa9966512e71523af Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 23 Jan 2026 09:27:19 +0000 Subject: [PATCH 2/3] Remove unused statistics module and plotly dependency The statistics module was orphaned code that was never integrated into the CLI or exported from the package. Removing it eliminates the plotly dependency entirely, reducing install conflicts for users. Removed: - pridepy/statistics/ directory - plotly from pyproject.toml, requirements.txt, environment.yml, recipe/meta.yaml https://claude.ai/code/session_01VuwA6zF7mR9zPdgY2Fn8Nn --- environment.yml | 1 - pridepy/statistics/__init__.py | 0 pridepy/statistics/statistics.py | 48 -------------------------------- pyproject.toml | 1 - recipe/meta.yaml | 1 - requirements.txt | 1 - 6 files changed, 52 deletions(-) delete mode 100644 pridepy/statistics/__init__.py delete mode 100644 pridepy/statistics/statistics.py diff --git a/environment.yml b/environment.yml index 746fe16..1a1d94d 100644 --- a/environment.yml +++ b/environment.yml @@ -9,7 +9,6 @@ dependencies: - click - pytest - setuptools - - plotly - boto3 - botocore - tqdm diff --git a/pridepy/statistics/__init__.py b/pridepy/statistics/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/pridepy/statistics/statistics.py b/pridepy/statistics/statistics.py deleted file mode 100644 index ddd3f98..0000000 --- a/pridepy/statistics/statistics.py +++ /dev/null @@ -1,48 +0,0 @@ -import plotly -import plotly.graph_objs as go - -from pridepy.util.api_handling import Util - -base_url = "https://www.ebi.ac.uk/pride/ws/archive/v3/" - - -class Statistics: - """ - Statistics class supports to produce charts on PRIDE submission statistics. - """ - - @staticmethod - def plot_monthly_submissions(output_filename): - """ - Plot monthly submission as a bar chart and save into a file - :param output_filename: html output file - :return: - """ - - # get monthly submission data from API - request_url = base_url + "stats/submissions-monthly" - headers = {"Accept": "application/JSON"} - - response = Util.get_api_call(request_url, headers) - response_body = response.json() - - # sort data by past to present - data = [ - go.Bar( - x=[d[0] for d in response_body][::-1], - y=[d[1] for d in response_body][::-1], - ) - ] - - # plot the data in a bar chart - plotly.offline.plot(data, filename=output_filename, auto_open=True) - - @staticmethod - def plot_submissions_by_instrument(output_filename): - """ - Plot submissions by instruments to visualise the pecentage of submission from different instruments. - :param output_filename: - :return: html output file - """ - # Todo - pass diff --git a/pyproject.toml b/pyproject.toml index 09b192c..699c831 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -48,7 +48,6 @@ python = "^3.9" requests = "^2.31.0" ratelimit = "^2.2.1" click = "^8.1.7" -plotly = ">=5.18.0" tqdm = "^4.66.1" boto3 = "^1.34.0" botocore = "^1.34.0" diff --git a/recipe/meta.yaml b/recipe/meta.yaml index f4178cc..d6ac116 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -26,7 +26,6 @@ requirements: - click~=8.1.7 - pytest~=8.0.2 - setuptools - - plotly~=5.22.0 - boto3~=1.34.61 - botocore~=1.34.74 - tqdm diff --git a/requirements.txt b/requirements.txt index 6750e0a..3bae141 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,7 +3,6 @@ ratelimit click pytest setuptools -plotly boto3 botocore tqdm From 7b5d5ab1de07c5641942a452fe8e4905df614090 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 23 Jan 2026 09:45:14 +0000 Subject: [PATCH 3/3] Bump version to 0.0.12 https://claude.ai/code/session_01VuwA6zF7mR9zPdgY2Fn8Nn --- pyproject.toml | 2 +- recipe/meta.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 699c831..04f5804 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "pridepy" -version = "0.0.11" +version = "0.0.12" description = "Python Client library for PRIDE Rest API" authors = [ "PRIDE Team ", diff --git a/recipe/meta.yaml b/recipe/meta.yaml index d6ac116..bef43a0 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -1,7 +1,7 @@ # recipe/meta.yaml package: name: pridepy - version: "0.0.8" + version: "0.0.12" source: path: ../