Skip to content

Commit 906478b

Browse files
authored
Merge branch 'master' into docs/add-v0.7.0-release-notes
2 parents 67827f8 + c165c69 commit 906478b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+834
-275
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)

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,23 +38,23 @@ repos:
3838
- id: absolufy-imports
3939

4040
- repo: https://github.com/psf/black
41-
rev: 22.6.0
41+
rev: 22.8.0
4242
hooks:
4343
- id: black-jupyter
4444

4545
- repo: https://github.com/asottile/blacken-docs
4646
rev: v1.12.1
4747
hooks:
4848
- id: blacken-docs
49-
additional_dependencies: [black==22.6.0]
49+
additional_dependencies: [black==22.8.0]
5050

5151
- repo: https://github.com/asottile/yesqa
5252
rev: v1.4.0
5353
hooks:
5454
- id: yesqa
5555

5656
- repo: https://github.com/PyCQA/flake8
57-
rev: 5.0.2
57+
rev: 5.0.4
5858
hooks:
5959
- id: flake8
6060
args: ["--count", "--statistics"]
@@ -81,7 +81,7 @@ repos:
8181
additional_dependencies: [pyupgrade==2.37.3]
8282

8383
- repo: https://github.com/codespell-project/codespell
84-
rev: v2.1.0
84+
rev: v2.2.1
8585
hooks:
8686
- id: codespell
8787
files: ^.*\.(py|md|rst)$

.zenodo.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"description": "pure-Python HistFactory implementation with tensors and autodiff",
33
"license": "Apache-2.0",
4-
"title": "scikit-hep/pyhf: v0.7.0rc2",
5-
"version": "v0.7.0rc2",
4+
"title": "scikit-hep/pyhf: v0.7.0rc3",
5+
"version": "v0.7.0rc3",
66
"upload_type": "software",
77
"creators": [
88
{
@@ -36,7 +36,7 @@
3636
"related_identifiers": [
3737
{
3838
"scheme": "url",
39-
"identifier": "https://github.com/scikit-hep/pyhf/tree/v0.7.0rc2",
39+
"identifier": "https://github.com/scikit-hep/pyhf/tree/v0.7.0rc3",
4040
"relation": "isSupplementTo"
4141
}
4242
]

CITATION.cff

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ authors:
1414
given-names: "Giordon"
1515
orcid: "https://orcid.org/0000-0001-6616-3433"
1616
affiliation: "SCIPP, University of California, Santa Cruz"
17-
title: "pyhf: v0.7.0rc2"
18-
version: 0.7.0rc2
17+
title: "pyhf: v0.7.0rc3"
18+
version: 0.7.0rc3
1919
doi: 10.5281/zenodo.1169739
20-
repository-code: "https://github.com/scikit-hep/pyhf/releases/tag/v0.7.0rc2"
21-
url: "https://pyhf.readthedocs.io/en/v0.7.0rc2/"
20+
repository-code: "https://github.com/scikit-hep/pyhf/releases/tag/v0.7.0rc3"
21+
url: "https://pyhf.readthedocs.io/en/v0.7.0rc3/"
2222
keywords:
2323
- python
2424
- physics

README.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -309,11 +309,11 @@ the preferred BibTeX entry for citation of ``pyhf`` includes both the
309309
310310
@software{pyhf,
311311
author = {Lukas Heinrich and Matthew Feickert and Giordon Stark},
312-
title = "{pyhf: v0.7.0rc2}",
313-
version = {0.7.0rc2},
312+
title = "{pyhf: v0.7.0rc3}",
313+
version = {0.7.0rc3},
314314
doi = {10.5281/zenodo.1169739},
315315
url = {https://doi.org/10.5281/zenodo.1169739},
316-
note = {https://github.com/scikit-hep/pyhf/releases/tag/v0.7.0rc2}
316+
note = {https://github.com/scikit-hep/pyhf/releases/tag/v0.7.0rc3}
317317
}
318318
319319
@article{pyhf_joss,
@@ -360,7 +360,7 @@ and grant `OAC-1450377 <https://www.nsf.gov/awardsearch/showAward?AWD_ID=1450377
360360
:target: https://scikit-hep.org/
361361
.. |NSF Award Number| image:: https://img.shields.io/badge/NSF-1836650-blue.svg
362362
:target: https://nsf.gov/awardsearch/showAward?AWD_ID=1836650
363-
.. |Docs from latest| image:: https://img.shields.io/badge/docs-v0.7.0rc2-blue.svg
363+
.. |Docs from latest| image:: https://img.shields.io/badge/docs-v0.7.0rc3-blue.svg
364364
:target: https://pyhf.readthedocs.io/
365365
.. |Docs from master| image:: https://img.shields.io/badge/docs-master-blue.svg
366366
:target: https://scikit-hep.github.io/pyhf
@@ -375,7 +375,7 @@ and grant `OAC-1450377 <https://www.nsf.gov/awardsearch/showAward?AWD_ID=1450377
375375
:target: https://github.com/conda-forge/pyhf-feedstock
376376
.. |Supported Python versions| image:: https://img.shields.io/pypi/pyversions/pyhf.svg
377377
:target: https://pypi.org/project/pyhf/
378-
.. |Docker Hub pyhf| image:: https://img.shields.io/badge/pyhf-v0.7.0rc2-blue?logo=Docker
378+
.. |Docker Hub pyhf| image:: https://img.shields.io/badge/pyhf-v0.7.0rc3-blue?logo=Docker
379379
:target: https://hub.docker.com/r/pyhf/pyhf/tags
380380
.. |Docker Hub pyhf CUDA| image:: https://img.shields.io/badge/pyhf-CUDA-blue?logo=Docker
381381
:target: https://hub.docker.com/r/pyhf/cuda/tags

codemeta.json

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"@type": "SoftwareSourceCode",
77
"identifier": "pyhf",
88
"name": "pyhf",
9-
"version": "0.7.0rc2",
9+
"version": "0.7.0rc3",
1010
"description": "pure-Python HistFactory implementation with tensors and autodiff",
1111
"license": "Apache, OSI Approved :: Apache Software License",
1212
"author": [
@@ -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
}

docs/_templates/autosummary/class.rst

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@
1515
.. autoattribute:: {{ name }}.{{ item }}
1616
{%- endfor %}
1717
{% endif %}
18+
{% if name == 'numpy_backend' %}
19+
{% if 'array_type' in members %}
20+
.. autoattribute:: {{ name }}.array_type
21+
{% endif %}
22+
{% if 'array_subtype' in members %}
23+
.. autoattribute:: {{ name }}.array_subtype
24+
{% endif %}
25+
{% endif %}
1826
{% endblock %}
1927

2028
{% block methods %}
@@ -23,7 +31,7 @@
2331
.. rubric:: {{ _('Methods') }}
2432

2533
{% for item in members %}
26-
{% if item not in attributes and item not in inherited_members and not item.startswith('__') %}
34+
{% if item not in attributes and item not in inherited_members and not item.startswith('__') and item not in ['array_type', 'array_subtype'] %}
2735
.. automethod:: {{ name }}.{{ item }}
2836
{% endif %}
2937
{%- endfor %}

docs/api.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ Making Models from PDFs
4444

4545
~pdf.Model
4646
~pdf._ModelConfig
47+
~mixins._ChannelSummaryMixin
4748
~workspace.Workspace
4849
~patchset.PatchSet
4950
~patchset.Patch

docs/contributors.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,4 @@ Contributors include:
2929
- Aryan Roy
3030
- Graeme Watt
3131
- Jerry Ling
32+
- Nathan Simpson

0 commit comments

Comments
 (0)