Skip to content

Commit

Permalink
Merge branch 'master' into feat/assertExpectedDataAPI
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewfeickert authored May 18, 2021
2 parents a952d34 + 70f100c commit 62a7a0c
Show file tree
Hide file tree
Showing 13 changed files with 27 additions and 21 deletions.
4 changes: 0 additions & 4 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ current_version = 0.6.1
commit = True
tag = True

[bumpversion:file:setup.cfg]

[bumpversion:file:src/pyhf/version.py]

[bumpversion:file:src/pyhf/utils.py]

[bumpversion:file:README.rst]
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/dependencies-head.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
Expand All @@ -43,6 +45,8 @@ jobs:

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
Expand All @@ -69,6 +73,8 @@ jobs:

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
Expand All @@ -94,6 +100,8 @@ jobs:

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
Expand All @@ -119,6 +127,8 @@ jobs:

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2

with:
fetch-depth: 0
- name: Prepare
id: prep
run: |
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/lower-bound-requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
src/pyhf/version.py
MANIFEST
build
dist
Expand Down
3 changes: 1 addition & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
import sys
from pkg_resources import get_distribution

sys.path.insert(0, str(Path('../src').resolve()))
sys.path.insert(1, str(Path('./exts').resolve()))
sys.path.insert(0, str(Path('./exts').resolve()))


def setup(app):
Expand Down
6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
[build-system]
# Minimum requirements for the build system to execute.
requires = ["wheel", "setuptools>=30.3.0", "attrs>=17.1", "setuptools_scm"]
requires = ["wheel", "setuptools>=30.3.0", "attrs>=17.1", "setuptools_scm[toml]>=3.4"]
build-backend = "setuptools.build_meta"

[tool.setuptools_scm]
write_to = "src/pyhf/version.py"
local_scheme = "no-local-version"

[tool.black]
line-length = 88
target-version = ['py37', 'py38']
Expand Down
4 changes: 0 additions & 4 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[metadata]
name = pyhf
version = 0.6.1
description = pure-Python HistFactory implementation with tensors and autodiff
long_description = file: README.rst
long_description_content_type = text/x-rst
Expand All @@ -27,9 +26,6 @@ classifiers =
Programming Language :: Python :: Implementation :: CPython

[options]
setup_requires =
setuptools_scm>=1.15.0
setuptools_scm_git_archive>=1.0
package_dir =
= src
packages = find:
Expand Down
2 changes: 1 addition & 1 deletion src/pyhf/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from .tensor import BackendRetriever as tensor
from .optimize import OptimizerRetriever as optimize
from .version import __version__
from .version import version as __version__
from .exceptions import InvalidBackend, InvalidOptimizer, Unsupported
from . import events

Expand Down
2 changes: 1 addition & 1 deletion src/pyhf/cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import click

from ..version import __version__
from .. import __version__
from . import rootio, spec, infer, patchset, complete
from ..contrib import cli as contrib
from .. import utils
Expand Down
5 changes: 0 additions & 5 deletions src/pyhf/version.py

This file was deleted.

4 changes: 2 additions & 2 deletions tests/test_public_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def model_setup(backend):
np.random.seed(0)
n_bins = 100
# TODO: Simplify after pyhf v0.6.2 released
if tuple(int(part) for part in pyhf.__version__.split(".")) < (0, 6, 2):
if tuple(int(part) for part in pyhf.__version__.split(".")[:3]) < (0, 6, 2):
model = pyhf.simplemodels.hepdata_like(
[10] * n_bins, [50] * n_bins, [1] * n_bins
)
Expand Down Expand Up @@ -211,7 +211,7 @@ def test_pdf_batched_deprecated_api(backend):

# TODO: Remove skipif after pyhf v0.6.2 released
@pytest.mark.skipif(
tuple(int(part) for part in pyhf.__version__.split(".")) < (0, 6, 2),
tuple(int(part) for part in pyhf.__version__.split(".")[:3]) < (0, 6, 2),
reason="requires pyhf v0.6.2+",
)
def test_pdf_batched(backend):
Expand Down

0 comments on commit 62a7a0c

Please sign in to comment.