diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6cae72d..fdfec03 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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: diff --git a/.zenodo.json b/.zenodo.json index d2eee48..fceb98b 100644 --- a/.zenodo.json +++ b/.zenodo.json @@ -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": [ { @@ -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" }, { diff --git a/docs/known_issues.rst b/docs/known_issues.rst index 588c573..2ddec87 100644 --- a/docs/known_issues.rst +++ b/docs/known_issues.rst @@ -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 `_. \ No newline at end of file +* NumPy v2.0.0 does not work with autograd, which is used in "default_pdf.XXX" likelihoods. The dependencies are reformulated accordingly. \ No newline at end of file diff --git a/docs/releases/changelog-v0.1.md b/docs/releases/changelog-v0.1.md index fa27482..7770551 100644 --- a/docs/releases/changelog-v0.1.md +++ b/docs/releases/changelog-v0.1.md @@ -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): diff --git a/setup.py b/setup.py index 90c282e..4a5beef 100644 --- a/setup.py +++ b/setup.py @@ -13,6 +13,7 @@ "semantic_version~=2.10", "tqdm>=4.64.0", "requests>=2.31.0", + "setuptools", ] backend_plugins = [ diff --git a/src/spey/_version.py b/src/spey/_version.py index 7980ca5..d0e837f 100644 --- a/src/spey/_version.py +++ b/src/spey/_version.py @@ -1,3 +1,3 @@ """Version number (major.minor.patch[-label])""" -__version__ = "0.1.9" +__version__ = "0.1.10-beta" diff --git a/src/spey/base/model_config.py b/src/spey/base/model_config.py index e178abb..f8b261b 100644 --- a/src/spey/base/model_config.py +++ b/src/spey/base/model_config.py @@ -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: diff --git a/src/spey/system/webutils.py b/src/spey/system/webutils.py index 51b77b2..c766aa6 100644 --- a/src/spey/system/webutils.py +++ b/src/spey/system/webutils.py @@ -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}."