From d67fb8a71b7fe894709ae478b1c0ca24d6064375 Mon Sep 17 00:00:00 2001 From: "Jurriaan H. Spaaks" Date: Sun, 13 Sep 2020 14:09:31 +0200 Subject: [PATCH 1/2] gitlab url check was using the wrong string; maybe it's time to write some tests... --- howfairis/HowFairIsChecker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/howfairis/HowFairIsChecker.py b/howfairis/HowFairIsChecker.py index a2dfbafa..732da386 100644 --- a/howfairis/HowFairIsChecker.py +++ b/howfairis/HowFairIsChecker.py @@ -70,7 +70,7 @@ def _deconstruct_url(self): self.platform = Platform.GITLAB self.raw_url_format_string = "https://gitlab.com/{0}/{1}/-/raw/{2}{3}/{4}" try: - self.owner, self.repo = self.url.replace("https://github.com", "").strip("/").split("/")[:2] + self.owner, self.repo = self.url.replace("https://gitlab.com", "").strip("/").split("/")[:2] except ValueError as e: raise ValueError("Bad value for input argument URL.") from e From fb242410a73c5fc3a0ab9dbafc6648ace8a1c7de Mon Sep 17 00:00:00 2001 From: "Jurriaan H. Spaaks" Date: Sun, 13 Sep 2020 14:16:42 +0200 Subject: [PATCH 2/2] bumped patch to 0.9.1 --- CITATION.cff | 2 +- howfairis/__version__.py | 2 +- setup.cfg | 2 +- setup.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CITATION.cff b/CITATION.cff index 3e6cb444..632d234f 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -44,5 +44,5 @@ license: "Apache-2.0" message: "If you use this software, please cite it using these metadata." repository-code: "https://github.com/fair-software/howfairis" title: howfairis -version: "0.9.0" +version: "0.9.1" ... diff --git a/howfairis/__version__.py b/howfairis/__version__.py index 3e2f46a3..d69d16e9 100644 --- a/howfairis/__version__.py +++ b/howfairis/__version__.py @@ -1 +1 @@ -__version__ = "0.9.0" +__version__ = "0.9.1" diff --git a/setup.cfg b/setup.cfg index da2365bb..383c0f7f 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 0.9.0 +current_version = 0.9.1 [bumpversion:file:howfairis/__version__.py] search = __version__ = "{current_version}" diff --git a/setup.py b/setup.py index 887dfbbc..2f17535b 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ entry_points={ "console_scripts": ["howfairis=howfairis.cli:cli"], }, - version="0.9.0", + version="0.9.1", description="Python package to analyze compliance with fair-software.eu recommendations", long_description=readme + "\n\n", author="https://github.com/jspaaks",