Skip to content

Commit 1238d37

Browse files
authored
3.2.2 (#247)
finalize version 3.2.2, use `setuptools-scm` to set the version number from the git tag
1 parent 411ce33 commit 1238d37

File tree

4 files changed

+32
-7
lines changed

4 files changed

+32
-7
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
uncertainties-py23/
1+
uncertainties/version.py
22
*.pyc
33
build
44
doc/_build

CHANGES.rst

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,28 @@
11
Change Log
22
===================
33

4+
3.2.2 2024-July-08
5+
-----------------------
6+
7+
Fixes:
8+
9+
- fix support for Numpy 2.0 (#245). Note: `uncertainties.unumpy` still
10+
provides `umatrix` based on `numpy.matrix`. With `numpy.matrix`
11+
discouraged, `umatrix` is too, and will be dropped in a future release.
12+
- fix automated running and reporting of code coverage with tests (#246)
13+
- use `setuptools-scm` for setting version number from git tag (#247)
14+
15+
3.2.1 2024-June-08
16+
-----------------------
17+
18+
Fixes for build, deployment, and docs
19+
20+
- Use explicit package list to make sure unumpy is included (#232)
21+
- Use setuptools-scm to make sure all files are in the source distribution (#235)
22+
- updates to configuration for and links to readthedocs documentation. (#239)
23+
- use double backticks more uniformly in docs. (#240)
24+
- fixes to README.rst to allow it to render (needed for PyPI upload) (#243)
25+
426
3.2.0 2024-June-02
527
-----------------------
628

pyproject.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,14 @@
22
requires = ["setuptools>=64", "setuptools-scm>=8"]
33
build-backend = "setuptools.build_meta"
44

5+
[tool.setuptools_scm]
6+
write_to = "uncertainties/version.py"
7+
version_scheme = "post-release"
8+
9+
510
[project]
611
name = "uncertainties"
7-
version = "3.2.1"
12+
dynamic = ["version"]
813
authors = [
914
{name = "Eric O. LEBIGOT (EOL)", email = "eric.lebigot@normalesup.org"},
1015
]
@@ -48,7 +53,6 @@ dependencies = []
4853
[tool.setuptools]
4954
packages = ["uncertainties", "uncertainties.unumpy"]
5055

51-
[tool.setuptools_scm]
5256

5357
[project.urls]
5458
Documentation = "https://uncertainties.readthedocs.io/"

uncertainties/__init__.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -221,12 +221,11 @@
221221
This software is released under the BSD license.
222222
'''
223223

224-
from builtins import map
225224
from .core import *
226225
from .core import __all__ # For a correct help(uncertainties)
227226

228-
# Numerical version:
229-
__version_info__ = (3, 2, 1)
230-
__version__ = '.'.join(map(str, __version_info__))
227+
from .version import __version__, __version_tuple__
228+
# for backward compatibility
229+
__version_info__ = __version_tuple__
231230

232231
__author__ = 'Eric O. LEBIGOT (EOL) <eric.lebigot@normalesup.org>'

0 commit comments

Comments
 (0)