Skip to content

Commit

Permalink
fix: Pin codemetapy to v0.3.5 for --no-extras functionality (#1995)
Browse files Browse the repository at this point in the history
* Pin codemetapy to v0.3.5 in the 'current release' test workflow to keep the
  `--no-extras` CLI API option.
   - c.f. proycon/codemetapy#24
* Update lower bounds for scipy and click in codemeta.json and add lower bounds
  for importlib-resources and typing-extensions.
  • Loading branch information
matthewfeickert authored Sep 9, 2022
1 parent ee183eb commit c165c69
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ jobs:
run: |
pytest tests/test_public_api.py
# FIXME: c.f. https://github.com/proycon/codemetapy/issues/24
- name: Verify requirements in codemeta.json
run: |
python -m pip install jq "codemetapy>=0.3.4"
python -m pip install jq "codemetapy==0.3.5"
codemetapy --no-extras pyhf > codemeta_generated.json
diff <(jq -S .softwareRequirements codemeta_generated.json) <(jq -S .softwareRequirements codemeta.json)
diff <(jq -S .softwareRequirements codemeta.json) <(jq -S .softwareRequirements codemeta_generated.json)
32 changes: 29 additions & 3 deletions codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"url": "https://pypi.org"
},
"runtimePlatform": "Python 3",
"version": ">=1.4.1"
"version": ">=1.1.0"
},
{
"@type": "SoftwareApplication",
Expand All @@ -57,7 +57,7 @@
"url": "https://pypi.org"
},
"runtimePlatform": "Python 3",
"version": ">=7.0"
"version": ">=8.0.0"
},
{
"@type": "SoftwareApplication",
Expand Down Expand Up @@ -110,6 +110,32 @@
},
"runtimePlatform": "Python 3",
"version": ">=5.1"
},
{
"@type": "SoftwareApplication",
"identifier": "importlib-resources",
"name": "importlib-resources",
"provider": {
"@id": "https://pypi.org",
"@type": "Organization",
"name": "The Python Package Index",
"url": "https://pypi.org"
},
"runtimePlatform": "Python 3",
"version": ">=1.3.0"
},
{
"@type": "SoftwareApplication",
"identifier": "typing-extensions",
"name": "typing-extensions",
"provider": {
"@id": "https://pypi.org",
"@type": "Organization",
"name": "The Python Package Index",
"url": "https://pypi.org"
},
"runtimePlatform": "Python 3",
"version": ">=3.7.4.3"
}
],
"audience": [
Expand All @@ -129,5 +155,5 @@
"keywords": "physics fitting numpy scipy tensorflow pytorch jax",
"developmentStatus": "4 - Beta",
"applicationCategory": "Scientific/Engineering, Scientific/Engineering :: Physics",
"programmingLanguage": "Python 3, Python 3.7, Python 3.8, Python 3.9, Python 3.10, Python Implementation CPython"
"programmingLanguage": "Python 3, Python 3 Only, Python 3.7, Python 3.8, Python 3.9, Python 3.10, Python Implementation CPython"
}

0 comments on commit c165c69

Please sign in to comment.