Skip to content

Commit

Permalink
Merge pull request #39 from SpeysideHEP/py312
Browse files Browse the repository at this point in the history
Improve compatibility for Python 3.12
  • Loading branch information
jackaraz committed Jun 21, 2024
2 parents 7ffc4f0 + 81d8df3 commit 361a188
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
os: [ubuntu-latest, macos-latest]

steps:
Expand Down
6 changes: 3 additions & 3 deletions .zenodo.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"description": "smooth inference for reinterpretation studies",
"license": "MIT",
"title": "SpeysideHEP/spey: v0.1.9",
"version": "v0.1.9",
"title": "SpeysideHEP/spey: v0.1.10",
"version": "v0.1.10",
"upload_type": "software",
"creators": [
{
Expand Down Expand Up @@ -31,7 +31,7 @@
},
{
"scheme": "url",
"identifier": "https://github.com/SpeysideHEP/spey/tree/v0.1.9",
"identifier": "https://github.com/SpeysideHEP/spey/tree/v0.1.10",
"relation": "isSupplementTo"
},
{
Expand Down
4 changes: 1 addition & 3 deletions docs/known_issues.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,4 @@ Known Issues

* It has been observed that the Scipy version and its compiler, which is used for maximising and profiling the likelihood can have a slight effect on the results.

* NumPy v2.0.0 does not work with autograd, which is used in "default_pdf.XXX" likelihoods. The dependencies are reformulated accordingly.

* There are some dependency issues in some sub-versions of Python 3.12. This is due to deprecated system packages. Updates can be followed in PR `#39 <https://github.com/SpeysideHEP/spey/pull/39>`_.
* NumPy v2.0.0 does not work with autograd, which is used in "default_pdf.XXX" likelihoods. The dependencies are reformulated accordingly.
3 changes: 3 additions & 0 deletions docs/releases/changelog-v0.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ Specific upgrades for the latest release can be found [here](https://github.com/
so numpy version has been limited to less than 2.0.
([#40](https://github.com/SpeysideHEP/spey/pull/40))

* Compatibility issues have been fixed in Python 3.12
([#39](https://github.com/SpeysideHEP/spey/pull/39))

## Contributors

This release contains contributions from (in alphabetical order):
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"semantic_version~=2.10",
"tqdm>=4.64.0",
"requests>=2.31.0",
"setuptools",
]

backend_plugins = [
Expand Down
2 changes: 1 addition & 1 deletion src/spey/_version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Version number (major.minor.patch[-label])"""

__version__ = "0.1.9"
__version__ = "0.1.10-beta"
2 changes: 1 addition & 1 deletion src/spey/base/model_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def fixed_poi_bounds(
def rescale_poi_bounds(
self, allow_negative_signal: bool = True, poi_upper_bound: Optional[float] = None
) -> List[Tuple[float, float]]:
"""
r"""
Rescale bounds for POI.
Args:
Expand Down
7 changes: 6 additions & 1 deletion src/spey/system/webutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,12 @@ def check_updates() -> None:
version = __version__
if pypi_version:
log.debug(f"Curernt version {version}, latest version {pypi_version}.")
if Version(version) < Version(pypi_version):
if "beta" in Version(version).prerelease:
log.warning(
f"A prerelease version of Spey is in use: {version}. "
f"Latest stable version is {pypi_version}."
)
elif Version(version) < Version(pypi_version):
log.warning(
f"A newer version ({pypi_version}) of Spey is available. "
f"Current version is {version}."
Expand Down

0 comments on commit 361a188

Please sign in to comment.