-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #690 from KnowledgeCaptureAndDiscovery/dev
- Loading branch information
Showing
6 changed files
with
883 additions
and
779 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "somef" | ||
version = "0.9.5" | ||
version = "0.9.6" | ||
description = "SOftware Metadata Extraction Framework: A tool for automatically extracting relevant software information from readme files." | ||
authors = ["Daniel Garijo <[email protected]>"] | ||
packages = [ | ||
|
@@ -39,7 +39,7 @@ nbformat = "^5.9.2" | |
markdown = "^3.5.2" | ||
rdflib-jsonld = "^0.6.2" | ||
requests = "^2.31.0" | ||
scikit-learn = "^1.3.2" | ||
scikit-learn = "1.3.2" | ||
|
||
[tool.poetry.dev-dependencies] | ||
|
||
|
@@ -51,4 +51,4 @@ homepage = "https://github.com/KnowledgeCaptureAndDiscovery/somef" | |
|
||
[build-system] | ||
requires = ["poetry-core>=1.1.10"] | ||
build-backend = "poetry.core.masonry.api" | ||
build-backend = "poetry.core.masonry.api" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import os | ||
import json | ||
import unittest | ||
from pathlib import Path | ||
from .. import somef_cli | ||
from ..utils import constants | ||
|
||
test_data_path = str(Path(__file__).parent / "test_data") + os.path.sep | ||
|
||
class TestGitlabSelfHosted(unittest.TestCase): | ||
|
||
def test_gitlab_self_hosted(self): | ||
"""Checks if SOMEF works against server self_hosted Gitlab . Full analysis""" | ||
somef_cli.run_cli(threshold=0.8, | ||
repo_url="https://gitlab.in2p3.fr/gammalearn/gammalearn", | ||
output=test_data_path + "test-self-hosted-gitlab.json", | ||
pretty=True, | ||
readme_only=False) | ||
text_file = open(test_data_path + "test-self-hosted-gitlab.json", "r") | ||
data = text_file.read() | ||
text_file.close() | ||
json_content = json.loads(data) | ||
download = json_content[constants.CAT_DOWNLOAD_URL] | ||
assert download is not None | ||
os.remove(test_data_path + "test-self-hosted-gitlab.json") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters