Skip to content

Commit c165c69

Browse files
fix: Pin codemetapy to v0.3.5 for --no-extras functionality (#1995)
* 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.
1 parent ee183eb commit c165c69

File tree

2 files changed

+32
-5
lines changed

2 files changed

+32
-5
lines changed

.github/workflows/release_tests.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,9 @@ jobs:
4242
run: |
4343
pytest tests/test_public_api.py
4444
45+
# FIXME: c.f. https://github.com/proycon/codemetapy/issues/24
4546
- name: Verify requirements in codemeta.json
4647
run: |
47-
python -m pip install jq "codemetapy>=0.3.4"
48+
python -m pip install jq "codemetapy==0.3.5"
4849
codemetapy --no-extras pyhf > codemeta_generated.json
49-
diff <(jq -S .softwareRequirements codemeta_generated.json) <(jq -S .softwareRequirements codemeta.json)
50+
diff <(jq -S .softwareRequirements codemeta.json) <(jq -S .softwareRequirements codemeta_generated.json)

codemeta.json

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"url": "https://pypi.org"
4545
},
4646
"runtimePlatform": "Python 3",
47-
"version": ">=1.4.1"
47+
"version": ">=1.1.0"
4848
},
4949
{
5050
"@type": "SoftwareApplication",
@@ -57,7 +57,7 @@
5757
"url": "https://pypi.org"
5858
},
5959
"runtimePlatform": "Python 3",
60-
"version": ">=7.0"
60+
"version": ">=8.0.0"
6161
},
6262
{
6363
"@type": "SoftwareApplication",
@@ -110,6 +110,32 @@
110110
},
111111
"runtimePlatform": "Python 3",
112112
"version": ">=5.1"
113+
},
114+
{
115+
"@type": "SoftwareApplication",
116+
"identifier": "importlib-resources",
117+
"name": "importlib-resources",
118+
"provider": {
119+
"@id": "https://pypi.org",
120+
"@type": "Organization",
121+
"name": "The Python Package Index",
122+
"url": "https://pypi.org"
123+
},
124+
"runtimePlatform": "Python 3",
125+
"version": ">=1.3.0"
126+
},
127+
{
128+
"@type": "SoftwareApplication",
129+
"identifier": "typing-extensions",
130+
"name": "typing-extensions",
131+
"provider": {
132+
"@id": "https://pypi.org",
133+
"@type": "Organization",
134+
"name": "The Python Package Index",
135+
"url": "https://pypi.org"
136+
},
137+
"runtimePlatform": "Python 3",
138+
"version": ">=3.7.4.3"
113139
}
114140
],
115141
"audience": [
@@ -129,5 +155,5 @@
129155
"keywords": "physics fitting numpy scipy tensorflow pytorch jax",
130156
"developmentStatus": "4 - Beta",
131157
"applicationCategory": "Scientific/Engineering, Scientific/Engineering :: Physics",
132-
"programmingLanguage": "Python 3, Python 3.7, Python 3.8, Python 3.9, Python 3.10, Python Implementation CPython"
158+
"programmingLanguage": "Python 3, Python 3 Only, Python 3.7, Python 3.8, Python 3.9, Python 3.10, Python Implementation CPython"
133159
}

0 commit comments

Comments
 (0)