Skip to content

Commit

Permalink
Updated codemeta.json
Browse files Browse the repository at this point in the history
  • Loading branch information
apdavison committed Oct 9, 2024
1 parent aa5fc53 commit 00e1d94
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 11 deletions.
25 changes: 15 additions & 10 deletions codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
"@context": "https://doi.org/10.5063/schema/codemeta-2.0",
"@type": "SoftwareSourceCode",
"license": "https://spdx.org/licenses/BSD-3-Clause.html",
"codeRepository": "https://github.com/HumanBrainProject/hbp-validation-client",
"dateModified": "2024-09-10",
"downloadUrl": "https://files.pythonhosted.org/packages/0f/ec/d98fc9304db8416262578e71d19aaf795713dfccb3ab4f80e1ab145829ec/hbp_validation_framework-0.8.3.tar.gz",
"issueTracker": "https://github.com/HumanBrainProject/hbp-validation-client/issues",
"name": "hbp-validation-framework",
"version": "0.8.3",
"identifier": "https://pypi.org/project/hbp-validation-framework/0.8.3/",
"description": "Python client for the EBRAINS Validation Framework web services",
"codeRepository": "https://github.com/HumanBrainProject/ebrains-validation-client",
"dateModified": "2024-10-09",
"downloadUrl": "https://files.pythonhosted.org/packages/be/17/e483a75b4b94dcc69e8b1be21ef11667ec74c8d8d1e7858bbeee71d62d1e/ebrains_validation_framework-0.9.1.tar.gz",
"issueTracker": "https://github.com/HumanBrainProject/ebrains-validation-client/issues",
"name": "ebrains-validation-framework",
"version": "0.9.1",
"identifier": "https://pypi.org/project/ebrains-validation-framework/0.9.1/",
"description": "Python client for the EBRAINS Validation Framework web services.",
"applicationCategory": "neuroscience",
"funding": "https://cordis.europa.eu/project/id/945539",
"developmentStatus": "active",
Expand All @@ -26,9 +26,14 @@
"Windows",
"macOS"
],
"softwareRequirements": null,
"softwareRequirements": [
"Python >=3.8",
"requests",
"nameparser",
"ebrains-drive"
],
"relatedLink": [
"https://hbp-validation-client.readthedocs.io"
"https://ebrains-validation-client.readthedocs.io"
],
"author": [
{
Expand Down
5 changes: 4 additions & 1 deletion docs/build_codemeta.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,17 @@ def generate_for_version(version): # e.g. version="0.9.0"
else:
requirements = None

for url in pypi_metadata["urls"]:
if url["url"].endswith(".tar.gz"):
download_url = url["url"]
return {
"@context": "https://doi.org/10.5063/schema/codemeta-2.0",
"@type": "SoftwareSourceCode",
"license": "https://spdx.org/licenses/BSD-3-Clause.html",
"codeRepository": "https://github.com/HumanBrainProject/ebrains-validation-client",
# "contIntegration": "https://gitlab.ebrains.eu/model-validation/todo",
"dateModified": date_parser.parse(pypi_metadata["urls"][0]["upload_time"]).date().isoformat(),
"downloadUrl": pypi_metadata["urls"][0]["url"],
"downloadUrl": download_url,
"issueTracker": "https://github.com/HumanBrainProject/ebrains-validation-client/issues",
"name": "ebrains-validation-framework",
"version": version,
Expand Down

0 comments on commit 00e1d94

Please sign in to comment.